3b47914978d7d97db46ec65208a3cfc35510e45a
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / cataloguing / z3950_search.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha &rsaquo; Z39.50 Search Results</title>
3 <!-- TMPL_INCLUDE NAME="greybox.inc" -->
4 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
5 <script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/jquery/plugins/jquery.checkboxes.pack.js"></script>
6 <script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
7 <script type="text/javascript">
8 //<![CDATA[
9     function Import(GetThisOne,biblionumber) {
10         opener.document.location="../cataloguing/addbiblio.pl?biblionumber="+biblionumber+"&z3950=1&frameworkcode=<!-- TMPL_VAR name="frameworkcode" -->&breedingid="+GetThisOne;
11         window.close();
12         return false;
13     }
14 $.tablesorter.addParser({
15     id: 'articles', 
16     is: function(s) {return false;  }, 
17     format: function(s) { return s.toLowerCase().replace(/^(the|an|a) /,''); }, 
18     type: 'text' 
19 });
20
21         $(document).ready(function(){
22     $("#CheckAll").click(function(){
23         $(".checkboxed").checkCheckboxes();
24         return false;
25     });
26     $("#CheckNone").click(function(){
27         $(".checkboxed").unCheckCheckboxes();
28         return false;
29     });
30         $("#resultst").tablesorter({
31                 sortList: [[1,0]],
32                 headers: { 0: {sorter:false}, 1: { sorter: 'articles' },5: { sorter: false },6: { sorter: false }}
33         }); 
34 });
35 //]]>
36 </script>
37    <style type="text/css">
38    #custom-doc { width:54.92em;*width:53.55em;min-width:720px; margin:auto; text-align:left; }
39    </style>
40 </head>
41 <body>
42
43 <div id="custom-doc" class="yui-t7">
44       <div id="bd">
45           <!-- TMPL_IF name="opsearch" -->
46 <h2>Z39.50 Search Points</h2>
47     <form method="post" action="z3950_search.pl" name="f" class="checkboxed">
48     <input type="hidden" name="op" id="op" value="do_search" />
49         <div class="yui-g">
50     <div class="yui-u first">
51             <fieldset class="rows"> 
52                  <ol><li><label for="title">Title: </label> <input type="text" id="title"  name="title" value="<!-- TMPL_VAR NAME="title" -->" /></li>
53                  <li><label for="isbn">ISBN/ISSN: </label> <input type="text" id="isbn" name="isbn" value="<!-- TMPL_VAR NAME="isbn" -->" /></li>
54                  <li><label for="lccall">LC Call Number: </label> <input type="text" id="lccall" name="lccall" value="" /></li></ol>
55                 </fieldset>
56             </div>
57     <div class="yui-u">
58         <fieldset class="rows">          <ol><li><label for="author">Author: </label> <input type="text" id="author" name="author" value="<!-- TMPL_VAR NAME="author" -->" /><!--  <label for="Keyword">Keyword</label> <input type="text" name="keyword" value="" /> --></li>
59                  <li> <label for="subject">Subject Heading: </label> <input type="text" id="subject" name="subject" value="" /></li>
60                  <li><label for="dewey">Dewey: </label> <input type="text" id="dewey" name="dewey" value="" /></li></ol></fieldset>
61     <input type="hidden" name="biblionumber" value="<!-- TMPL_VAR NAME="biblionumber" -->" />
62     <input type="hidden" name="frameworkcode" value="<!-- TMPL_VAR NAME="frameworkcode" -->" />
63             </div>
64 </div>
65 <div class="yui-g">
66 <h2>Search targets <span style="display: inline; font-size: 70%; padding-left: 1em;"><span class="checkall"><a id="CheckAll" href="#">Select All</a></span><span class="clearall"><a id="CheckNone" href="#">Clear All</a></span></span></h2>
67
68     <!-- TMPL_LOOP name="serverloop" -->
69         <p> 
70             <!-- TMPL_IF name="checked" -->
71                 <input type="checkbox" name="id" id="z3950_<!-- TMPL_VAR NAME="id" -->" value="<!-- TMPL_VAR NAME="id" -->" checked="checked" />
72             <!-- TMPL_ELSE -->
73                 <input type="checkbox" name="id" id="z3950_<!-- TMPL_VAR NAME="id" -->" value="<!-- TMPL_VAR NAME="id" -->" />
74             <!-- /TMPL_IF -->
75             <label for="z3950_<!-- TMPL_VAR NAME="id" -->"><!-- TMPL_VAR NAME="name" --> [<!-- TMPL_VAR NAME="host" -->]</label>  
76
77         </p>
78     <!-- /TMPL_LOOP -->
79     <fieldset class="action"><input type="submit"  class="submit" value="Search" onclick="cursor :'wait'"/> <a class="cancel close" href="#">Cancel</a></fieldset>
80     </form>
81
82
83 <!-- TMPL_ELSE -->
84     <h2>Results</h2>
85     <!-- TMPL_IF name="breeding_loop" -->
86     <table id="resultst">
87 <thead>    <tr>
88         <th>Server</th>
89         <th>Title</th>
90         <th>Author</th>
91         <th>ISBN</th>
92         <th>LCCN</th>
93         <th colspan="2">Preview</th>
94                 <th>&nbsp;</th>
95     </tr></thead>
96     <tbody><!-- TMPL_LOOP name="breeding_loop" -->
97         <!-- TMPL_IF NAME="breedingid" -->
98                 
99         <!-- TMPL_IF NAME="toggle" --><tr class="highlight"><!-- TMPL_ELSE --><tr><!-- /TMPL_IF -->
100             <td><!-- TMPL_VAR name="server" --></td>
101             <td><!-- TMPL_VAR NAME="title" --></td>
102             <td><!-- TMPL_VAR NAME="author" --></td>
103             <td><!-- TMPL_VAR NAME="isbn" --></td>
104             <td><!-- TMPL_VAR NAME="lccn" --></td>
105             <td><a href="/cgi-bin/koha/catalogue/showmarc.pl?importid=<!-- TMPL_VAR NAME="breedingid" -->" title="MARC" rel="gb_page_center[600,500]">MARC</a></td><td><a href="/cgi-bin/koha/catalogue/showmarc.pl?viewas=card&importid=<!-- TMPL_VAR NAME="breedingid" -->" title="MARC" rel="gb_page_center[600,500]">Card</a></td>
106                         <td><a href="javascript:Import(<!-- TMPL_VAR NAME="breedingid" -->,<!-- TMPL_VAR NAME="biblionumber" -->)">Import</a></td> 
107         </tr>
108         <!-- /TMPL_IF -->
109     <!-- /TMPL_LOOP --></tbody>
110 </table>
111     <!-- TMPL_ELSE -->
112         <!-- TMPL_LOOP name="errconn" -->
113             Connection failed to <!-- TMPL_VAR NAME="server" -->
114         <!-- /TMPL_LOOP -->
115         <p>Nothing found. <a href="/cgi-bin/koha/cataloguing/z3950_search.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->">Try another search</a>.</p>
116     <!-- /TMPL_IF -->
117
118
119 <!-- /TMPL_IF -->
120
121         </div>
122 </div>
123 <!-- TMPL_IF name="numberpending" --><h3 align="center">Still <!-- TMPL_VAR NAME="numberpending" --> servers to search</h3><!-- /TMPL_IF -->
124
125 </body>
126 </html>
127