Moving inline script blocks to <head> where possible
[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="doc-head-close.inc" -->
4 <script type="text/javascript">
5     function Import(GetThisOne,biblionumber) {
6         opener.document.location="../cataloguing/addbiblio.pl?biblionumber="+biblionumber+"&z3950=1&frameworkcode=<!-- TMPL_VAR name="frameworkcode" -->&breedingid="+GetThisOne;
7         window.close();
8         return false;
9     }
10 </script>
11 </head>
12 <body>
13
14
15 <div id="main-compact">
16
17     <h2>Search for</h2>
18     <!-- TMPL_IF NAME="title"--><p>Title: <!-- TMPL_VAR NAME="title"--></p><!-- /TMPL_IF -->
19     <!-- TMPL_IF NAME="author"--><p>Author: <!-- TMPL_VAR NAME="author"--></p><!-- /TMPL_IF -->
20     <!-- TMPL_IF NAME="isbn"--><p>ISBN: <!-- TMPL_VAR NAME="isbn"--></p><!-- /TMPL_IF -->
21     <!-- TMPL_IF NAME="issn"--><p>ISSN: <!-- TMPL_VAR NAME="issn"--></p><!-- /TMPL_IF -->
22     
23 <!-- TMPL_IF name="opsearch" -->
24     <h2>on following servers</h2>
25     
26     <form method="post" action="z3950_search.pl" name="f">
27     
28     <input type="hidden" name="op" id="op" value="do_search" />
29     <input type="hidden" name="title" value="<!-- TMPL_VAR NAME="title" -->" />
30     <input type="hidden" name="author" value="<!-- TMPL_VAR NAME="author" -->" />
31     <input type="hidden" name="isbn" value="<!-- TMPL_VAR NAME="isbn" -->" />
32     <input type="hidden" name="issn" value="<!-- TMPL_VAR NAME="issn" -->" />
33     <input type="hidden" name="frameworkcode" value="<!-- TMPL_VAR NAME="frameworkcode" -->" />
34     <input type="hidden" name="oldbiblionumber" value="<!-- TMPL_VAR NAME="oldbiblionumber" -->" />
35     
36     <!-- TMPL_LOOP name="serverloop" -->
37         <p>
38         <label><!-- TMPL_VAR NAME="host" --></label>
39             <!-- TMPL_IF name="checked" -->
40                 <input type="checkbox" name="id" value="<!-- TMPL_VAR NAME="id" -->" checked="checked" />
41             <!-- TMPL_ELSE -->
42                 <input type="checkbox" name="id" value="<!-- TMPL_VAR NAME="id" -->" />
43             <!-- /TMPL_IF -->
44         </p>
45     <!-- /TMPL_LOOP -->
46     <input type="submit"  class="submit" value="Search internet" onclick="cursor :'wait'" />
47     </form>
48 <!-- TMPL_ELSE -->
49     <h2>Results</h2>
50     <table>
51     <tr>
52         <th>Server</th>
53         <th>Title</th>
54         <th>Author</th>
55         <th>ISBN</th>
56         <th>&nbsp;</th>
57         <th>&nbsp;</th>
58     </tr>
59     <!-- TMPL_IF name="breeding_loop" -->
60     <!-- TMPL_LOOP name="breeding_loop" -->
61         <!-- TMPL_IF NAME="breedingid" -->
62         <tr bgcolor="<!-- TMPL_VAR NAME="toggle" -->">
63             <td><!-- TMPL_VAR name="server" --></td>
64             <td><!-- TMPL_VAR NAME="title" --></td>
65             <td><!-- TMPL_VAR NAME="author" --></td>
66             <td><!-- TMPL_VAR NAME="isbn" --></td>
67             <td><a href="javascript:Import(<!-- TMPL_VAR NAME="breedingid" -->,<!-- TMPL_VAR NAME="biblionumber" -->)">Import</a></td> 
68         </tr>
69         <!-- /TMPL_IF -->
70     <!-- /TMPL_LOOP -->
71     <!-- TMPL_ELSE -->
72         <tr><td colspan="6">Nothing found</td></tr>
73     <!-- /TMPL_IF -->
74 </table>
75 <!-- /TMPL_IF -->
76
77 </div>
78 <!-- TMPL_IF name="numberpending" --><h3 align="center">Still <!-- TMPL_VAR NAME="numberpending" --> servers to search</h3><!-- /TMPL_IF -->
79
80 </div>
81 </body>
82 </html>
83