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 <label for="search-field_[% loop.index %]">
68 [% IF loop.index == 0 %]
69
75 [% IF ( expanded_options ) %][% left_content %][% END %]
76 <select name="idx" id="search-field_[% loop.index %]">
77 <option value="kw">Keyword</option>
78 <option value="su,wrdl">Subject</option>
79 [% IF ( expanded_options ) %]
80 <option value="su,phr"> Subject phrase</option>
81 <option value="su-br"> Subject and broader terms</option>
82 <option value="su-na"> Subject and narrower terms</option>
83 <option value="su-rl"> Subject and related terms</option>
85 <option value="ti">Title</option>
86 [% IF ( expanded_options ) %]
87 <option value="ti,phr"> Title phrase</option>
88 <option value="se,wrdl">Series title</option>
89 [% IF ( numbersphr) %]
90 <option value="callnum,phr">Call number</option>
92 <option value="callnum">Call number</option>
94 <option value="location">Shelving location</option>
96 <option value="au,wrdl">Author</option>
98 [% IF ( expanded_options ) %]
99 <option value="au,phr"> Author phrase</option>
100 <option value="cpn,wrdl"> Corporate name</option>
101 <option value="cfn,wrdl"> Conference name</option>
102 <option value="cfn,phr"> Conference name phrase</option>
103 <option value="pn,wrdl"> Personal name</option>
104 <option value="pn,phr"> Personal name phrase</option>
106 [% IF ( expanded_options ) %]
107 <option value="nt">Notes/Comments</option>
108 [% IF (marcflavour != 'UNIMARC') %]
109 <option value="curriculum">Curriculum</option>
112 <option value="pb,wrdl">Publisher</option>
113 <option value="pl,wrdl">Publisher location</option>
114 [% IF ( expanded_options ) %]
115 [% IF ( numbersphr) %]
116 <option value="sn,phr">Standard number</option>
118 <option value="sn">Standard number</option>
120 <option value="nb"> ISBN</option>
121 <option value="ns"> ISSN</option>
122 [% IF ( numbersphr) %]
123 <option value="lcn,phr"> Call number</option>
125 <option value="lcn"> Call number</option>
128 <option value="nb">ISBN</option>
130 <option value="bc">Barcode</option>
132 <input type="text" size="30" name="q" title="Enter search terms" value="" />
133 [% IF ( expanded_options ) %]
134 <!-- [% IF ( search_box.scan_index ) %]<input type="checkbox" name="scan" id="scan" value="1" /> Scan Indexes[% END %] -->
135 [% IF ( !loop.first ) %]
136 <a class="ButtonPlus" name="ButtonPlus" title="Add another field" href="#">[+]</a>
137 <a class="ButtonLess" title="Remove field" href="#">[-]</a>
145 <div class="yui-g"><div class="container" style="text-align: center;"><!-- SEARCH BUTTONS -->
147 <input class="submit" type="submit" accesskey="s" name="do" title="Search" value="Search" />
148 [% IF ( expanded_options ) %]
149 <a href="/cgi-bin/koha/opac-search.pl?expanded_options=0">[Fewer options]</a>
151 <a href="/cgi-bin/koha/opac-search.pl?expanded_options=1">[More options]</a>
153 <a href="/cgi-bin/koha/opac-search.pl?do=Clear">[New search]</a>
155 <!-- /SEARCH BUTTONS --></div></div>
157 <div id="pubrange" class="container">
159 <!-- PUB RANGE OPTION -->
160 <legend>Publication date range:</legend>
161 <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>
162 <input type="text" size="30" name="limit-yr" title="Enter search terms" value="" />
164 <!-- /PUB RANGE OPTION -->
168 <div id="advsearches" class="toptabs">
170 [% FOREACH advsearchloo IN advancedsearchesloop %]
171 <li id="advsearch-tab-[% advsearchloo.advanced_search_type %]">
172 <a href="#advsearch-[% advsearchloo.advanced_search_type %]">
173 [% IF ( advsearchloo.advanced_search_type == 'itemtypes' ) %]Item type
174 [% ELSIF ( advsearchloo.advanced_search_type == 'ccode' ) %]Collection
175 [% ELSIF ( advsearchloo.advanced_search_type == 'loc' ) %]Shelving location
176 [% ELSE %]Something else
182 <!-- /BOOLEAN SEARCH OPTIONS -->
183 [% FOREACH advsearchloo IN advancedsearchesloop %]
184 <div id="advsearch-[% advsearchloo.advanced_search_type %]" class="container advsearch">
186 <legend>Limit to any of the following:</legend>
189 [% FOREACH itemtypeloo IN advsearchloo.code_loop %]
190 <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 %]
191 [% itemtypeloo.description %]</label></td>
192 [% IF ( loop.last ) %]</tr>[% ELSE %][% UNLESS ( loop.count % 5 ) %]</tr><tr>[% END %][% END %]
199 <div id="langfilter">
200 <fieldset><legend>Language</legend>
201 <!-- LANGUAGE LIMIT -->
202 <p><label for="language-limit">Language: </label>
203 <select id="language-limit" name="limit">
204 <option value="">No limit</option>
205 [% FOREACH search_languages_loo IN search_languages_loop %]
206 [% IF ( search_languages_loo.selected ) %]
207 <option value="ln,rtrn:[% search_languages_loo.iso639_2_code %]" selected="selected">[% search_languages_loo.language_description %]</option>
209 <option value="ln,rtrn:[% search_languages_loo.iso639_2_code %]">[% search_languages_loo.language_description %]</option>
212 </select></p><!-- <a href="">Show all languages</a>-->
213 <!-- /LANGUAGE LIMIT -->
216 [% IF ( expanded_options ) %]
218 <!-- SUBTYPE LIMITS -->
219 <div id="subtypes" class="container"><fieldset>
220 <legend>Subtype limits</legend><select name="limit" class="subtype">
221 <option value="" selected="selected" class="menuheader">Any audience</option>
222 <option value="aud:a">Preschool</option>
223 <option value="aud:b">Primary</option>
224 <option value="aud:c">Pre-adolescent</option>
225 <option value="aud:d">Adolescent</option>
226 <option value="aud:e">Adult</option>
227 <option value="aud:f">Specialized</option>
228 <option value="aud:g">General</option>
229 <option value="aud:j">Juvenile</option>
232 <select name="limit" class="subtype">
233 <option value="" selected="selected" class="menuheader">Any content</option>
234 <option value="fic:1">Fiction</option>
235 <option value="fic:0">Non fiction</option>
236 <option value="bio:b">Biography</option>
237 <option value="mus:j">Musical recording</option>
238 <option value="mus:i">Non-musical recording</option>
242 <select name="limit" class="subtype">
243 <option value="" selected="selected" class="menuheader">Any format</option>
244 <option value="l-format:ta">Regular print</option>
245 <option value="l-format:tb">Large print</option>
246 <option value="l-format:fk">Braille</option>
247 <option value="">-----------</option>
248 <option value="l-format:sd">CD audio</option>
249 <option value="l-format:ss">Cassette recording</option>
250 <option value="l-format:vf">VHS tape / Videocassette</option>
251 <option value="l-format:vd">DVD video / Videodisc</option>
252 <option value="l-format:co">CD software</option>
253 <option value="l-format:cr">Website</option>
256 <select name="limit" class="subtype">
257 <option value="">Additional content types for books/printed materials</option>
258 <option value="ctype:a">Abstracts/summaries</option>
259 <option value="ctype:b">Bibliographies</option>
260 <option value="ctype:c">Catalogs</option>
261 <option value="ctype:d">Dictionaries</option>
262 <option value="ctype:e">Encyclopedias </option>
263 <option value="ctype:f">Handbooks</option>
264 <option value="ctype:g">Legal articles</option>
265 <option value="ctype:i">Indexes</option>
266 <option value="ctype:j">Patent document</option>
267 <option value="ctype:k">Discographies</option>
268 <option value="ctype:l">Legislation</option>
269 <option value="ctype:m">Theses</option>
270 <option value="ctype:n">Surveys</option>
271 <option value="ctype:o">Reviews</option>
272 <option value="ctype:p">Programmed texts</option>
273 <option value="ctype:q">Filmographies</option>
274 <option value="ctype:r">Directories</option>
275 <option value="ctype:s">Statistics</option>
276 <option value="ctype:t">Technical reports</option>
277 <option value="ctype:v">Legal cases and case notes</option>
278 <option value="ctype:w">Law reports and digests</option>
279 <option value="ctype:z">Treaties </option>
285 <div id="subtypes_unimarc" class="container"><!-- SUBTYPE LIMITS -->
286 [% INCLUDE 'subtypes_unimarc.inc' %]</div>
293 <div class="yui-u first">
294 <!-- AVAILABILITY LIMITS -->
295 [% UNLESS ( singleBranchMode ) %]
296 <div id="location" class="container"><fieldset><legend>Location and availability: </legend>
298 <label for="branchloop">Library:</label>
299 <select name="limit" id="branchloop">
300 <option value="">All libraries</option>
301 [% FOREACH BranchesLoo IN BranchesLoop %]
302 [% IF ( BranchesLoo.selected ) %]
303 <option value="branch:[% BranchesLoo.value %]" selected="selected">[% BranchesLoo.branchname %]</option>
305 <option value="branch:[% BranchesLoo.value %]">[% BranchesLoo.branchname %]</option>
309 [% IF ( searchdomainloop ) %]
310 <p>OR</p> <!-- should addjs to grey out group pulldown if a library is selected. -->
311 <label for="categoryloop">Groups of libraries</label><select name="multibranchlimit" id="categoryloop">
312 <option value=""> -- none -- </option>
313 [% FOREACH searchdomainloo IN searchdomainloop %]
314 <option value="[% searchdomainloo.categorycode %]">[% searchdomainloo.categoryname %]</option>
318 <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>
321 <!-- /AVAILABILITY LIMITS -->
325 <div id="sortby" class="container"><fieldset><legend>Sorting: </legend>
326 <label for="sort_by">Sort by:</label> <select id="sort_by" name="sort_by">
327 [% INCLUDE 'resort_form.inc' %]
328 </select></fieldset></div>
333 <div class="yui-g"><div class="container" style="text-align: center;"><!-- SEARCH BUTTONS -->
335 <input class="submit" type="submit" accesskey="s" name="do" title="Search" value="Search" />
336 [% IF ( expanded_options ) %]
337 <a href="/cgi-bin/koha/opac-search.pl?expanded_options=0">[Fewer options]</a>
339 <a href="/cgi-bin/koha/opac-search.pl?expanded_options=1">[More options]</a>
341 <a href="/cgi-bin/koha/opac-search.pl?do=Clear">[New search]</a>
343 <!-- /SEARCH BUTTONS --></div></div>
346 <script type="text/javascript" language="javascript">
347 /* This function allows to display a new field to search.
349 $(document).on("click", '.ButtonPlus', function(e) {
351 $('.ButtonLess').show();
352 var thisLine = $(this).parent();
353 var newLine = thisLine.clone();
354 newLine.find('input').val('');
355 thisLine.after(newLine);
358 $(document).on("click", '.ButtonLess', function(e) {
360 if($(this).parent().siblings().length <= 3 ) {
361 $('.ButtonLess').hide();
363 $(this).parent().remove();
368 [% INCLUDE 'opac-bottom.inc' %]