New programmer templates for the OPAC. Markup has been pared down, but structure...
[koha.git] / koha-tmpl / opac-tmpl / prog / en / opac-dictionary.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->Dictionary Search<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
2
3 <div id="window">
4         <h1>Dictionary Search</h1>
5         
6 <form name="f" method="post" action="opac-dictionary.pl">
7                                 <input type="hidden" name="op" value="do_search" />
8                                 <label for="keyword">Keyword(s): </label>
9                                 <input type="hidden" name="marclist" value="<!-- TMPL_VAR Name="marclist" -->" />
10                                 <input type="text" name="search" value="<!-- TMPL_VAR Name="search" -->" size="20" />
11                                 <input type="submit" value="Start search" class="submit" />
12                                 <input type="hidden" name="type" value="<!-- TMPL_VAR Name="type" -->" />
13                                 <input type="hidden" name="index" value="<!-- TMPL_VAR Name="anindex" ESCAPE="URL" -->" />
14         </form>
15
16 <!-- TMPL_IF Name=search -->
17         <!-- TMPL_IF NAME="authresult" -->
18                 <div class="pages">
19                         <!-- TMPL_IF NAME="displayprev" --> 
20                                         <a href="opac-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>
21                                 <!-- /TMPL_IF -->
22                                 <!-- TMPL_LOOP NAME="numbers" -->
23                                         <!-- TMPL_IF NAME="highlight" -->
24                                                 <span class="current"><!-- TMPL_VAR NAME="number" --></span>
25                                         <!-- TMPL_ELSE --> 
26                                                 <a href="opac-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>
27                                         <!-- /TMPL_IF -->
28                                 <!-- /TMPL_LOOP --> 
29                                 <!-- TMPL_IF NAME="displaynext" -->
30                                         <a href="opac-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>
31                                 <!-- /TMPL_IF -->
32 </div>
33                         <div id="results">
34                         <!-- TMPL_IF NAME="nbresults" -->
35                                         Results <!-- TMPL_VAR NAME="from" --> to <!-- TMPL_VAR NAME="to" --> of <!-- TMPL_VAR NAME="nbresults" --> in Authorities.<!-- TMPL_ELSE -->No results found in Authorities.
36                         <!-- /TMPL_IF -->
37                 </div>
38
39                         <table>
40                                 <tr>
41                                         <th colspan="3">Authorities</th>
42                                 </tr>
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" --> record(s)
55                                                 </td>
56                                                         <td>
57                                                         <a  href="javascript:SelectEntry('<!-- TMPL_VAR NAME="summary" ESCAPE="URL" -->',<!-- TMPL_VAR NAME="anindex" ESCAPE="URL"  -->,0)" class="button catalogue">Select</a> | 
58                                                         <a  href="javascript:SelectEntry('<!-- TMPL_VAR NAME="mainentry" ESCAPE="URL" -->',<!-- TMPL_VAR NAME="anindex" ESCAPE="URL"  -->,1)" class="button catalogue">Sel &amp; close</a>
59                                                 </td>
60                                         </tr>
61                                 <!-- /TMPL_LOOP -->
62                         </table>
63                 <!-- TMPL_ELSE -->
64                         <h4>No results in Authorities</h4>
65         <!-- /TMPL_IF -->
66                 
67                 
68         <!-- TMPL_IF Name=catresult --> 
69         <h3>Catalog Search Results</h3>
70                 <div id="results">
71                         <!-- TMPL_IF NAME="total" -->
72                                         Results <!-- TMPL_VAR NAME="from" --> to <!-- TMPL_VAR NAME="to" --> of <!-- TMPL_VAR NAME="total" --> in the catalog<!-- TMPL_ELSE -->No results found in the catalog.
73                         <!-- /TMPL_IF -->
74                 </div>
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 --><!-- /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" --> record(s)
93                                         </td>
94                                         <td>
95                                                         <a  href="javascript:SelectEntry('<!-- TMPL_VAR NAME="value" ESCAPE="URL" -->',<!-- TMPL_VAR NAME="anindex" ESCAPE="URL"  -->,0)" class="button catalogue">Select</a> | 
96                                                         <a  href="javascript:SelectEntry('<!-- TMPL_VAR NAME="value" ESCAPE="URL" -->',<!-- TMPL_VAR NAME="anindex" ESCAPE="URL"  -->,1)" class="button catalogue">Sel &amp; close</a>
97                                         </td>
98                                 </tr>
99                                 <!-- /TMPL_LOOP -->
100                         </table>
101
102                 <div class="pages">
103                         <!-- TMPL_IF NAME="displayprev" --> 
104                                         <a href="opac-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>
105                                 <!-- /TMPL_IF -->
106                                 <!-- TMPL_LOOP NAME="numbers" -->
107                                         <!-- TMPL_IF NAME="highlight" -->
108                                                 <span class="current"><!-- TMPL_VAR NAME="number" --></span>
109                                         <!-- TMPL_ELSE --> 
110                                                 <a href="opac-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>
111                                         <!-- /TMPL_IF -->
112                                 <!-- /TMPL_LOOP --> 
113                                 <!-- TMPL_IF NAME="displaynext" -->
114                                         <a href="opac-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>
115                                 <!-- /TMPL_IF -->
116
117                         <div id="results">
118                         <!-- TMPL_IF NAME="total" -->
119                                         Results <!-- TMPL_VAR NAME="from" --> to <!-- TMPL_VAR NAME="to" --> of <!-- TMPL_VAR NAME="total" --> in the catalog.<!-- TMPL_ELSE -->No results found in the catalog.
120                         <!-- /TMPL_IF -->
121                 </div>
122                 
123         <!-- /TMPL_IF -->
124         <script language="JavaScript" type="text/javascript">
125         function SelectEntry(myentry, myindex, wclose){
126                 if (opener.document.f.value[myindex].value!=""){ 
127                         opener.document.f.value[myindex].value=opener.document.f.value[myindex].value+" "+myentry
128                 } else {
129                         opener.document.f.value[myindex].value=myentry
130                 }
131                 if (wclose == 1) {
132         //      alert("closing")
133                         self.close();
134                 }
135         }
136         </script>
137 <!-- /TMPL_IF -->
138
139 </div>
140
141 </body>
142 </html>