1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha › Catalog › Advanced Search</title>
3 [% INCLUDE 'doc-head-close.inc' %]
4 <script type="text/JavaScript" language="JavaScript">
6 * Function add_field();
7 * This function allows to display a new field to search.
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);
16 $(document).ready(function() {
17 $("input[name=q]:eq(0)").focus();
23 [% INCLUDE 'header.inc' %]
24 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › Advanced Search</div>
26 <div id="doc" class="yui-t7">
29 <form action="search.pl" method="get">
30 <div id="advanced-search">
31 <h1>Advanced Search</h1>
33 [% IF ( outer_servers_loop ) %]
37 <legend>Select local databases</legend>
38 [% FOREACH local_servers_loo IN local_servers_loop %]
39 [% IF ( local_servers_loo.checked ) %]<input type="checkbox" id="[% local_servers_loo.id %]" name="[% local_servers_loo.name %]" checked="checked" value="[% local_servers_loo.value %]" />[% ELSE %]<input type="checkbox" id="[% local_servers_loo.id %]" name="[% local_servers_loo.name %]" value="[% local_servers_loo.value %]" />[% END %]<label for="[% local_servers_loo.id %]"><img width="16" height="16" alt="[% local_servers_loo.id %]" src="[% themelang %]/img/[% local_servers_loo.icon %]" /> [% local_servers_loo.label %]</label>[% END %]
44 [% IF ( outer_servers_loop ) %]
45 <!-- REMOTE DATABASES -->
47 <legend>Select remote databases:</legend>
48 [% FOREACH outer_servers_loo IN outer_servers_loop %]
49 [% IF ( outer_servers_loo.checked ) %]<input type="checkbox" id="[% outer_servers_loo.id %]" name="[% outer_servers_loo.name %]" checked="checked" value="[% outer_servers_loo.value %]" />[% ELSE %]<input type="checkbox" id="[% outer_servers_loo.id %]" name="[% outer_servers_loo.name %]" value="[% outer_servers_loo.value %]" />[% END %]
50 <label for="[% outer_servers_loo.id %]"><img alt="[% outer_servers_loo.id %]" src="[% themelang %]/images/[% outer_servers_loo.icon %]" />[% outer_servers_loo.label %]</label>
53 <!-- /REMOTE DATABASES -->
56 <!-- BOOLEAN SEARCH OPTIONS -->
58 <legend>Search For: </legend>
59 [% FOREACH search_box IN search_boxes_loop %]
60 [% IF ( search_boxes_label ) %]<div style="text-indent: 4.5em;">[% ELSE %]<div>[% END %]
61 [% IF ( expanded_options ) %]
62 [% IF ( search_box.boolean ) %]
64 <option value="and" selected="selected">and</option>
65 <option value="or">or</option>
66 <option value="not">not</option>
70 [% INCLUDE 'search_indexes.inc' %]
71 <input type="text" size="30" name="q" title="Enter search terms" value="" />
72 [% IF ( expanded_options ) %]
73 [% IF ( search_box.add_field ) %]
74 <a href="JavaScript:add_field();" id="ButtonPlus" title="Add another field">[+]</a>
76 [% IF ( search_box.scan_index ) %]
77 <label for="scan">Scan Indexes</label><input type="checkbox" name="scan" id="scan" value="1" />
83 <!-- /BOOLEAN SEARCH OPTIONS -->
85 <!-- SEARCH BUTTONS -->
86 <p><input class="submit" type="submit" accesskey="s" value="Search" />
87 [% IF ( expanded_options ) %]
88 <a href="/cgi-bin/koha/catalogue/search.pl?expanded_options=0">[Fewer Options]</a>
90 <a href="/cgi-bin/koha/catalogue/search.pl?expanded_options=1">[More options]</a>
92 <a href="/cgi-bin/koha/catalogue/search.pl?do=Clear">[New search]</a>
94 <!-- /SEARCH BUTTONS -->
96 <div id="itemtypelist">
97 <!-- ITEMTYPE LIMITS -->
99 <legend>Limit to any of the following:</legend>
102 [% FOREACH itemtypeloo IN itemtypeloop %]
104 [% UNLESS ( noItemTypeImages ) %]
105 [% IF ( itemtypeloo.imageurl ) %]<img border="0" src="[% itemtypeloo.imageurl %]" alt="[% itemtypeloo.description %]" />[% END %]
107 <input type="checkbox" id="[% itemtypeloo.ccl %]-[% itemtypeloo.number %]" name="limit" value="mc-[% itemtypeloo.ccl %]:[% itemtypeloo.code %]" />
108 <label for="[% itemtypeloo.ccl %]-[% itemtypeloo.number %]">[% itemtypeloo.description %]</label></td>
109 [% UNLESS ( itemtypeloo.count5 ) %]</tr><tr>[% END %]
111 <!-- FIXME: for validation, avoid generating empty row -->
115 <!-- /ITEMTYPE LIMITS -->
118 [% IF ( expanded_options ) %]
119 <div id="basiclimits" class="container">
120 <!-- BASIC LIMITS -->
122 <legend>Limits:</legend>
123 <div id="pubrange" class="container">
124 <!-- PUB / COPY YEAR LIMIT --><!-- FIXME: add publication,copyright,acquisition options -->
125 <p><label for="limit-yr">Year: </label>
126 <input type="text" size="15" name="limit-yr" id="" value=""/> (format: yyyy-yyyy)</p>
127 <!-- /PUB / COPY YEAR LIMIT -->
129 <div id="language" class="container">
130 <!-- LANGUAGE LIMIT -->
131 <p><label for="language-limit">Language: </label>
132 <select name="limit">
133 <option value="">No Limit</option>
134 [% FOREACH search_languages_loo IN search_languages_loop %]
135 [% IF ( search_languages_loo.selected ) %]
136 <option value="ln,rtrn:[% search_languages_loo.iso639_2_code %]" selected="selected">[% search_languages_loo.language_description %]</option>
138 <option value="ln,rtrn:[% search_languages_loo.iso639_2_code %]">[% search_languages_loo.language_description %]</option>
142 </select></p><!-- <a href="">Show all languages</a>-->
143 <!-- /LANGUAGE LIMIT -->
146 <!-- /BASIC LIMITS -->
152 [% INCLUDE 'subtypes_unimarc.inc' %]
154 <div id="subtype" class="container">
155 <!-- SUBTYPE LIMITS -->
157 <legend>Subtype limits:</legend><p>
159 <select name="limit" class="subtype">
160 <option value="" selected="selected" class="menuheader">Any audience</option>
161 <option value="aud:a">Preschool</option>
162 <option value="aud:b">Primary</option>
163 <option value="aud:c">Pre-adolescent</option>
164 <option value="aud:d">Adolescent</option>
165 <option value="aud:e">Adult</option>
166 <option value="aud:f">Specialized</option>
167 <option value="aud:g">General</option>
168 <option value="aud:j">Juvenile</option>
171 <select name="limit" class="subtype">
172 <option value="" selected="selected" class="menuheader">Any content</option>
173 <option value="fic:1" >Fiction</option>
174 <option value="fic:0" >Non fiction</option>
175 <option value="bio:b" >Biography</option>
176 <option value="mus:j" >Musical recording</option>
177 <option value="mus:i" >Non-musical recording</option>
181 <select name="limit" class="subtype">
182 <option value="" selected="selected" class="menuheader">Any format</option>
183 <option value="l-format:ta" >Regular print</option>
184 <option value="l-format:tb" >Large print</option>
185 <option value="l-format:fk" >Braille</option>
186 <option value="" >-----------</option>
187 <option value="l-format:sd" >CD audio</option>
188 <option value="l-format:ss" >Cassette recording</option>
189 <option value="l-format:vf" >VHS tape / Videocassette</option>
190 <option value="l-format:vd" >DVD video / Videodisc</option>
191 <option value="l-format:co" >CD Software</option>
192 <option value="l-format:cr" >Website</option>
195 <select name="limit" class="subtype">
196 <option value="" >Additional content types</option>
197 <option value="ctype:a" >Abstracts/summaries</option>
198 <option value="ctype:b" >Bibliographies</option>
199 <option value="ctype:c" >Catalogs</option>
200 <option value="ctype:d" >Dictionaries</option>
201 <option value="ctype:e" >Encyclopedias </option>
202 <option value="ctype:f" >Handbooks</option>
203 <option value="ctype:g" >Legal articles</option>
204 <option value="ctype:i" >Indexes</option>
205 <option value="ctype:j" >Patent document</option>
206 <option value="ctype:k" >Discographies</option>
207 <option value="ctype:l" >Legislation</option>
208 <option value="ctype:m" >Theses</option>
209 <option value="ctype:n" >Surveys</option>
210 <option value="ctype:o" >Reviews</option>
211 <option value="ctype:p" >Programmed texts</option>
212 <option value="ctype:q" >Filmographies</option>
213 <option value="ctype:r" >Directories</option>
214 <option value="ctype:s" >Statistics</option>
215 <option value="ctype:t" >Technical reports</option>
216 <option value="ctype:v" >Legal cases and case notes</option>
217 <option value="ctype:w" >Law reports and digests</option>
218 <option value="ctype:z" >Treaties </option>
226 [% IF ( template_defined_limits ) %]
227 <div id="advsearch-itemtype" class="container">
231 <legend>Limit to any of the following</legend>
232 <table class="itemtypes">
234 <td><input type="checkbox" id="mc-bks" name="limit" value="mc:t" />
235 <label for="mc-bks" title="Books, Pamphlets, Technical reports, Manuscripts, Legal papers, Theses and dissertations">
236 <img border="0" src="/intranet-tmpl/prog/img/AF.gif" alt="Books" />Books</label></td>
237 <td><input type="checkbox" id="mc-vis" name="limit" value="mc:v" />
238 <label for="mc-vis" title="Motion pictures, Videorecordings, Filmstrips, Slides, Transparencies, Photos, Cards, Charts, Drawings">
239 <img border="0" src="/intranet-tmpl/prog/en/images/AV Aids.gif" alt="Visual Materials" />Visual Materials</label></td>
240 <td><input type="checkbox" id="mc-sr" name="limit" value="mc-rtype:i" />
241 <label for="mc-sr" title="Spoken, Books on CD and Cassette">
242 <img border="0" src="/intranet-tmpl/prog/en/images/AF.gif" alt="Books on Tape" />Books on Tape</label></td>
246 <td><input type="checkbox" id="mc-cf" name="limit" value="mc:c" />
247 <label for="mc-cf" title="Computer files, Data, Software">
248 <img border="0" src="/intranet-tmpl/prog/en/images/CD-ROM software.gif" alt="Computer Files" />Computer Files</label></td>
249 <td><input type="checkbox" id="mc-lh" name="limit" value="mc-collection:LH" />
250 <label for="mc-lh" title="Local History Materials">
251 <img border="0" src="/intranet-tmpl/prog/en/images/Local history.gif" alt="Local History Materials" />Local History Materials</label></td>
252 <td><input type="checkbox" id="mc-map" name="limit" value="mc:a" />
253 <label for="mc-map" title="Maps, Globes">
254 <img border="0" src="/intranet-tmpl/prog/en/images/PF.gif " alt="Maps" />Maps</label></td>
258 <td><input type="checkbox" id="mc-mus" name="limit" value="mc-rtype:j" />
259 <label for="mc-mus" title="Music">
260 <img border="0" src="/intranet-tmpl/prog/en/images/CDM.gif" alt="Music" />Music</label></td>
261 <td><input type="checkbox" id="mc-kit" name="limit" value="mc-rtype:o" />
262 <label for="mc-kit" title="Kits"><img border="0" src="/intranet-tmpl/prog/en/images/KIT.gif" alt="Kits" />Kits</label></td>
263 <td><input type="checkbox" id="mc-ref" name="limit" value="mc-collection:REF" />
264 <label for="mc-ref" title="Reference">
265 <img border="0" src="/intranet-tmpl/prog/en/images/REF.gif" alt="Reference" />Reference</label></td>
272 <!-- /TYPE LIMITS -->
274 <div id="availability" class="container">
275 <!-- AVAILABILITY LIMITS -->
276 <fieldset><legend>Location and availability: </legend>
277 <div id="currently-avail" class="container">
278 <label for="available-items">Only items currently available</label> <input type="checkbox" id="available-items" name="limit" value="available" />
281 <div id="select-libs" class="container">
282 <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;}'>
283 <option value="">All Libraries</option>
284 [% FOREACH branchloo IN branchloop %]
285 [% IF ( branchloo.selected ) %]
286 <option value="branch:[% branchloo.value %]" selected="selected">[% branchloo.branchname %]</option>
288 <option value="branch:[% branchloo.value %]">[% branchloo.branchname %]</option>
292 <!-- <input type="hidden" name="limit" value="branch: MAIN" /> -->
293 [% IF ( searchdomainloop ) %]
294 <p>OR</p> <!-- should addjs to grey out group pulldown if a library is selected. -->
295 <label for="categoryloop">Groups of Libraries</label><select name="multibranchlimit" id="categoryloop">
296 <option value=""> -- none -- </option>
297 [% FOREACH searchdomainloo IN searchdomainloop %]
298 <option value="[% searchdomainloo.categorycode %]">[% searchdomainloo.categoryname %]</option>
304 <!-- /AVAILABILITY LIMITS -->
309 <div id="sortby" class="container">
310 <fieldset><legend>Sort by: </legend>
311 <p><select id="sort_by" name="sort_by">
312 [% INCLUDE 'resort_form.inc' %]
322 <!-- SEARCH BUTTONS -->
323 <p><input class="submit" type="submit" accesskey="s" value="Search" />
324 [% IF ( expanded_options ) %]
325 <a href="/cgi-bin/koha/catalogue/search.pl?expanded_options=0">[Fewer Options]</a>
327 <a href="/cgi-bin/koha/catalogue/search.pl?expanded_options=1">[More options]</a>
329 <a href="/cgi-bin/koha/catalogue/search.pl?do=Clear">[New search]</a>
331 <!-- /SEARCH BUTTONS -->
335 [% INCLUDE 'intranet-bottom.inc' %]