1 [% INCLUDE 'doc-head-open.inc' %]
2 [% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha Online[% END %]
3 Catalog › Advanced Search
4 [% INCLUDE 'doc-head-close.inc' %]
6 <body id="advsearch"><div id="doc3" class="yui-t7">
8 [% INCLUDE 'masthead.inc' %]
10 <form action="/cgi-bin/koha/opac-search.pl" method="get">
12 [% IF ( if_expanded_options_actually_worked ) %]
13 <div id="databases" class="container"> [% IF ( outer_servers_loop ) %]
16 <legend>Select local databases:</legend>
17 [% FOREACH outer_servers_loo IN outer_servers_loop %]
18 [% FOREACH inner_servers_loo IN outer_servers_loo.inner_servers_loop %]
20 [% 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 %]
21 <input type="checkbox" id="[% inner_servers_loo.id %]" name="[% inner_servers_loo.name %]" value="[% inner_servers_loo.value %]" />[% END %]
22 <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>
29 [% IF ( outer_sup_servers_loop ) %]
30 <!-- REMOTE DATABASES -->
32 <legend>Select remote databases:</legend>
33 [% FOREACH outer_sup_servers_loo IN outer_sup_servers_loop %]
34 [% FOREACH inner_sup_servers_loo IN outer_sup_servers_loo.inner_sup_servers_loop %]
36 [% 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 %]" />
38 <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>
42 <!-- /REMOTE DATABASES -->
46 <!-- BOOLEAN SEARCH OPTIONS -->
47 <div id="booleansearch" class="container"><fieldset>
48 <legend>Search for:</legend>
49 [% FOREACH search_boxes_loo IN search_boxes_loop %]
51 [% IF ( search_boxes_loo.expanded_options ) %]
52 [% IF ( search_boxes_loo.boolean ) %]
54 <option value="and" selected="selected">and</option>
55 <option value="or">or</option>
56 <option value="not">not</option>
60 [% IF ( search_boxes_loo.expanded_options ) %][% search_boxes_loo.left_content %][% END %]
62 <option value="kw">Keyword</option>
63 <option value="sucommawrdl">Subject</option>
64 [% IF ( search_boxes_loo.expanded_options ) %]
65 <option value="sucommaphr"> Subject Phrase</option>
67 <option value="ti">Title</option>
68 [% IF ( search_boxes_loo.expanded_options ) %]
69 <option value="ticommaphr"> Title Phrase</option>
70 <option value="secommawrdl">Series Title</option>
71 <option value="callnum">Call Number</option>
72 <option value="location">Shelving Location</option>
74 <option value="aucommawrdl">Author</option>
76 [% IF ( search_boxes_loo.expanded_options ) %]
77 <option value="aucommaphr"> Author Phrase</option>
78 <option value="cpncommawrdl"> Corporate Name</option>
79 <option value="cfncommawrdl"> Conference Name</option>
80 <option value="cfncommaphr"> Conference Name Phrase</option>
81 <option value="pncommawrdl"> Personal Name</option>
82 <option value="pncommaphr"> Personal Name Phrase</option>
84 [% IF ( search_boxes_loo.expanded_options ) %]
85 <option value="nt">Notes/Comments</option>
86 <option value="curriculum">Curriculum</option>
88 <option value="pbcommawrdl">Publisher</option>
89 <option value="plcommawrdl">Publisher Location</option>
90 [% IF ( search_boxes_loo.expanded_options ) %]
91 <option value="sn">Standard Number</option>
92 <option value="nb"> ISBN</option>
93 <option value="ns"> ISSN</option>
94 <option value="lcncommaphr"> Call Number</option>
96 <option value="nb">ISBN</option>
98 <option value="bc">Barcode</option>
100 <input type="text" size="30" name="q" title="Enter search terms" value="" />
101 [% IF ( search_boxes_loo.expanded_options ) %]
102 <!-- [% IF ( search_boxes_loo.scan_index ) %]<input type="checkbox" name="scan" id="scan" value="1" /> Scan Indexes[% END %] -->
103 [% IF ( search_boxes_loo.add_field ) %]<a href="JavaScript:add_field();" id="ButtonPlus" title="Add another field">[+]</a>[% END %]
110 <div class="yui-g"><div class="container" style="text-align: center;"><!-- SEARCH BUTTONS -->
112 <input class="submit" type="submit" accesskey="s" name="do" title="Search" value="Search" />
113 [% IF ( expanded_options ) %]
114 <a href="/cgi-bin/koha/opac-search.pl?expanded_options=0">[Fewer Options]</a>
116 <a href="/cgi-bin/koha/opac-search.pl?expanded_options=1">[More options]</a>
118 <a href="/cgi-bin/koha/opac-search.pl?do=Clear">[New Search]</a>
120 <!-- /SEARCH BUTTONS --></div></div>
122 <div id="pubrange" class="container">
124 <!-- PUB RANGE OPTION -->
125 <legend>Publication Date Range:</legend>
126 <span>For example: 1999-2001. You could also use "-1987" for everything published before 1987 or "2008minus" for everything published after 2008.</span>
127 <input type="text" size="30" name="limit-yr" title="Enter search terms" value="" />
129 <!-- /PUB RANGE OPTION -->
133 <!-- /BOOLEAN SEARCH OPTIONS -->
134 <div id="advsearch-itemtype" class="container">
136 <legend>Limit to any of the following:</legend>
139 [% FOREACH itemtypeloo IN itemtypeloop %]
140 <td><input type="checkbox" id="[% itemtypeloo.ccl %]-[% itemtypeloo.number %]" name="limit" value="mc-[% itemtypeloo.ccl %]:[% itemtypeloo.code %]"/><label for="[% itemtypeloo.ccl %]-[% itemtypeloo.number %]">[% UNLESS ( noItemTypeImages ) %][% IF ( itemtypeloo.imageurl ) %]<img border="0" src="[% itemtypeloo.imageurl %]" alt="[% itemtypeloo.description %]" />[% END %] [% END %]
141 [% itemtypeloo.description %]</label></td>
142 [% UNLESS ( itemtypeloo.count5 ) %][% UNLESS ( loop.last ) %]</tr><tr>[% END %][% END %]
148 <fieldset><legend>Language</legend>
149 <!-- LANGUAGE LIMIT -->
150 <p><label for="language-limit">Language: </label>
151 <select name="limit">
152 <option value="">No Limit</option>
153 [% FOREACH search_languages_loo IN search_languages_loop %]
154 [% IF ( search_languages_loo.selected ) %]
155 <option value="ln,rtrn:[% search_languages_loo.iso639_2_code %]" selected="selected">[% search_languages_loo.language_description %]</option>
157 <option value="ln,rtrn:[% search_languages_loo.iso639_2_code %]">[% search_languages_loo.language_description %]</option>
160 </select></p><!-- <a href="">Show all languages</a>-->
161 <!-- /LANGUAGE LIMIT -->
163 [% IF ( expanded_options ) %]
165 <!-- SUBTYPE LIMITS -->
166 <div id="subtypes" class="container"><fieldset>
167 <legend>Subtype limits</legend><select name="limit" class="subtype">
168 <option value="" selected="selected" class="menuheader">Any Audience</option>
169 <option value="aud:a">Easy</option>
170 <option value="aud:c">Juvenile</option>
171 <option value="aud:d">Young Adult</option>
172 <option value="aud:e">Adult</option>
175 <select name="limit" class="subtype">
176 <option value="" selected="selected" class="menuheader">Any Content</option>
177 <option value="fic:1">Fiction</option>
178 <option value="fic:0">Non Fiction</option>
179 <option value="bio:b">Biography</option>
180 <option value="mus:j">Musical recording</option>
181 <option value="mus:i">Non-musical recording</option>
185 <select name="limit" class="subtype">
186 <option value="" selected="selected" class="menuheader">Any Format</option>
187 <option value="l-format:ta">Regular print</option>
188 <option value="l-format:tb">Large print</option>
189 <option value="l-format:fk">Braille</option>
190 <option value="">-----------</option>
191 <option value="l-format:sd">CD audio</option>
192 <option value="l-format:ss">Cassette recording</option>
193 <option value="l-format:vf">VHS tape / Videocassette</option>
194 <option value="l-format:vd">DVD video / Videodisc</option>
195 <option value="l-format:co">CD Software</option>
196 <option value="l-format:cr">Website</option>
199 <select name="limit" class="subtype">
200 <option value="">Additional Content Types for Books/Printed Materials</option>
201 <option value="ctype:a">Abstracts/summaries</option>
202 <option value="ctype:b">Bibliographies</option>
203 <option value="ctype:c">Catalogs</option>
204 <option value="ctype:d">Dictionaries</option>
205 <option value="ctype:e">Encyclopedias </option>
206 <option value="ctype:f">Handbooks</option>
207 <option value="ctype:g">Legal articles</option>
208 <option value="ctype:i">Indexes</option>
209 <option value="ctype:j">Patent document</option>
210 <option value="ctype:k">Discographies</option>
211 <option value="ctype:l">Legislation</option>
212 <option value="ctype:m">Theses</option>
213 <option value="ctype:n">Surveys</option>
214 <option value="ctype:o">Reviews</option>
215 <option value="ctype:p">Programmed texts</option>
216 <option value="ctype:q">Filmographies</option>
217 <option value="ctype:r">Directories</option>
218 <option value="ctype:s">Statistics</option>
219 <option value="ctype:t">Technical reports</option>
220 <option value="ctype:v">Legal cases and case notes</option>
221 <option value="ctype:w">Law reports and digests</option>
222 <option value="ctype:z">Treaties </option>
228 <div id="subtypes_unimarc" class="container"><!-- SUBTYPE LIMITS -->
229 [% INCLUDE 'subtypes_unimarc.inc' %]</div>
236 <div class="yui-u first">
237 <!-- AVAILABILITY LIMITS -->
238 [% UNLESS ( singleBranchMode ) %]
239 <div id="location" class="container"><fieldset><legend>Location and availability: </legend>
241 <select name="limit" id="branchloop">
242 <option value="">All libraries</option>
243 [% FOREACH BranchesLoo IN BranchesLoop %]
244 [% IF ( BranchesLoo.selected ) %]
245 <option value="branch:[% BranchesLoo.value %]" selected="selected">[% BranchesLoo.branchname %]</option>
247 <option value="branch:[% BranchesLoo.value %]">[% BranchesLoo.branchname %]</option>
251 [% IF ( searchdomainloop ) %]
252 <p>OR</p> <!-- should addjs to grey out group pulldown if a library is selected. -->
253 <label for="categoryloop">Groups of Libraries</label><select name="multibranchlimit" id="categoryloop">
254 <option value=""> -- none -- </option>
255 [% FOREACH searchdomainloo IN searchdomainloop %]
256 <option value="[% searchdomainloo.categorycode %]">[% searchdomainloo.categoryname %]</option>
260 <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>
263 <!-- /AVAILABILITY LIMITS -->
267 <div id="sortby" class="container"><fieldset><legend>Sort by: </legend>
268 <select id="sort_by" name="sort_by">
269 [% INCLUDE 'resort_form.inc' %]
270 </select></fieldset></div>
275 <div class="yui-g"><div class="container" style="text-align: center;"><!-- SEARCH BUTTONS -->
277 <input class="submit" type="submit" accesskey="s" name="do" title="Search" value="Search" />
278 [% IF ( expanded_options ) %]
279 <a href="/cgi-bin/koha/opac-search.pl?expanded_options=0">[Fewer Options]</a>
281 <a href="/cgi-bin/koha/opac-search.pl?expanded_options=1">[More options]</a>
283 <a href="/cgi-bin/koha/opac-search.pl?do=Clear">[New Search]</a>
285 <!-- /SEARCH BUTTONS --></div></div>
288 <script type="text/javascript" language="javascript">
289 /* This function allows to display a new field to search.
291 function add_field() {
292 var ButtonPlus = document.getElementById('ButtonPlus');
293 var line = ButtonPlus.parentNode;
294 line.parentNode.appendChild(line.cloneNode(true));
295 line.removeChild(ButtonPlus);
300 [% INCLUDE 'opac-bottom.inc' %]