Moving </head><body> into body of templates so that js and css can be embedded per...
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / catalogue / dictionary.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha &rsaquo; Dictionary Search</title>
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
4 </head>
5 <body>
6
7         <h1>Dictionary Search</h1>
8 <form name="f" method="post" action="/cgi-bin/koha/catalogue/dictionary.pl">
9         <input type="hidden" name="op" value="do_search" />
10                                 <label for="keyword">Search for keyword(s): </label>
11                                 <input type="hidden" name="marclist" value="<!-- TMPL_VAR Name="marclist" -->" />
12                                 <input type="text" name="search" value="<!-- TMPL_VAR Name="search" -->" size="35" />
13                                 <input type="submit" value="Start search" class="submit" />
14                                 <input type="hidden" name="type" value="<!-- TMPL_VAR Name="type" -->" />
15                                 <input type="hidden" name="index" value="<!-- TMPL_VAR Name="anindex" ESCAPE="URL" -->" /></form>
16
17 <!-- TMPL_IF Name="search" -->
18         <!-- TMPL_IF NAME="authresult" -->
19                 
20                         <!-- TMPL_IF NAME="displayprev" --> 
21                                         <a href="dictionary.pl?startfrom=<!-- TMPL_VAR NAME="startfromprev" -->&amp;marclist=<!-- TMPL_VAR NAME="marclist" ESCAPE="URL"-->&amp;search=<!-- TMPL_VAR NAME="search" ESCAPE="URL"-->&amp;resultsperpage=<!-- TMPL_VAR NAME="resultsperpage" -->&amp;type=intranet&amp;op=do_search&amp;index=<!-- TMPL_VAR Name="anindex" -->">&lt;&lt;Previous</a>
22                                 <!-- /TMPL_IF -->
23                                 <!-- TMPL_LOOP NAME="numbers" -->
24                                         <!-- TMPL_IF NAME="highlight" -->
25                                                 <!-- TMPL_VAR NAME="number" -->
26                                         <!-- TMPL_ELSE --> 
27                                                 <a href="dictionary.pl?startfrom=<!-- TMPL_VAR NAME="startfrom" -->&amp;marclist=<!-- TMPL_VAR NAME="marclist" ESCAPE="URL" -->&amp;search=<!-- TMPL_VAR NAME="search" ESCAPE="URL" -->&amp;resultsperpage=<!-- TMPL_VAR NAME="resultsperpage" -->&amp;type=intranet&amp;op=do_search&amp;index=<!-- TMPL_VAR Name="anindex" -->"><!-- TMPL_VAR NAME="number" --></a>
28                                         <!-- /TMPL_IF -->
29                                 <!-- /TMPL_LOOP --> 
30                                 <!-- TMPL_IF NAME="displaynext" -->
31                                         <a href="dictionary.pl?startfrom=<!-- TMPL_VAR NAME="startfromnext" -->&amp;marclist=<!-- TMPL_VAR NAME="marclist" -->&amp;search=<!-- TMPL_VAR NAME="search" -->&amp;resultsperpage=<!-- TMPL_VAR NAME="resultsperpage" -->&amp;type=intranet&amp;op=do_search&amp;index=<!-- TMPL_VAR Name="anindex" -->">Next&gt;&gt;</a>
32                                 <!-- /TMPL_IF -->
33                         
34                         
35                         <!-- TMPL_IF NAME="nbresults" -->
36                                         Results <!-- TMPL_VAR NAME="from" --> to <!-- TMPL_VAR NAME="to" --> of <!-- TMPL_VAR NAME="nbresults" --> in Authorities<!-- TMPL_ELSE -->No results found.
37                         <!-- /TMPL_IF -->
38                         
39                 
40                 
41                         <table>
42                                 <caption>Authority Results</caption>
43                                 <tr>
44                                         <th>Summary</th>
45                                         <th>Used in</th>
46                                         <th>Select</th>
47                                 </tr>
48                                 <!-- TMPL_LOOP NAME="authresult" -->
49                                         <!-- TMPL_IF NAME="even" --><tr class="highlight"><!-- TMPL_ELSE --><tr><!-- /TMPL_IF -->
50                                         <td>
51                                                         <!-- TMPL_VAR NAME="summary" -->
52                                                 </td>
53                                                 <td>
54                                                         <!-- TMPL_VAR NAME="used" --> records(s)
55                                                 </td>
56                                                         <td>
57                                                         <a  href="javascript:SelectEntry('<!-- TMPL_VAR NAME="mainentry" ESCAPE="URL" -->',<!-- TMPL_VAR NAME="anindex" ESCAPE="URL"  -->,0)">Select</a> | 
58                                                         <a  href="javascript:SelectEntry('<!-- TMPL_VAR NAME="mainentry" ESCAPE="URL" -->',<!-- TMPL_VAR NAME="anindex" ESCAPE="URL"  -->,1)">Sel. &amp; close</a>
59                                                 </td>
60                                         </tr>
61                                 <!-- /TMPL_LOOP -->
62                         </table>
63                 
64                 <!-- TMPL_ELSE -->
65                         <h3>No results in Authorities</h3>
66         <!-- /TMPL_IF -->
67                 
68                 
69         <!-- TMPL_IF Name="catresult" -->
70         <h2>Catalog Results</h2>
71                         
72                         <!-- TMPL_IF NAME="total" -->
73                                         Results <!-- TMPL_VAR NAME="from" --> to <!-- TMPL_VAR NAME="to" --> of <!-- TMPL_VAR NAME="total" --> in the Catalog<!-- TMPL_ELSE -->No results found.
74                         <!-- /TMPL_IF -->
75                 
76                         <table>
77                                 <tr>
78                                         <th>Summary</th>
79                                         <th>Used in</th>
80                                         <th>Select</th>
81                                 </tr>
82                                 <!-- TMPL_LOOP NAME="catresult" -->
83                                 <!-- TMPL_IF NAME="even" --><tr class="highlight"><!-- TMPL_ELSE --><tr><!-- /TMPL_IF -->
84                                 <td>
85                                         <!-- TMPL_IF name="MARC_ON" -->
86                                                                         <!-- TMPL_VAR NAME="value" -->
87                                                                 <!-- TMPL_ELSE -->
88                                                                         <!-- TMPL_VAR NAME="value" -->
89                                                                 <!-- /TMPL_IF -->
90                                         </td>
91                                         <td>
92                                                 <!-- TMPL_VAR NAME="count" --> records(s)
93                                         </td>
94                                         <td>
95                                                         <a  href="javascript:SelectEntry('<!-- TMPL_VAR NAME="value" ESCAPE="URL" -->',<!-- TMPL_VAR NAME="anindex" ESCAPE="URL"  -->,0)">Select</a> | 
96                                                         <a  href="javascript:SelectEntry('<!-- TMPL_VAR NAME="value" ESCAPE="URL" -->',<!-- TMPL_VAR NAME="anindex" ESCAPE="URL"  -->,1)">Sel. &amp; close</a>
97                                         </td>
98                                 </tr>
99                                 <!-- /TMPL_LOOP -->
100                         </table>
101                 
102                         <!-- TMPL_IF NAME="displayprev" --> 
103                                         <a href="dictionary.pl?startfrom=<!-- TMPL_VAR NAME="startfromprev" -->&amp;marclist=<!-- TMPL_VAR NAME="marclist" ESCAPE="URL"-->&amp;search=<!-- TMPL_VAR NAME="search" ESCAPE="URL"-->&amp;resultsperpage=<!-- TMPL_VAR NAME="resultsperpage" -->&amp;type=intranet&amp;op=do_search&amp;index=<!-- TMPL_VAR Name="anindex" -->">&lt;&lt;Previous</a>
104                                 <!-- /TMPL_IF -->
105                                 <!-- TMPL_LOOP NAME="numbers" -->
106                                         <!-- TMPL_IF NAME="highlight" -->
107                                                 <!-- TMPL_VAR NAME="number" -->
108                                         <!-- TMPL_ELSE --> 
109                                                 <a href="dictionary.pl?startfrom=<!-- TMPL_VAR NAME="startfrom" -->&amp;marclist=<!-- TMPL_VAR NAME="marclist" ESCAPE="URL" -->&amp;search=<!-- TMPL_VAR NAME="search" ESCAPE="URL" -->&amp;resultsperpage=<!-- TMPL_VAR NAME="resultsperpage" -->&amp;type=intranet&amp;op=do_search&amp;index=<!-- TMPL_VAR Name="anindex" -->"><!-- TMPL_VAR NAME="number" --></a>
110                                         <!-- /TMPL_IF -->
111                                 <!-- /TMPL_LOOP --> 
112                                 <!-- TMPL_IF NAME="displaynext" -->
113                                         <a href="dictionary.pl?startfrom=<!-- TMPL_VAR NAME="startfromnext" -->&amp;marclist=<!-- TMPL_VAR NAME="marclist" -->&amp;search=<!-- TMPL_VAR NAME="search" -->&amp;resultsperpage=<!-- TMPL_VAR NAME="resultsperpage" -->&amp;type=intranet&amp;op=do_search&amp;index=<!-- TMPL_VAR Name="anindex" -->">Next&gt;&gt;</a>
114                                 <!-- /TMPL_IF -->
115
116                         
117                         <!-- TMPL_IF NAME="total" -->
118                                         Results <!-- TMPL_VAR NAME="from" --> to <!-- TMPL_VAR NAME="to" --> of <!-- TMPL_VAR NAME="total" --> in the Catalog<!-- TMPL_ELSE -->No results found.
119                         <!-- /TMPL_IF -->
120                         
121                 
122         <!-- /TMPL_IF -->
123         <script language="JavaScript" type="text/javascript">
124         function SelectEntry(myentry, myindex, wclose){
125                 if (opener.document.f.value[myindex].value!=""){ 
126                         opener.document.f.value[myindex].value=opener.document.f.value[myindex].value+" "+myentry
127                 } else {
128                         opener.document.f.value[myindex].value=myentry
129                 }
130                 if (wclose == 1) {
131         //      alert("closing")
132                         self.close();
133                 }
134         }
135         </script>
136         
137 <!-- /TMPL_IF -->
138
139 </body>
140 </html>