1 [% INCLUDE 'doc-head-open.inc' %]
2 [% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %]
3 catalog › Advanced search
4 [% INCLUDE 'doc-head-close.inc' %]
5 <script type="text/javascript" language="javascript">//<![CDATA[
6 $(document).ready(function() {
7 $('#advsearches').tabs();
12 <body id="advsearch"><div id="doc3" class="yui-t7">
14 [% INCLUDE 'masthead.inc' %]
16 <form action="/cgi-bin/koha/opac-search.pl" method="get">
18 [% IF ( if_expanded_options_actually_worked ) %]
19 <div id="databases" class="container"> [% IF ( outer_servers_loop ) %]
22 <legend>Select local databases:</legend>
23 [% FOREACH outer_servers_loo IN outer_servers_loop %]
24 [% FOREACH inner_servers_loo IN outer_servers_loo.inner_servers_loop %]
26 [% 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 %]
27 <input type="checkbox" id="[% inner_servers_loo.id %]" name="[% inner_servers_loo.name %]" value="[% inner_servers_loo.value %]" />[% END %]
28 <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>
35 [% IF ( outer_sup_servers_loop ) %]
36 <!-- REMOTE DATABASES -->
38 <legend>Select remote databases:</legend>
39 [% FOREACH outer_sup_servers_loo IN outer_sup_servers_loop %]
40 [% FOREACH inner_sup_servers_loo IN outer_sup_servers_loo.inner_sup_servers_loop %]
42 [% 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 %]" />
44 <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>
48 <!-- /REMOTE DATABASES -->
52 <!-- BOOLEAN SEARCH OPTIONS -->
53 <div id="booleansearch" class="container"><fieldset>
54 <legend>Search for:</legend>
55 [% FOREACH search_box IN search_boxes_loop %]
57 [% IF ( expanded_options ) %]
58 [% IF ( search_box.boolean ) %]
60 <option value="and" selected="selected">and</option>
61 <option value="or">or</option>
62 <option value="not">not</option>
66 [% IF ( expanded_options ) %][% left_content %][% END %]
68 <option value="kw">Keyword</option>
69 <option value="su,wrdl">Subject</option>
70 [% IF ( expanded_options ) %]
71 <option value="su,phr"> Subject phrase</option>
72 <option value="su-br"> Subject and broader terms</option>
73 <option value="su-na"> Subject and narrower terms</option>
74 <option value="su-rl"> Subject and related terms</option>
76 <option value="ti">Title</option>
77 [% IF ( expanded_options ) %]
78 <option value="ti,phr"> Title phrase</option>
79 <option value="se,wrdl">Series title</option>
80 [% IF ( numbersphr) %]
81 <option value="callnum,phr">Call number</option>
83 <option value="callnum">Call number</option>
85 <option value="location">Shelving location</option>
87 <option value="au,wrdl">Author</option>
89 [% IF ( expanded_options ) %]
90 <option value="au,phr"> Author phrase</option>
91 <option value="cpn,wrdl"> Corporate name</option>
92 <option value="cfn,wrdl"> Conference name</option>
93 <option value="cfn,phr"> Conference name phrase</option>
94 <option value="pn,wrdl"> Personal name</option>
95 <option value="pn,phr"> Personal name phrase</option>
97 [% IF ( expanded_options ) %]
98 <option value="nt">Notes/Comments</option>
99 [% IF (marcflavour != 'UNIMARC') %]
100 <option value="curriculum">Curriculum</option>
103 <option value="pb,wrdl">Publisher</option>
104 <option value="pl,wrdl">Publisher location</option>
105 [% IF ( expanded_options ) %]
106 [% IF ( numbersphr) %]
107 <option value="sn,phr">Standard number</option>
109 <option value="sn">Standard number</option>
111 <option value="sn">Standard number</option>
112 <option value="nb"> ISBN</option>
113 <option value="ns"> ISSN</option>
114 [% IF ( numbersphr) %]
115 <option value="lcn,phr"> Call number</option>
117 <option value="lcn"> Call number</option>
120 <option value="nb">ISBN</option>
122 <option value="bc">Barcode</option>
124 <input type="text" size="30" name="q" title="Enter search terms" value="" />
125 [% IF ( expanded_options ) %]
126 <!-- [% IF ( search_box.scan_index ) %]<input type="checkbox" name="scan" id="scan" value="1" /> Scan Indexes[% END %] -->
127 [% IF ( !loop.first ) %]
128 <a class="ButtonPlus" name="ButtonPlus" title="Add another field" href="#">[+]</a>
129 <a class="ButtonLess" title="Remove field" href="#">[-]</a>
137 <div class="yui-g"><div class="container" style="text-align: center;"><!-- SEARCH BUTTONS -->
139 <input class="submit" type="submit" accesskey="s" name="do" title="Search" value="Search" />
140 [% IF ( expanded_options ) %]
141 <a href="/cgi-bin/koha/opac-search.pl?expanded_options=0">[Fewer options]</a>
143 <a href="/cgi-bin/koha/opac-search.pl?expanded_options=1">[More options]</a>
145 <a href="/cgi-bin/koha/opac-search.pl?do=Clear">[New search]</a>
147 <!-- /SEARCH BUTTONS --></div></div>
149 <div id="pubrange" class="container">
151 <!-- PUB RANGE OPTION -->
152 <legend>Publication date range:</legend>
153 <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>
154 <input type="text" size="30" name="limit-yr" title="Enter search terms" value="" />
156 <!-- /PUB RANGE OPTION -->
160 <div id="advsearches" class="toptabs">
162 [% FOREACH advsearchloo IN advancedsearchesloop %]
163 <li id="advsearch-tab-[% advsearchloo.advanced_search_type %]">
164 <a href="#advsearch-[% advsearchloo.advanced_search_type %]">
165 [% IF ( advsearchloo.advanced_search_type == 'itemtypes' ) %]Item type
166 [% ELSIF ( advsearchloo.advanced_search_type == 'ccode' ) %]Collection
167 [% ELSIF ( advsearchloo.advanced_search_type == 'loc' ) %]Shelving location
168 [% ELSE %]Something else
174 <!-- /BOOLEAN SEARCH OPTIONS -->
175 [% FOREACH advsearchloo IN advancedsearchesloop %]
176 <div id="advsearch-[% advsearchloo.advanced_search_type %]" class="container advsearch">
178 <legend>Limit to any of the following:</legend>
181 [% FOREACH itemtypeloo IN advsearchloo.code_loop %]
182 <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 %]
183 [% itemtypeloo.description %]</label></td>
184 [% IF ( loop.last ) %]</tr>[% ELSE %][% UNLESS ( loop.count % 5 ) %]</tr><tr>[% END %][% END %]
191 <div id="langfilter">
192 <fieldset><legend>Language</legend>
193 <!-- LANGUAGE LIMIT -->
194 <p><label for="language-limit">Language: </label>
195 <select id="language-limit" name="limit">
196 <option value="">No limit</option>
197 [% FOREACH search_languages_loo IN search_languages_loop %]
198 [% IF ( search_languages_loo.selected ) %]
199 <option value="ln,rtrn:[% search_languages_loo.iso639_2_code %]" selected="selected">[% search_languages_loo.language_description %]</option>
201 <option value="ln,rtrn:[% search_languages_loo.iso639_2_code %]">[% search_languages_loo.language_description %]</option>
204 </select></p><!-- <a href="">Show all languages</a>-->
205 <!-- /LANGUAGE LIMIT -->
208 [% IF ( expanded_options ) %]
210 <!-- SUBTYPE LIMITS -->
211 <div id="subtypes" class="container"><fieldset>
212 <legend>Subtype limits</legend><select name="limit" class="subtype">
213 <option value="" selected="selected" class="menuheader">Any audience</option>
214 <option value="aud:a">Preschool</option>
215 <option value="aud:b">Primary</option>
216 <option value="aud:c">Pre-adolescent</option>
217 <option value="aud:d">Adolescent</option>
218 <option value="aud:e">Adult</option>
219 <option value="aud:f">Specialized</option>
220 <option value="aud:g">General</option>
221 <option value="aud:j">Juvenile</option>
224 <select name="limit" class="subtype">
225 <option value="" selected="selected" class="menuheader">Any content</option>
226 <option value="fic:1">Fiction</option>
227 <option value="fic:0">Non fiction</option>
228 <option value="bio:b">Biography</option>
229 <option value="mus:j">Musical recording</option>
230 <option value="mus:i">Non-musical recording</option>
234 <select name="limit" class="subtype">
235 <option value="" selected="selected" class="menuheader">Any format</option>
236 <option value="l-format:ta">Regular print</option>
237 <option value="l-format:tb">Large print</option>
238 <option value="l-format:fk">Braille</option>
239 <option value="">-----------</option>
240 <option value="l-format:sd">CD audio</option>
241 <option value="l-format:ss">Cassette recording</option>
242 <option value="l-format:vf">VHS tape / Videocassette</option>
243 <option value="l-format:vd">DVD video / Videodisc</option>
244 <option value="l-format:co">CD software</option>
245 <option value="l-format:cr">Website</option>
248 <select name="limit" class="subtype">
249 <option value="">Additional content types for books/printed materials</option>
250 <option value="ctype:a">Abstracts/summaries</option>
251 <option value="ctype:b">Bibliographies</option>
252 <option value="ctype:c">Catalogs</option>
253 <option value="ctype:d">Dictionaries</option>
254 <option value="ctype:e">Encyclopedias </option>
255 <option value="ctype:f">Handbooks</option>
256 <option value="ctype:g">Legal articles</option>
257 <option value="ctype:i">Indexes</option>
258 <option value="ctype:j">Patent document</option>
259 <option value="ctype:k">Discographies</option>
260 <option value="ctype:l">Legislation</option>
261 <option value="ctype:m">Theses</option>
262 <option value="ctype:n">Surveys</option>
263 <option value="ctype:o">Reviews</option>
264 <option value="ctype:p">Programmed texts</option>
265 <option value="ctype:q">Filmographies</option>
266 <option value="ctype:r">Directories</option>
267 <option value="ctype:s">Statistics</option>
268 <option value="ctype:t">Technical reports</option>
269 <option value="ctype:v">Legal cases and case notes</option>
270 <option value="ctype:w">Law reports and digests</option>
271 <option value="ctype:z">Treaties </option>
277 <div id="subtypes_unimarc" class="container"><!-- SUBTYPE LIMITS -->
278 [% INCLUDE 'subtypes_unimarc.inc' %]</div>
285 <div class="yui-u first">
286 <!-- AVAILABILITY LIMITS -->
287 [% UNLESS ( singleBranchMode ) %]
288 <div id="location" class="container"><fieldset><legend>Location and availability: </legend>
290 <label for="branchloop">Library:</label>
291 <select name="limit" id="branchloop">
292 <option value="">All libraries</option>
293 [% FOREACH BranchesLoo IN BranchesLoop %]
294 [% IF ( BranchesLoo.selected ) %]
295 <option value="branch:[% BranchesLoo.value %]" selected="selected">[% BranchesLoo.branchname %]</option>
297 <option value="branch:[% BranchesLoo.value %]">[% BranchesLoo.branchname %]</option>
301 [% IF ( searchdomainloop ) %]
302 <p>OR</p> <!-- should addjs to grey out group pulldown if a library is selected. -->
303 <label for="categoryloop">Groups of libraries</label><select name="multibranchlimit" id="categoryloop">
304 <option value=""> -- none -- </option>
305 [% FOREACH searchdomainloo IN searchdomainloop %]
306 <option value="[% searchdomainloo.categorycode %]">[% searchdomainloo.categoryname %]</option>
310 <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>
313 <!-- /AVAILABILITY LIMITS -->
317 <div id="sortby" class="container"><fieldset><legend>Sorting: </legend>
318 <label for="sort_by">Sort by:</label> <select id="sort_by" name="sort_by">
319 [% INCLUDE 'resort_form.inc' %]
320 </select></fieldset></div>
325 <div class="yui-g"><div class="container" style="text-align: center;"><!-- SEARCH BUTTONS -->
327 <input class="submit" type="submit" accesskey="s" name="do" title="Search" value="Search" />
328 [% IF ( expanded_options ) %]
329 <a href="/cgi-bin/koha/opac-search.pl?expanded_options=0">[Fewer options]</a>
331 <a href="/cgi-bin/koha/opac-search.pl?expanded_options=1">[More options]</a>
333 <a href="/cgi-bin/koha/opac-search.pl?do=Clear">[New search]</a>
335 <!-- /SEARCH BUTTONS --></div></div>
338 <script type="text/javascript" language="javascript">
339 /* This function allows to display a new field to search.
341 $(document).on("click", '.ButtonPlus', function(e) {
343 $('.ButtonLess').show();
344 var thisLine = $(this).parent();
345 var newLine = thisLine.clone();
346 newLine.find('input').val('');
347 thisLine.after(newLine);
350 $(document).on("click", '.ButtonLess', function(e) {
352 if($(this).parent().siblings().length <= 3 ) {
353 $('.ButtonLess').hide();
355 $(this).parent().remove();
360 [% INCLUDE 'opac-bottom.inc' %]