Bug 2889: Removed toggle variable from z3950_search.pl.
[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         widgets: ['zebra']
34     }); 
35 });
36 //]]>
37 </script>
38    <style type="text/css">
39    #custom-doc { width:54.92em;*width:53.55em;min-width:720px; margin:auto; text-align:left; }
40    </style>
41 </head>
42 <body>
43
44 <div id="custom-doc" class="yui-t7">
45       <div id="bd">
46           <!-- TMPL_IF name="opsearch" -->
47 <h2>Z39.50 Search Points</h2>
48     <form method="post" action="z3950_search.pl" name="f" class="checkboxed">
49     <input type="hidden" name="op" id="op" value="do_search" />
50         <div class="yui-g">
51     <div class="yui-u first">
52             <fieldset class="rows"> 
53                  <ol><li><label for="title">Title: </label> <input type="text" id="title"  name="title" value="<!-- TMPL_VAR NAME="title" -->" /></li>
54                  <li><label for="isbn">ISBN/ISSN: </label> <input type="text" id="isbn" name="isbn" value="<!-- TMPL_VAR NAME="isbn" -->" /></li>
55                  <li><label for="lccall">LC Call Number: </label> <input type="text" id="lccall" name="lccall" value="" /></li>
56                  <li><label for="controlnumber">Control No.: </label> <input type="text" id="controlnumber" name="controlnumber" value="" /></li>
57                  <li><label for="srchany">Raw (any): </label> <input type="text" id="srchany" name="srchany" value="" /></li></ol>
58                 </fieldset>
59             </div>
60     <div class="yui-u">
61         <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>
62                  <li> <label for="subject">Subject Heading: </label> <input type="text" id="subject" name="subject" value="" /></li>
63                  <li><label for="dewey">Dewey: </label> <input type="text" id="dewey" name="dewey" value="" /></li>
64                  <li><label for="stdid">Standard ID: </label> <input type="text" id="stdid" name="stdid" value="" /></li></ol>
65     </fieldset>
66     <input type="hidden" name="biblionumber" value="<!-- TMPL_VAR NAME="biblionumber" -->" />
67     <input type="hidden" name="frameworkcode" value="<!-- TMPL_VAR NAME="frameworkcode" -->" />
68             </div>
69 </div>
70 <div class="yui-g">
71 <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>
72
73     <!-- TMPL_LOOP name="serverloop" -->
74         <p> 
75             <!-- TMPL_IF name="checked" -->
76                 <input type="checkbox" name="id" id="z3950_<!-- TMPL_VAR NAME="id" -->" value="<!-- TMPL_VAR NAME="id" -->" checked="checked" />
77             <!-- TMPL_ELSE -->
78                 <input type="checkbox" name="id" id="z3950_<!-- TMPL_VAR NAME="id" -->" value="<!-- TMPL_VAR NAME="id" -->" />
79             <!-- /TMPL_IF -->
80             <label for="z3950_<!-- TMPL_VAR NAME="id" -->"><!-- TMPL_VAR NAME="name" --> [<!-- TMPL_VAR NAME="host" -->]</label>  
81
82         </p>
83     <!-- /TMPL_LOOP -->
84         </div>
85     <fieldset class="action"><input type="submit"  class="submit" value="Search" onclick="cursor :'wait'"/> <a class="cancel close" href="#">Cancel</a></fieldset>
86     </form>
87
88
89 <!-- TMPL_ELSE -->
90     <h2>Results</h2>
91     <!-- TMPL_IF name="breeding_loop" -->
92     <table id="resultst">
93 <thead>    <tr>
94         <th>Server</th>
95         <th>Title</th>
96         <th>Author</th>
97         <th>Date</th>
98         <th>Edition</th>
99         <th>ISBN</th>
100         <th>LCCN</th>
101         <th colspan="2">Preview</th>
102                 <th>&nbsp;</th>
103     </tr></thead>
104     <tbody><!-- TMPL_LOOP name="breeding_loop" -->
105         <!-- TMPL_IF NAME="breedingid" -->
106                 
107         <!-- TMPL_UNLESS NAME="__odd__" -->
108         <tr class="highlight">
109         <!-- TMPL_ELSE -->
110         <tr>
111         <!-- /TMPL_UNLESS -->
112             <td><!-- TMPL_VAR name="server" --></td>
113             <td><!-- TMPL_VAR NAME="title" escape="html" --></td>
114             <td><!-- TMPL_VAR NAME="author" --></td>
115             <td><!-- TMPL_VAR NAME="date" --></td>
116             <td><!-- TMPL_VAR NAME="edition" --></td>
117             <td><!-- TMPL_VAR NAME="isbn" --></td>
118             <td><!-- TMPL_VAR NAME="lccn" --></td>
119             <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&amp;importid=<!-- TMPL_VAR NAME="breedingid" -->" title="MARC" rel="gb_page_center[600,500]">Card</a></td>
120                         <td><a href="javascript:Import(<!-- TMPL_VAR NAME="breedingid" -->,<!-- TMPL_VAR NAME="biblionumber" -->)">Import</a></td> 
121         </tr>
122         <!-- /TMPL_IF -->
123     <!-- /TMPL_LOOP --></tbody>
124 </table>
125     <!-- TMPL_ELSE -->
126         <!-- TMPL_LOOP name="errconn" -->
127             Connection failed to <!-- TMPL_VAR NAME="server" -->
128         <!-- /TMPL_LOOP -->
129         <p>Nothing found. <a href="/cgi-bin/koha/cataloguing/z3950_search.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->">Try another search</a>.</p>
130     <!-- /TMPL_IF -->
131
132
133 <!-- /TMPL_IF -->
134
135         </div>
136 </div>
137 <!-- TMPL_IF name="numberpending" --><h3 align="center">Still <!-- TMPL_VAR NAME="numberpending" --> servers to search</h3><!-- /TMPL_IF -->
138
139 </body>
140 </html>
141