templates - HTML validation tweaks, FIXME's added
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / catalogue / advsearch.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha &rsaquo; Catalogue &rsaquo; Advanced Search</title>
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
4 <script type="text/JavaScript" language="JavaScript">
5         /**
6          *  Function add_field();
7          *  This function allows to display a new field to search.
8          */
9         function add_field() {
10             var ButtonPlus = document.getElementById("ButtonPlus");
11                 var line = ButtonPlus.parentNode;
12                 var dad  = line.parentNode;
13                 dad.appendChild(line.cloneNode(true));
14                 line.removeChild(ButtonPlus);
15         }
16 </script>
17 </head>
18 <body>
19
20 <!-- TMPL_INCLUDE NAME="header.inc" -->
21
22 <div id="doc" class="yui-t7">
23    <div id="bd">
24         
25 <form action="search.pl" method="get">
26 <div id="advanced-search">
27 <h1>Advanced Search</h1>
28
29 <!-- TMPL_IF NAME="outer_servers_loop" -->
30 <!-- DATABASES -->
31
32 <fieldset>
33         <legend>Select local databases</legend>
34                 <!-- TMPL_LOOP NAME="local_servers_loop" -->
35 <!-- TMPL_IF NAME="checked" --><input type="checkbox" id="<!-- TMPL_VAR NAME="id" -->" name="<!-- TMPL_VAR NAME="name" -->" checked="checked" value="<!-- TMPL_VAR NAME="value" -->" /><!-- TMPL_ELSE --><input type="checkbox" id="<!-- TMPL_VAR NAME="id" -->" name="<!-- TMPL_VAR NAME="name" -->" value="<!-- TMPL_VAR NAME="value" -->" /><!-- /TMPL_IF --><label for="<!-- TMPL_VAR NAME="id" -->"><img width="16" height="16" alt="<!-- TMPL_VAR NAME="id" -->" src="<!-- TMPL_VAR NAME="themelang" -->/img/<!-- TMPL_VAR NAME="icon" -->" /> <!-- TMPL_VAR NAME="label" --></label><!-- /TMPL_LOOP -->
36 </fieldset>
37 <!-- /DATABASES -->
38 <!-- /TMPL_IF -->
39
40 <!-- TMPL_IF NAME="outer_servers_loop" -->
41 <!-- REMOTE DATABASES -->
42 <fieldset>
43     <legend>Select remote databases:</legend>
44                 <!-- TMPL_LOOP NAME="outer_servers_loop" -->
45                 <!-- TMPL_IF NAME="checked" --><input type="checkbox" id="<!-- TMPL_VAR NAME="id" -->" name="<!-- TMPL_VAR NAME="name" -->" checked="checked" value="<!-- TMPL_VAR NAME="value" -->" /><!-- TMPL_ELSE --><input type="checkbox" id="<!-- TMPL_VAR NAME="id" -->" name="<!-- TMPL_VAR NAME="name" -->" value="<!-- TMPL_VAR NAME="value" -->" /><!-- /TMPL_IF -->
46 <label for="<!-- TMPL_VAR NAME="id" -->"><img alt="<!-- TMPL_VAR NAME="id" -->" src="<!-- TMPL_VAR NAME="themelang" -->/images/<!-- TMPL_VAR NAME="icon" -->" /><!-- TMPL_VAR NAME="label" --></label>
47                 <!-- /TMPL_LOOP -->
48     </fieldset>
49 <!-- /REMOTE DATABASES -->
50 <!-- /TMPL_IF -->
51
52 <!-- BOOLEAN SEARCH OPTIONS -->
53     <fieldset>
54     <legend>Search For: </legend>
55     <!-- TMPL_LOOP NAME="search_boxes_loop" -->
56         <!-- TMPL_IF NAME="search_boxes_label" --><div style="text-indent: 4.5em;"><!-- TMPL_ELSE --><div><!-- /TMPL_IF -->
57                         <!-- TMPL_IF NAME="expanded_options" -->
58             <!-- TMPL_IF NAME="boolean" -->
59                 <select name="op">
60                     <option value="and" selected="selected">and</option>
61                     <option value="or">or</option>
62                     <option value="not">not</option>
63                 </select>
64             <!-- /TMPL_IF --> 
65                         <!-- /TMPL_IF -->
66                         <!-- TMPL_INCLUDE NAME="search_indexes.inc" -->
67                         <input type="text" size="30" name="q" title="Enter search terms" value="" class="focus" />
68             <!-- TMPL_IF NAME="expanded_options" -->
69                 <!-- TMPL_IF NAME="add_field" -->
70                     <a href="JavaScript:add_field();" id="ButtonPlus" title="Add another field">[+]</a>
71                                 <!-- /TMPL_IF -->
72                 <!-- TMPL_IF NAME="scan_index" -->
73                         <label for="scan">Scan Indexes</label><input type="checkbox" name="scan" id="scan" value="1" />
74                 <!-- /TMPL_IF -->
75             <!-- /TMPL_IF -->
76                 </div>
77     <!-- /TMPL_LOOP -->
78     </fieldset>
79 <!-- /BOOLEAN SEARCH OPTIONS -->
80
81 <!-- ITEMTYPE LIMITS -->
82     <div id="itemtypelist">
83         <fieldset>
84      <legend>Limit type to: match any of the following:</legend>
85     <table>
86         <tr>
87       <!--TMPL_LOOP Name="itemtypeloop"-->
88         <td>
89         <!-- TMPL_IF name="imageurl"--><img border="0" src="<!--TMPL_VAR Name="imageurl" -->" alt="<!--TMPL_VAR Name="description" -->" /><!-- /TMPL_IF -->
90                 <input type="checkbox" id="mc-<!--TMPL_VAR Name="number" -->" name="limit" value="mc:<!--TMPL_VAR Name="code" -->" />&nbsp;
91         <label for="mc-<!--TMPL_VAR Name="number" -->"><!--TMPL_VAR Name="description" --></label></td>
92         <!-- TMPL_UNLESS name="count5" --></tr><tr><!-- /TMPL_UNLESS -->
93       <!--/TMPL_LOOP-->
94           <!-- FIXME: for validation, avoid generating empty row -->
95       </tr>
96     </table>
97         </fieldset>
98     </div>
99 <!-- /ITEMTYPE LIMITS -->
100
101 <!-- TMPL_IF NAME="expanded_options" -->
102 <!-- BASIC LIMITS -->
103  <fieldset>
104         <legend>Limits:</legend>
105 <!-- PUB / COPY YEAR LIMIT --><!-- FIXME: add publication,copyright,acquisition options -->
106         <p><label for="limit-yr">Year: </label>
107                 <input size="15" name="limit-yr" id="" value=""/>&nbsp;&nbsp;(format: yyyy-yyyy)</p>
108 <!-- /PUB / COPY YEAR LIMIT -->
109
110 <!-- LANGUAGE LIMIT -->
111                 <p><label for="language-limit">Language: </label>                                        
112                 <select name="limit">
113                 <option value="">No Limit</option>
114                 <!-- TMPL_LOOP NAME="search_languages_loop" -->
115                 <!-- TMPL_IF NAME="selected" -->
116                 <option value="ln:<!-- TMPL_VAR NAME="iso639_2_code" -->" selected="selected"><!-- TMPL_VAR NAME="language_description" --></option>
117                 <!-- TMPL_ELSE -->
118                 <option value="ln:<!-- TMPL_VAR NAME="iso639_2_code" -->"><!-- TMPL_VAR NAME="language_description" --></option>
119                 <!-- /TMPL_IF -->
120                 
121                 <!-- /TMPL_LOOP -->
122                 </select></p><!-- <a href="">Show all languages</a>-->
123 <!-- /LANGUAGE LIMIT -->
124 </fieldset>
125 <!-- /BASIC LIMITS -->
126 <!-- /TMPL_IF -->
127
128
129 <!-- TMPL_IF NAME="UNIMARC" -->
130 <!-- TMPL_INCLUDE NAME="subtypes_unimarc.inc" -->
131 <!-- TMPL_ELSE -->
132 <!-- SUBTYPE LIMITS -->
133         <fieldset>
134         <legend>Subtype limits:</legend><p>
135         
136         <select name="limit" class="subtype">
137             <option value="" selected="selected" class="menuheader">Any audience</option>
138             <option value="aud:a" >Easy</option>
139             <option value="aud:c" >Juvenile</option>
140             <option value="aud:d" >Young adult</option>
141             <option value="aud:e" >Adult</option>
142         </select>
143         
144         <select name="limit" class="subtype">
145             <option value="" selected="selected" class="menuheader">Any content</option>
146             <option value="fic:1" >Fiction</option>
147             <option value="fic:0" >Non fiction</option>
148             <option value="bio:b" >Biography</option>
149             <option value="mus:j" >Musical recording</option>
150             <option value="mus:i" >Non-musical recording</option>
151         </select>
152
153         
154         <select name="limit" class="subtype">
155             <option value="" selected="selected" class="menuheader">Any format</option>
156             <option value="l-format:ta" >Regular print</option>
157             <option value="l-format:tb" >Large print</option>
158             <option value="l-format:fk" >Braille</option>
159             <option value="" >-----------</option>
160             <option value="l-format:sd" >CD audio</option>
161             <option value="l-format:ss" >Cassette recording</option>
162             <option value="l-format:vf" >VHS tape / Videocassette</option>
163             <option value="l-format:vd" >DVD video / Videodisc</option>
164             <option value="l-format:co" >CD Software</option>
165             <option value="l-format:cr" >Website</option>
166         </select>
167         
168         <select name="limit" class="subtype">
169             <option value="" >Additional content types</option>
170             <option value="ctype:a" >Abstracts/summaries</option>
171             <option value="ctype:b" >Bibliographies</option>
172             <option value="ctype:c" >Catalogs</option>
173             <option value="ctype:d" >Dictionaries</option>
174             <option value="ctype:e" >Encyclopedias </option>
175             <option value="ctype:f" >Handbooks</option>
176             <option value="ctype:g" >Legal articles</option>
177             <option value="ctype:i" >Indexes</option>
178             <option value="ctype:j" >Patent document</option>
179             <option value="ctype:k" >Discographies</option>
180             <option value="ctype:l" >Legislation</option>
181             <option value="ctype:m" >Theses</option>
182             <option value="ctype:n" >Surveys</option>
183             <option value="ctype:o" >Reviews</option>
184             <option value="ctype:p" >Programmed texts</option>
185             <option value="ctype:q" >Filmographies</option>
186             <option value="ctype:r" >Directories</option>
187             <option value="ctype:s" >Statistics</option>
188             <option value="ctype:t" >Technical reports</option>
189             <option value="ctype:v" >Legal cases and case notes</option>
190             <option value="ctype:w" >Law reports and digests</option>
191             <option value="ctype:z" >Treaties </option>
192         </select>
193        </p>
194
195 </fieldset>
196 <!-- /TMPL_IF -->
197
198 <!-- TMPL_IF NAME="template-defined-limits" -->
199 <!-- TYPE LIMITS -->
200     <fieldset>
201
202     <legend>Limit type to: match any of the following</legend>
203     <table class="itemtypes">
204             <tr>
205             <td><input type="checkbox" id="mc-bks" name="limit" value="mc:t" />
206                         <label for="mc-bks" title="Books, Pamphlets, Technical reports, Manuscripts, Legal papers, Theses and dissertations">
207                         <img border="0" src="/intranet-tmpl/prog/img/AF.gif" alt="Books" />Books</label></td>
208                         <td><input type="checkbox" id="mc-vis" name="limit" value="mc:v" />
209                         <label for="mc-vis" title="Motion pictures, Videorecordings, Filmstrips, Slides, Transparencies, Photos, Cards, Charts, Drawings">
210                         <img border="0" src="/intranet-tmpl/prog/en/images/AV Aids.gif" alt="Visual Materials" />Visual Materials</label></td>
211             <td><input type="checkbox" id="mc-sr" name="limit" value="mc-rtype:i" />
212                         <label for="mc-sr" title="Spoken, Books on CD and Cassette">
213                         <img border="0" src="/intranet-tmpl/prog/en/images/AF.gif" alt="Books on Tape" />Books on Tape</label></td>
214             </tr>
215
216             <tr>
217             <td><input type="checkbox" id="mc-cf" name="limit" value="mc:c" />
218                         <label for="mc-cf" title="Computer files, Data, Software">
219                         <img border="0" src="/intranet-tmpl/prog/en/images/CD-ROM software.gif" alt="Computer Files" />Computer Files</label></td>
220             <td><input type="checkbox" id="mc-lh" name="limit" value="mc-collection:LH" />
221                         <label for="mc-lh" title="Local History Materials">
222                         <img border="0" src="/intranet-tmpl/prog/en/images/Local history.gif" alt="Local History Materials" />Local History Materials</label></td>
223             <td><input type="checkbox" id="mc-map" name="limit" value="mc:a" />
224                         <label for="mc-map" title="Maps, Globes">
225                         <img border="0" src="/intranet-tmpl/prog/en/images/PF.gif " alt="Maps" />Maps</label></td>
226             </tr>
227
228             <tr>
229             <td><input type="checkbox" id="mc-mus" name="limit" value="mc-rtype:j" />
230                         <label for="mc-mus" title="Music">
231                         <img border="0" src="/intranet-tmpl/prog/en/images/CDM.gif" alt="Music" />Music</label></td>
232             <td><input type="checkbox" id="mc-kit" name="limit" value="mc-rtype:o" />
233                         <label for="mc-kit" title="Kits"><img border="0" src="/intranet-tmpl/prog/en/images/KIT.gif" alt="Kits" />Kits</label></td>
234             <td><input type="checkbox" id="mc-ref" name="limit" value="mc-collection:REF" />
235                         <label for="mc-ref" title="Reference">
236                         <img border="0" src="/intranet-tmpl/prog/en/images/REF.gif" alt="Reference" />Reference</label></td>
237             </tr>
238             
239             </table>
240 </fieldset>
241 <!-- /TMPL_IF -->
242 <!-- /TYPE LIMITS -->
243
244 <!-- AVAILABILITY LIMITS -->
245     <fieldset><legend>Location and availability: </legend>
246         <p>
247         <label for="available-items">Only items currently available</label> <input type="checkbox" id="available-items" name="limit" value="available" /></p>
248         <p>
249         <label for="branchloop">Individual Libraries:</label><select name="limit" id="branchloop" onchange='if(this.value != ""){document.getElementById("categoryloop").disabled=true;} else {document.getElementById("categoryloop").disabled=false;}'>
250         <option value="">All Libraries</option>
251         <!-- TMPL_LOOP NAME="branchloop" -->
252         <option value="homebranch:<!-- TMPL_VAR NAME="value" -->"><!-- TMPL_VAR NAME="branchname" --></option>
253         <!-- /TMPL_LOOP -->
254         </select>
255     <!-- <input type="hidden" name="limit" value="branch: MAIN" /> -->
256         </p>
257         <!-- TMPL_IF NAME="searchdomainloop" -->
258     <p>OR<p> <!-- should addjs to grey out group pulldown if a library is selected. -->
259     <p>
260         <label for="categoryloop">Groups of Libraries</label><select name="multibranchlimit" id="categoryloop">
261         <option value=""> -- none -- </option>
262         <!-- TMPL_LOOP NAME="searchdomainloop" -->
263         <option value="<!-- TMPL_VAR NAME="categorycode" -->"><!-- TMPL_VAR NAME="categoryname" --></option>
264         <!-- /TMPL_LOOP -->
265         </select>
266         </p>
267     <!-- /TMPL_IF -->
268     </fieldset>
269 <!-- /AVAILABILITY LIMITS -->
270
271 <!-- RANK LIMITS -->
272
273 <fieldset><legend>Sort by: </legend>
274     <p><select id="sort_by" name="sort_by">
275   <!-- TMPL_INCLUDE NAME="resort_form.inc" -->
276     </select>
277         </p>
278 </fieldset>
279 <!-- RANK LIMITS -->
280
281 </div>
282
283
284 <!-- SEARCH BUTTONS -->
285             <p><input class="submit" type="submit" accesskey="s" value="Search" />
286             <!-- TMPL_IF NAME="expanded_options" -->
287             <a href="/cgi-bin/koha/catalogue/search.pl?expanded_options=0">[Fewer Options]</a>
288             <!-- TMPL_ELSE -->
289             <a href="/cgi-bin/koha/catalogue/search.pl?expanded_options=1">[More options]</a>
290             <!-- /TMPL_IF -->
291             <a href="/cgi-bin/koha/catalogue/search.pl?do=Clear">[New search]</a> 
292             </p>
293 <!-- /SEARCH BUTTONS -->
294 </form>
295 </div>
296
297 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->