2 [% INCLUDE 'doc-head-open.inc' %]
3 [% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %]
4 catalog › Advanced search
5 [% INCLUDE 'doc-head-close.inc' %]
6 <script type="text/javascript" language="javascript">//<![CDATA[
7 $(document).ready(function() {
8 $('#advsearches').tabs();
13 <body id="advsearch"><div id="doc3" class="yui-t7">
15 [% INCLUDE 'masthead.inc' %]
17 <form action="/cgi-bin/koha/opac-search.pl" method="get">
19 [% IF ( if_expanded_options_actually_worked ) %]
20 <div id="databases" class="container"> [% IF ( outer_servers_loop ) %]
23 <legend>Select local databases:</legend>
24 [% FOREACH outer_servers_loo IN outer_servers_loop %]
25 [% FOREACH inner_servers_loo IN outer_servers_loo.inner_servers_loop %]
27 [% IF ( inner_servers_loo.checked ) %]<input type="checkbox" id="[% inner_servers_loo.id %]" name="[% inner_servers_loo.name %]" checked="[% inner_servers_loo.checked %]" value="[% inner_servers_loo.value %]" />[% ELSE %]
28 <input type="checkbox" id="[% inner_servers_loo.id %]" name="[% inner_servers_loo.name %]" value="[% inner_servers_loo.value %]" />[% END %]
29 <label for="[% inner_servers_loo.id %]"><img width="16" height="16" alt="[% inner_servers_loo.id %]" src="[% themelang %]/images/[% inner_servers_loo.icon %]" /> [% inner_servers_loo.label %]</label>
36 [% IF ( outer_sup_servers_loop ) %]
37 <!-- REMOTE DATABASES -->
39 <legend>Select remote databases:</legend>
40 [% FOREACH outer_sup_servers_loo IN outer_sup_servers_loop %]
41 [% FOREACH inner_sup_servers_loo IN outer_sup_servers_loo.inner_sup_servers_loop %]
43 [% IF ( inner_sup_servers_loo.checked ) %]<input type="checkbox" id="[% inner_sup_servers_loo.id %]" name="[% inner_sup_servers_loo.name %]" checked="[% inner_sup_servers_loo.checked %]" value="[% inner_sup_servers_loo.value %]" /><input type="checkbox" id="[% inner_sup_servers_loo.id %]" name="[% inner_sup_servers_loo.name %]" value="[% inner_sup_servers_loo.value %]" />
45 <label for="[% inner_sup_servers_loo.id %]"><img alt="[% inner_sup_servers_loo.id %]" src="[% themelang %]/images/[% inner_sup_servers_loo.icon %]" />[% inner_sup_servers_loo.label %]</label>
49 <!-- /REMOTE DATABASES -->
53 <!-- BOOLEAN SEARCH OPTIONS -->
54 <div id="booleansearch" class="container"><fieldset>
55 <legend>Search for:</legend>
56 [% FOREACH search_box IN search_boxes_loop %]
58 [% IF ( expanded_options ) %]
59 [% IF ( search_box.boolean ) %]
61 <option value="and" selected="selected">and</option>
62 <option value="or">or</option>
63 <option value="not">not</option>
67 [% IF ( expanded_options ) %][% left_content %][% END %]
69 <option value="kw">Keyword</option>
70 <option value="su,wrdl">Subject</option>
71 [% IF ( expanded_options ) %]
72 <option value="su,phr"> Subject phrase</option>
73 <option value="su-br"> Subject and broader terms</option>
74 <option value="su-na"> Subject and narrower terms</option>
75 <option value="su-rl"> Subject and related terms</option>
77 <option value="ti">Title</option>
78 [% IF ( expanded_options ) %]
79 <option value="ti,phr"> Title phrase</option>
80 <option value="se,wrdl">Series title</option>
81 [% IF ( numbersphr) %]
82 <option value="callnum,phr">Call number</option>
84 <option value="callnum">Call number</option>
86 <option value="location">Shelving location</option>
88 <option value="au,wrdl">Author</option>
90 [% IF ( expanded_options ) %]
91 <option value="au,phr"> Author phrase</option>
92 <option value="cpn,wrdl"> Corporate name</option>
93 <option value="cfn,wrdl"> Conference name</option>
94 <option value="cfn,phr"> Conference name phrase</option>
95 <option value="pn,wrdl"> Personal name</option>
96 <option value="pn,phr"> Personal name phrase</option>
98 [% IF ( expanded_options ) %]
99 <option value="nt">Notes/Comments</option>
100 [% IF (marcflavour != 'UNIMARC') %]
101 <option value="curriculum">Curriculum</option>
104 <option value="pb,wrdl">Publisher</option>
105 <option value="pl,wrdl">Publisher location</option>
106 [% IF ( expanded_options ) %]
107 [% IF ( numbersphr) %]
108 <option value="sn,phr">Standard number</option>
110 <option value="sn">Standard number</option>
112 <option value="sn">Standard number</option>
113 <option value="nb"> ISBN</option>
114 <option value="ns"> ISSN</option>
115 [% IF ( numbersphr) %]
116 <option value="lcn,phr"> Call number</option>
118 <option value="lcn"> Call number</option>
121 <option value="nb">ISBN</option>
123 <option value="bc">Barcode</option>
125 <input type="text" size="30" name="q" title="Enter search terms" value="" />
126 [% IF ( expanded_options ) %]
127 <!-- [% IF ( search_box.scan_index ) %]<input type="checkbox" name="scan" id="scan" value="1" /> Scan Indexes[% END %] -->
128 [% IF ( !loop.first ) %]
129 <a class="ButtonPlus" name="ButtonPlus" title="Add another field" href="#">[+]</a>
130 <a class="ButtonLess" title="Remove field" href="#">[-]</a>
138 <div class="yui-g"><div class="container" style="text-align: center;"><!-- SEARCH BUTTONS -->
140 <input class="submit" type="submit" accesskey="s" name="do" title="Search" value="Search" />
141 [% IF ( expanded_options ) %]
142 <a href="/cgi-bin/koha/opac-search.pl?expanded_options=0">[Fewer options]</a>
144 <a href="/cgi-bin/koha/opac-search.pl?expanded_options=1">[More options]</a>
146 <a href="/cgi-bin/koha/opac-search.pl?do=Clear">[New search]</a>
148 <!-- /SEARCH BUTTONS --></div></div>
150 <div id="pubrange" class="container">
152 <!-- PUB RANGE OPTION -->
153 <legend>Publication date range:</legend>
154 <p>For example: 1999-2001. You could also use "-1987" for everything published in and before 1987 or "2008-" for everything published in 2008 and after.</p>
155 <input type="text" size="30" name="limit-yr" title="Enter search terms" value="" />
157 <!-- /PUB RANGE OPTION -->
161 <div id="advsearches" class="toptabs">
163 [% FOREACH advsearchloo IN advancedsearchesloop %]
164 <li id="advsearch-tab-[% advsearchloo.advanced_search_type %]">
165 <a href="#advsearch-[% advsearchloo.advanced_search_type %]">
166 [% IF ( advsearchloo.advanced_search_type == 'itemtypes' ) %]Item type
167 [% ELSIF ( advsearchloo.advanced_search_type == 'ccode' ) %]Collection
168 [% ELSIF ( advsearchloo.advanced_search_type == 'loc' ) %]Shelving location
169 [% ELSE %]Something else
175 <!-- /BOOLEAN SEARCH OPTIONS -->
176 [% FOREACH advsearchloo IN advancedsearchesloop %]
177 <div id="advsearch-[% advsearchloo.advanced_search_type %]" class="container advsearch">
179 <legend>Limit to any of the following:</legend>
182 [% FOREACH itemtypeloo IN advsearchloo.code_loop %]
183 <td><input type="checkbox" id="[% itemtypeloo.ccl FILTER remove(',') %]-[% itemtypeloo.number %]" name="limit" value="mc-[% itemtypeloo.ccl %]:[% itemtypeloo.code %]"/><label for="[% itemtypeloo.ccl FILTER remove(',') %]-[% itemtypeloo.number %]">[% UNLESS ( noItemTypeImages ) %][% IF ( itemtypeloo.imageurl ) %]<img border="0" src="[% itemtypeloo.imageurl %]" alt="[% itemtypeloo.description %]" />[% END %] [% END %]
184 [% itemtypeloo.description %]</label></td>
185 [% IF ( loop.last ) %]</tr>[% ELSE %][% UNLESS ( loop.count % 5 ) %]</tr><tr>[% END %][% END %]
192 <div id="langfilter">
193 <fieldset><legend>Language</legend>
194 <!-- LANGUAGE LIMIT -->
195 <p><label for="language-limit">Language: </label>
196 <select id="language-limit" name="limit">
197 <option value="">No limit</option>
198 [% FOREACH search_languages_loo IN search_languages_loop %]
199 [% IF ( search_languages_loo.selected ) %]
200 <option value="ln,rtrn:[% search_languages_loo.iso639_2_code %]" selected="selected">[% search_languages_loo.language_description %]</option>
202 <option value="ln,rtrn:[% search_languages_loo.iso639_2_code %]">[% search_languages_loo.language_description %]</option>
205 </select></p><!-- <a href="">Show all languages</a>-->
206 <!-- /LANGUAGE LIMIT -->
209 [% IF ( expanded_options ) %]
211 <!-- SUBTYPE LIMITS -->
212 <div id="subtypes" class="container"><fieldset>
213 <legend>Subtype limits</legend><select name="limit" class="subtype">
214 <option value="" selected="selected" class="menuheader">Any audience</option>
215 <option value="aud:a">Preschool</option>
216 <option value="aud:b">Primary</option>
217 <option value="aud:c">Pre-adolescent</option>
218 <option value="aud:d">Adolescent</option>
219 <option value="aud:e">Adult</option>
220 <option value="aud:f">Specialized</option>
221 <option value="aud:g">General</option>
222 <option value="aud:j">Juvenile</option>
225 <select name="limit" class="subtype">
226 <option value="" selected="selected" class="menuheader">Any content</option>
227 <option value="fic:1">Fiction</option>
228 <option value="fic:0">Non fiction</option>
229 <option value="bio:b">Biography</option>
230 <option value="mus:j">Musical recording</option>
231 <option value="mus:i">Non-musical recording</option>
235 <select name="limit" class="subtype">
236 <option value="" selected="selected" class="menuheader">Any format</option>
237 <option value="l-format:ta">Regular print</option>
238 <option value="l-format:tb">Large print</option>
239 <option value="l-format:fk">Braille</option>
240 <option value="">-----------</option>
241 <option value="l-format:sd">CD audio</option>
242 <option value="l-format:ss">Cassette recording</option>
243 <option value="l-format:vf">VHS tape / Videocassette</option>
244 <option value="l-format:vd">DVD video / Videodisc</option>
245 <option value="l-format:co">CD software</option>
246 <option value="l-format:cr">Website</option>
249 <select name="limit" class="subtype">
250 <option value="">Additional content types for books/printed materials</option>
251 <option value="ctype:a">Abstracts/summaries</option>
252 <option value="ctype:b">Bibliographies</option>
253 <option value="ctype:c">Catalogs</option>
254 <option value="ctype:d">Dictionaries</option>
255 <option value="ctype:e">Encyclopedias </option>
256 <option value="ctype:f">Handbooks</option>
257 <option value="ctype:g">Legal articles</option>
258 <option value="ctype:i">Indexes</option>
259 <option value="ctype:j">Patent document</option>
260 <option value="ctype:k">Discographies</option>
261 <option value="ctype:l">Legislation</option>
262 <option value="ctype:m">Theses</option>
263 <option value="ctype:n">Surveys</option>
264 <option value="ctype:o">Reviews</option>
265 <option value="ctype:p">Programmed texts</option>
266 <option value="ctype:q">Filmographies</option>
267 <option value="ctype:r">Directories</option>
268 <option value="ctype:s">Statistics</option>
269 <option value="ctype:t">Technical reports</option>
270 <option value="ctype:v">Legal cases and case notes</option>
271 <option value="ctype:w">Law reports and digests</option>
272 <option value="ctype:z">Treaties </option>
278 <div id="subtypes_unimarc" class="container"><!-- SUBTYPE LIMITS -->
279 [% INCLUDE 'subtypes_unimarc.inc' %]</div>
286 <div class="yui-u first">
287 <!-- AVAILABILITY LIMITS -->
288 [% UNLESS ( singleBranchMode ) %]
289 <div id="location" class="container"><fieldset><legend>Location and availability: </legend>
291 <label for="branchloop">Library:</label>
292 <select name="limit" id="branchloop">
293 <option value="">All libraries</option>
294 [% FOREACH BranchesLoo IN BranchesLoop %]
295 [% IF ( BranchesLoo.selected ) %]
296 <option value="branch:[% BranchesLoo.value %]" selected="selected">[% BranchesLoo.branchname %]</option>
298 <option value="branch:[% BranchesLoo.value %]">[% BranchesLoo.branchname %]</option>
302 [% IF ( searchdomainloop ) %]
303 <p>OR</p> <!-- should addjs to grey out group pulldown if a library is selected. -->
304 <label for="categoryloop">Groups of libraries</label><select name="multibranchlimit" id="categoryloop">
305 <option value=""> -- none -- </option>
306 [% FOREACH searchdomainloo IN searchdomainloop %]
307 <option value="[% searchdomainloo.categorycode %]">[% searchdomainloo.categoryname %]</option>
311 <div style="margin-top:.4em"><label for="available-items"><input type="checkbox" id="available-items" name="limit" value="available" /> Only items currently available for loan or reference</label></div>
314 <!-- /AVAILABILITY LIMITS -->
318 <div id="sortby" class="container"><fieldset><legend>Sorting: </legend>
319 <label for="sort_by">Sort by:</label> <select id="sort_by" name="sort_by">
320 [% INCLUDE 'resort_form.inc' %]
321 </select></fieldset></div>
326 <div class="yui-g"><div class="container" style="text-align: center;"><!-- SEARCH BUTTONS -->
328 <input class="submit" type="submit" accesskey="s" name="do" title="Search" value="Search" />
329 [% IF ( expanded_options ) %]
330 <a href="/cgi-bin/koha/opac-search.pl?expanded_options=0">[Fewer options]</a>
332 <a href="/cgi-bin/koha/opac-search.pl?expanded_options=1">[More options]</a>
334 <a href="/cgi-bin/koha/opac-search.pl?do=Clear">[New search]</a>
336 <!-- /SEARCH BUTTONS --></div></div>
339 <script type="text/javascript" language="javascript">
340 /* This function allows to display a new field to search.
342 $(document).on("click", '.ButtonPlus', function(e) {
344 $('.ButtonLess').show();
345 var thisLine = $(this).parent();
346 var newLine = thisLine.clone();
347 newLine.find('input').val('');
348 thisLine.after(newLine);
351 $(document).on("click", '.ButtonLess', function(e) {
353 if($(this).parent().siblings().length <= 3 ) {
354 $('.ButtonLess').hide();
356 $(this).parent().remove();
361 [% INCLUDE 'opac-bottom.inc' %]