Bug #3071 - Z39.50 search result highlights are mixed
[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></ol>
56                 </fieldset>
57             </div>
58     <div class="yui-u">
59         <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>
60                  <li> <label for="subject">Subject Heading: </label> <input type="text" id="subject" name="subject" value="" /></li>
61                  <li><label for="dewey">Dewey: </label> <input type="text" id="dewey" name="dewey" value="" /></li></ol></fieldset>
62     <input type="hidden" name="biblionumber" value="<!-- TMPL_VAR NAME="biblionumber" -->" />
63     <input type="hidden" name="frameworkcode" value="<!-- TMPL_VAR NAME="frameworkcode" -->" />
64             </div>
65 </div>
66 <div class="yui-g">
67 <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>
68
69     <!-- TMPL_LOOP name="serverloop" -->
70         <p> 
71             <!-- TMPL_IF name="checked" -->
72                 <input type="checkbox" name="id" id="z3950_<!-- TMPL_VAR NAME="id" -->" value="<!-- TMPL_VAR NAME="id" -->" checked="checked" />
73             <!-- TMPL_ELSE -->
74                 <input type="checkbox" name="id" id="z3950_<!-- TMPL_VAR NAME="id" -->" value="<!-- TMPL_VAR NAME="id" -->" />
75             <!-- /TMPL_IF -->
76             <label for="z3950_<!-- TMPL_VAR NAME="id" -->"><!-- TMPL_VAR NAME="name" --> [<!-- TMPL_VAR NAME="host" -->]</label>  
77
78         </p>
79     <!-- /TMPL_LOOP -->
80     <fieldset class="action"><input type="submit"  class="submit" value="Search" onclick="cursor :'wait'"/> <a class="cancel close" href="#">Cancel</a></fieldset>
81     </form>
82
83
84 <!-- TMPL_ELSE -->
85     <h2>Results</h2>
86     <!-- TMPL_IF name="breeding_loop" -->
87     <table id="resultst">
88 <thead>    <tr>
89         <th>Server</th>
90         <th>Title</th>
91         <th>Author</th>
92         <th>ISBN</th>
93         <th>LCCN</th>
94         <th colspan="2">Preview</th>
95                 <th>&nbsp;</th>
96     </tr></thead>
97     <tbody><!-- TMPL_LOOP name="breeding_loop" -->
98         <!-- TMPL_IF NAME="breedingid" -->
99                 
100         <tr>
101             <td><!-- TMPL_VAR name="server" --></td>
102             <td><!-- TMPL_VAR NAME="title" --></td>
103             <td><!-- TMPL_VAR NAME="author" --></td>
104             <td><!-- TMPL_VAR NAME="isbn" --></td>
105             <td><!-- TMPL_VAR NAME="lccn" --></td>
106             <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>
107                         <td><a href="javascript:Import(<!-- TMPL_VAR NAME="breedingid" -->,<!-- TMPL_VAR NAME="biblionumber" -->)">Import</a></td> 
108         </tr>
109         <!-- /TMPL_IF -->
110     <!-- /TMPL_LOOP --></tbody>
111 </table>
112     <!-- TMPL_ELSE -->
113         <!-- TMPL_LOOP name="errconn" -->
114             Connection failed to <!-- TMPL_VAR NAME="server" -->
115         <!-- /TMPL_LOOP -->
116         <p>Nothing found. <a href="/cgi-bin/koha/cataloguing/z3950_search.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->">Try another search</a>.</p>
117     <!-- /TMPL_IF -->
118
119
120 <!-- /TMPL_IF -->
121
122         </div>
123 </div>
124 <!-- TMPL_IF name="numberpending" --><h3 align="center">Still <!-- TMPL_VAR NAME="numberpending" --> servers to search</h3><!-- /TMPL_IF -->
125
126 </body>
127 </html>
128