use 'branch' rather than 'homebranch'
[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                 <input type="checkbox" id="<!-- TMPL_VAR NAME="id" -->" name="<!-- TMPL_VAR NAME="name" -->" <!-- TMPL_IF NAME="checked" -->checked="<!-- TMPL_VAR NAME="checked" -->"<!-- /TMPL_IF --> value="<!-- TMPL_VAR NAME="value" -->" /><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>
36                 <!-- /TMPL_LOOP -->
37 </fieldset>
38 <!-- /DATABASES -->
39 <!-- /TMPL_IF -->
40
41 <!-- TMPL_IF NAME="outer_servers_loop" -->
42 <!-- REMOTE DATABASES -->
43 <fieldset>
44     <legend>Select remote databases:</legend>
45                 <!-- TMPL_LOOP NAME="outer_servers_loop" -->
46                 <input type="checkbox" id="<!-- TMPL_VAR NAME="id" -->" name="<!-- TMPL_VAR NAME="name" -->" <!-- TMPL_IF NAME="checked" -->checked="<!-- TMPL_VAR NAME="checked" -->"<!-- /TMPL_IF --> value="<!-- TMPL_VAR NAME="value" -->" /><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         <div>
57                         <!-- TMPL_IF NAME="expanded_options" -->
58             <!-- TMPL_IF NAME="boolean" -->
59                 <select name="op">
60                     <option value="" 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 id="search_box" 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="mt-<!--TMPL_VAR Name="number" -->" name="limit" value="mt:<!--TMPL_VAR Name="code" -->" />&nbsp;
91         <!--TMPL_VAR Name="description" --></td>
92         <!-- TMPL_UNLESS name="count5" --></tr><tr><!-- /TMPL_UNLESS -->
93       <!--/TMPL_LOOP-->
94       </tr>
95     </table>
96         </fieldset>
97     </div>
98 <!-- /ITEMTYPE LIMITS -->
99
100 <!-- TMPL_IF NAME="expanded_options" -->
101 <!-- BASIC LIMITS -->
102  <fieldset>
103         <legend>Limits:</legend>
104 <!-- PUB / COPY YEAR LIMIT --><!-- FIXME: add publication,copyright,acquisition options -->
105         <p><label for="limit-yr">Year: </label>
106                 <input size="15" name="limit-yr" id="" value=""/>&nbsp;&nbsp;(format: yyyy-yyyy)</p>
107 <!-- /PUB / COPY YEAR LIMIT -->
108
109 <!-- LANGUAGE LIMIT -->
110                 <p><label for="language-limit">Language: </label>                                        
111                 <select name="limit">
112                 <!-- TMPL_LOOP NAME="search_languages_loop" -->
113                 <option value="<!-- TMPL_VAR NAME="language_code" -->" <!-- TMPL_IF NAME="selected" -->selected="<!-- TMPL_VAR NAME="selected" -->"<!-- /TMPL_IF -->><!-- TMPL_VAR NAME="language_name" --> <!-- TMPL_IF NAME="language_locale_name" -->(<!-- TMPL_VAR NAME="language_locale_name" -->)<!-- /TMPL_IF --></option>
114                 <!-- /TMPL_LOOP -->
115                 </select></p><!-- <a href="">Show all languages</a>-->
116 <!-- /LANGUAGE LIMIT -->
117 </fieldset>
118 <!-- /BASIC LIMITS -->
119 <!-- /TMPL_IF -->
120
121 <!-- TMPL_IF NAME="template-defined-limits" -->
122 <!-- TYPE LIMITS -->
123     <fieldset>
124
125     <legend>Limit type to: match any of the following</legend>
126     <table class="itemtypes">
127             <tr>
128             <td><input type="checkbox" id="mc-bks" name="limit" value="mc:t" />
129                         <label for="mc-bks" title="Books, Pamphlets, Technical reports, Manuscripts, Legal papers, Theses and dissertations">
130                         <img border="0" src="/intranet-tmpl/prog/img/AF.gif" alt="Books" />Books</label></td>
131                         <td><input type="checkbox" id="mc-vis" name="limit" value="mc:v" />
132                         <label for="mc-vis" title="Motion pictures, Videorecordings, Filmstrips, Slides, Transparencies, Photos, Cards, Charts, Drawings">
133                         <img border="0" src="/intranet-tmpl/prog/en/images/AV Aids.gif" alt="Visual Materials" />Visual Materials</label></td>
134             <td><input type="checkbox" id="mc-sr" name="limit" value="mc-rtype:i" />
135                         <label for="mc-sr" title="Spoken, Books on CD and Cassette">
136                         <img border="0" src="/intranet-tmpl/prog/en/images/AF.gif" alt="Books on Tape" />Books on Tape</label></td>
137             </tr>
138
139             <tr>
140             <td><input type="checkbox" id="mc-cf" name="limit" value="mc:c" />
141                         <label for="mc-cf" title="Computer files, Data, Software">
142                         <img border="0" src="/intranet-tmpl/prog/en/images/CD-ROM software.gif" alt="Computer Files" />Computer Files</label></td>
143             <td><input type="checkbox" id="mc-lh" name="limit" value="mc-collection:LH" />
144                         <label for="mc-lh" title="Local History Materials">
145                         <img border="0" src="/intranet-tmpl/prog/en/images/Local history.gif" alt="Local History Materials" />Local History Materials</label></td>
146             <td><input type="checkbox" id="mc-map" name="limit" value="mc:a" />
147                         <label for="mc-map" title="Maps, Globes">
148                         <img border="0" src="/intranet-tmpl/prog/en/images/PF.gif " alt="Maps" />Maps</label></td>
149             </tr>
150
151             <tr>
152             <td><input type="checkbox" id="mc-mus" name="limit" value="mc-rtype:j" />
153                         <label for="mc-mus" title="Music">
154                         <img border="0" src="/intranet-tmpl/prog/en/images/CDM.gif" alt="Music" />Music</label></td>
155             <td><input type="checkbox" id="mc-kit" name="limit" value="mc-rtype:o" />
156                         <label for="mc-kit" title="Kits"><img border="0" src="/intranet-tmpl/prog/en/images/KIT.gif" alt="Kits" />Kits</label></td>
157             <td><input type="checkbox" id="mc-ref" name="limit" value="mc-collection:REF" />
158                         <label for="mc-ref" title="Reference">
159                         <img border="0" src="/intranet-tmpl/prog/en/images/REF.gif" alt="Reference" />Reference</label></td>
160             </tr>
161             
162             </table>
163 </fieldset>
164 <!-- /TMPL_IF -->
165 <!-- /TYPE LIMITS -->
166
167
168 </div>
169 </div>
170 <!-- TMPL_IF NAME="UNIMARC" -->
171 <!-- TMPL_INCLUDE NAME="subtypes_unimarc.inc" -->
172 <!-- TMPL_ELSE -->
173 <div id="sidebar">
174 <!-- SUBTYPE LIMITS -->
175         <fieldset>
176         <legend>Subtype limits:</legend><p>
177         
178         <select name="limit" class="subtype">
179             <option value="" selected="selected" class="menuheader">Any audience</option>
180             <option value="aud:a" >Easy</option>
181             <option value="aud:c" >Juvenile</option>
182             <option value="aud:d" >Young adult</option>
183             <option value="aud:e" >Adult</option>
184         </select>
185         
186         <select name="limit" class="subtype">
187             <option value="" selected="selected" class="menuheader">Any content</option>
188             <option value="fic:1" >Fiction</option>
189             <option value="fic:0" >Non fiction</option>
190             <option value="bio:b" >Biography</option>
191             <option value="mus:j" >Musical recording</option>
192             <option value="mus:i" >Non-musical recording</option>
193         </select>
194
195         
196         <select name="limit" class="subtype">
197             <option value="" selected="selected" class="menuheader">Any format</option>
198             <option value="l-format:ta" >Regular print</option>
199             <option value="l-format:tb" >Large print</option>
200             <option value="l-format:fk" >Braille</option>
201             <option value="" >-----------</option>
202             <option value="l-format:sd" >CD audio</option>
203             <option value="l-format:ss" >Cassette recording</option>
204             <option value="l-format:vf" >VHS tape / Videocassette</option>
205             <option value="l-format:vd" >DVD video / Videodisc</option>
206             <option value="l-format:co" >CD Software</option>
207             <option value="l-format:cr" >Website</option>
208         </select>
209         
210         <select name="limit" class="subtype">
211             <option value="" >Additional content types</option>
212             <option value="ctype:a" >Abstracts/summaries</option>
213             <option value="ctype:b" >Bibliographies</option>
214             <option value="ctype:c" >Catalogs</option>
215             <option value="ctype:d" >Dictionaries</option>
216             <option value="ctype:e" >Encyclopedias </option>
217             <option value="ctype:f" >Handbooks</option>
218             <option value="ctype:g" >Legal articles</option>
219             <option value="ctype:i" >Indexes</option>
220             <option value="ctype:j" >Patent document</option>
221             <option value="ctype:k" >Discographies</option>
222             <option value="ctype:l" >Legislation</option>
223             <option value="ctype:m" >Theses</option>
224             <option value="ctype:n" >Surveys</option>
225             <option value="ctype:o" >Reviews</option>
226             <option value="ctype:p" >Programmed texts</option>
227             <option value="ctype:q" >Filmographies</option>
228             <option value="ctype:r" >Directories</option>
229             <option value="ctype:s" >Statistics</option>
230             <option value="ctype:t" >Technical reports</option>
231             <option value="ctype:v" >Legal cases and case notes</option>
232             <option value="ctype:w" >Law reports and digests</option>
233             <option value="ctype:z" >Treaties </option>
234         </select>
235        </p>
236
237 </fieldset>
238 <!-- /TMPL_IF -->
239
240 <!-- AVAILABILITY LIMITS -->
241     <fieldset><legend>Location and availability: </legend>
242         <p>
243         <label for="available-items">Only items currently available</label><input type="checkbox" id="available-items" name="limit" value="available" /></p>
244         <p>
245         <label>Individual Libraries </label><select name="limit" id="branchloop" onchange='if(this.value != ""){document.getElementById("categoryloop").disabled=true;} else {document.getElementById("categoryloop").disabled=false;}'>
246         <option value="">All Libraries</option>
247         <!-- TMPL_LOOP NAME="branchloop" -->
248         <option value="branch:<!-- TMPL_VAR NAME='value' -->"><!-- TMPL_VAR NAME='branchname' --></option>
249         <!-- /TMPL_LOOP -->
250         </select>
251                 <!-- <input type='hidden' name='limit' value='branch: MAIN' /> -->
252         </p>
253         <!-- TMPL_IF NAME="searchdomainloop" -->
254                 <p>OR<p> <!-- should addjs to grey out group pulldown if a library is selected. -->
255                 <p>
256         <label>Groups of Libraries</label><select name="multibranchlimit" id="categoryloop">
257         <option value=""> -- none -- </option>
258         <!-- TMPL_LOOP NAME="searchdomainloop" -->
259         <option value="<!-- TMPL_VAR NAME='categorycode' -->"><!-- TMPL_VAR NAME='categoryname' --></option>
260         <!-- /TMPL_LOOP -->
261         </select>
262         </p>
263                 <!-- /TMPL_IF -->
264     </fieldset>
265 <!-- /AVAILABILITY LIMITS -->
266
267 <!-- RANK LIMITS -->
268
269 <fieldset><legend>Sort by: </legend>
270     <p><select id="sort_by" name="sort_by">
271         <!-- TMPL_INCLUDE NAME="resort_form.inc" -->
272     </select>
273         </p>
274 </fieldset>
275 <!-- RANK LIMITS -->
276 <!-- SEARCH BUTTONS -->
277             <p><input class="submit" type="submit" accesskey="s" value="Search" />
278             <!-- TMPL_IF NAME="expanded_options" -->
279             <a href="/cgi-bin/koha/catalogue/search.pl?expanded_options=0">[Fewer Options]</a>
280             <!-- TMPL_ELSE -->
281             <a href="/cgi-bin/koha/catalogue/search.pl?expanded_options=1">[More options]</a>
282             <!-- /TMPL_IF -->
283             <a href="/cgi-bin/koha/catalogue/search.pl?do=Clear">[New search]</a> 
284             </p>
285 <!-- /SEARCH BUTTONS -->
286 </form>
287 </div>
288 </div>
289 </div>
290
291 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->