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