Merge remote branch 'kc/new/merge_help' into kcmaster
[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.min.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 function closemenu(){
22     $(".linktools").hide();
23     $("tr").removeClass("selected");
24 }
25 $(document).ready(function(){
26     $("#CheckAll").click(function(){
27         $(".checkboxed").checkCheckboxes();
28         return false;
29     });
30     $("#CheckNone").click(function(){
31         $(".checkboxed").unCheckCheckboxes();
32         return false;
33     });
34     $("#resultst").tablesorter({
35         sortList: [[1,0]],
36         headers: { 1: { sorter: 'articles' },7: { sorter: false },8: { sorter: false } },
37         widgets: ['zebra']
38     }); 
39         /* Inline edit/delete links */
40         $("td").click(function(event){
41             var $tgt = $(event.target);
42             $(".linktools").hide();
43             $("tr").removeClass("selected");
44             if($tgt.is("a")||$tgt.is(":nth-child(7)")||$tgt.is(":nth-child(8)")||$tgt.is(":nth-child(9)")||$tgt.is(":nth-child(10)")){
45                 return true;
46             } else {
47                 var position = $(this).offset();
48                 var top = position.top+5;
49                 var left = position.left+5;
50                 $(".linktools",row).show().css("position","absolute").css("top",top).css("left",left);
51             }
52             var row = $(this).parent();
53             row.addClass("selected");
54         });
55 });
56
57 //]]>
58 </script>
59 <style type="text/css">
60 .linktools { background-color:#FFF;border-top:1px solid #DDD; border-left: 1px solid #DDD; border-right: 1px solid #666; border-bottom:1px solid #666;display: none; white-space: nowrap;}
61 .linktools a { font-size : 85%; text-decoration:none; padding:.3em;;background-color:#FFF; display:block;float:left;border-right:1px solid #DDD;}
62 .linktools a:hover { background-color:#EEE;color:#CC3300;border-right:1px solid #CCC;}
63 tr.selected { background-color : #FFFFCC; } tr.selected td { background-color : transparent; }
64 </style>
65       <!-- TMPL_IF name="opsearch" -->
66    <style type="text/css">
67            #custom-doc { width:53em;*width:51.72em;min-width:689px; margin:auto; text-align:left; }
68    </style>
69 </head>
70 <body>
71
72 <div id="custom-doc" class="yui-t7">
73 <!-- TMPL_ELSE -->
74 </head>
75 <body style="padding:.5em;">
76 <div>
77 <!-- /TMPL_IF -->
78       <div id="bd">
79           <!-- TMPL_IF name="opsearch" -->
80 <h2>Z39.50 Search Points</h2>
81     <form method="post" action="z3950_search.pl" name="f" class="checkboxed">
82     <input type="hidden" name="op" id="op" value="do_search" />
83         <div class="yui-g">
84     <div class="yui-u first">
85             <fieldset class="rows"> 
86                  <ol><li><label for="title">Title: </label> <input type="text" id="title"  name="title" value="<!-- TMPL_VAR NAME="title" -->" /></li>
87                  <li><label for="isbn">ISBN/ISSN: </label> <input type="text" id="isbn" name="isbn" value="<!-- TMPL_VAR NAME="isbn" -->" /></li>
88                  <li><label for="lccall">LC Call Number: </label> <input type="text" id="lccall" name="lccall" value="" /></li>
89                  <li><label for="controlnumber">Control No.: </label> <input type="text" id="controlnumber" name="controlnumber" value="" /></li>
90                  <li><label for="srchany">Raw (any): </label> <input type="text" id="srchany" name="srchany" value="" /></li></ol>
91                 </fieldset>
92             </div>
93     <div class="yui-u">
94         <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>
95                  <li> <label for="subject">Subject Heading: </label> <input type="text" id="subject" name="subject" value="" /></li>
96                  <li><label for="dewey">Dewey: </label> <input type="text" id="dewey" name="dewey" value="" /></li>
97                  <li><label for="stdid">Standard ID: </label> <input type="text" id="stdid" name="stdid" value="" /></li></ol>
98     </fieldset>
99     <input type="hidden" name="biblionumber" value="<!-- TMPL_VAR NAME="biblionumber" -->" />
100     <input type="hidden" name="frameworkcode" value="<!-- TMPL_VAR NAME="frameworkcode" -->" />
101             </div>
102 </div>
103 <div class="yui-g">
104 <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>
105
106     <!-- TMPL_LOOP name="serverloop" -->
107         <p> 
108             <!-- TMPL_IF name="checked" -->
109                 <input type="checkbox" name="id" id="z3950_<!-- TMPL_VAR NAME="id" -->" value="<!-- TMPL_VAR NAME="id" -->" checked="checked" />
110             <!-- TMPL_ELSE -->
111                 <input type="checkbox" name="id" id="z3950_<!-- TMPL_VAR NAME="id" -->" value="<!-- TMPL_VAR NAME="id" -->" />
112             <!-- /TMPL_IF -->
113             <label for="z3950_<!-- TMPL_VAR NAME="id" -->"><!-- TMPL_VAR NAME="name" --> [<!-- TMPL_VAR NAME="host" -->]</label>  
114
115         </p>
116     <!-- /TMPL_LOOP -->
117         </div>
118     <fieldset class="action"><input type="submit"  class="submit" value="Search" onclick="cursor :'wait'"/> <a class="cancel close" href="#">Cancel</a></fieldset>
119     </form>
120
121
122 <!-- TMPL_ELSE -->
123     <h2>Results</h2>
124     <!-- TMPL_IF name="breeding_loop" -->
125     <table id="resultst">
126 <thead>    <tr>
127         <th>Server</th>
128         <th>Title</th>
129         <th>Author</th>
130         <th>Date</th>
131         <th>Edition</th>
132         <th>ISBN</th>
133         <th>LCCN</th>
134         <th colspan="2">Preview</th>
135                 <th>&nbsp;</th>
136     </tr></thead>
137     <tbody><!-- TMPL_LOOP name="breeding_loop" -->
138         <!-- TMPL_IF NAME="breedingid" -->
139
140             <tr id="row<!-- TMPL_VAR NAME="breedingid" -->">
141                 <td><!-- TMPL_VAR name="server" --> <div class="linktools"><a href="/cgi-bin/koha/catalogue/showmarc.pl?importid=<!-- TMPL_VAR NAME="breedingid" -->" rel="gb_page_center[600,500]">Preview MARC</a> <a href="/cgi-bin/koha/catalogue/showmarc.pl?viewas=card&amp;importid=<!-- TMPL_VAR NAME="breedingid" -->" rel="gb_page_center[600,500]">Preview Card</a> <a href="#" onclick="Import(<!-- TMPL_VAR NAME="breedingid" -->,0); return false">Import</a><a href="#" onclick="closemenu();return false;" title="Close this menu"> X </a></div> </td>
142             <td><!-- TMPL_VAR NAME="title" escape="html" --></td>
143             <td><!-- TMPL_VAR NAME="author" --></td>
144             <td><!-- TMPL_VAR NAME="date" --></td>
145             <td><!-- TMPL_VAR NAME="edition" --></td>
146             <td><!-- TMPL_VAR NAME="isbn" --></td>
147             <td><!-- TMPL_VAR NAME="lccn" --></td>
148             <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>
149             <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>
150             <td><a href="#" onclick="Import(<!-- TMPL_VAR NAME="breedingid" -->,<!-- TMPL_VAR NAME="biblionumber" -->); return false">Import</a></td> 
151         </tr>
152         <!-- /TMPL_IF -->
153     <!-- /TMPL_LOOP --></tbody>
154 </table>
155     <!-- TMPL_ELSE -->
156         <!-- TMPL_LOOP name="errconn" -->
157             Connection failed to <!-- TMPL_VAR NAME="server" -->
158         <!-- /TMPL_LOOP -->
159         <p>Nothing found. <a href="/cgi-bin/koha/cataloguing/z3950_search.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->">Try another search</a>.</p>
160     <!-- /TMPL_IF -->
161
162
163 <!-- /TMPL_IF -->
164
165         </div>
166 </div>
167 <!-- TMPL_IF name="numberpending" --><h3 align="center">Still <!-- TMPL_VAR NAME="numberpending" --> servers to search</h3><!-- /TMPL_IF -->
168
169 </body>
170 </html>
171