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();
18 $('#advsearches > ul').tabs();
24 [% INCLUDE 'header.inc' %]
25 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › Advanced Search</div>
27 <div id="doc" class="yui-t7">
30 <form action="search.pl" method="get">
31 <div id="advanced-search">
32 <h1>Advanced Search</h1>
34 [% IF ( outer_servers_loop ) %]
38 <legend>Select local databases</legend>
39 [% FOREACH local_servers_loo IN local_servers_loop %]
40 [% 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 %]
45 [% IF ( outer_servers_loop ) %]
46 <!-- REMOTE DATABASES -->
47 <fieldset id="databases">
48 <legend>Select remote databases</legend>
49 [% FOREACH outer_servers_loo IN outer_servers_loop %]
50 [% 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 %]
51 <label for="[% outer_servers_loo.id %]"><img alt="[% outer_servers_loo.id %]" src="[% themelang %]/images/[% outer_servers_loo.icon %]" />[% outer_servers_loo.label %]</label>
54 <!-- /REMOTE DATABASES -->
57 <!-- BOOLEAN SEARCH OPTIONS -->
58 <fieldset id="searchterms">
59 <legend>Search For </legend>
60 [% FOREACH search_box IN search_boxes_loop %]
61 [% IF ( search_boxes_label ) %]<div style="text-indent: 4.5em;">[% ELSE %]<div>[% END %]
62 [% IF ( expanded_options ) %]
63 [% IF ( search_box.boolean ) %]
65 <option value="and" selected="selected">and</option>
66 <option value="or">or</option>
67 <option value="not">not</option>
71 [% INCLUDE 'search_indexes.inc' %]
72 <input type="text" size="30" name="q" title="Enter search terms" value="" />
73 [% IF ( expanded_options ) %]
74 [% IF ( search_box.add_field ) %]
75 <a href="JavaScript:add_field();" id="ButtonPlus" title="Add another field">[+]</a>
77 [% IF ( search_box.scan_index ) %]
78 <label for="scan">Scan Indexes</label> <input type="checkbox" name="scan" id="scan" value="1" />
84 <!-- /BOOLEAN SEARCH OPTIONS -->
86 <!-- SEARCH BUTTONS -->
87 <fieldset class="action" id="submit1"><input class="submit" type="submit" accesskey="s" value="Search" />
88 [% IF ( expanded_options ) %]
89 <a href="/cgi-bin/koha/catalogue/search.pl?expanded_options=0">[Fewer Options]</a>
91 <a href="/cgi-bin/koha/catalogue/search.pl?expanded_options=1">[More options]</a>
93 <a href="/cgi-bin/koha/catalogue/search.pl?do=Clear">[New search]</a>
95 <!-- /SEARCH BUTTONS -->
97 <!-- MC-TYPE LIMITS -->
99 <div id="advsearches" class="toptabs">
101 [% FOREACH advsearchloo IN advancedsearchesloop %]
102 <li id="advsearch-tab-[% advsearchloo.advanced_search_type %]">
103 <a href="/cgi-bin/koha/opac-search.pl#advsearch-[% advsearchloo.advanced_search_type %]">
104 [% IF ( advsearchloo.advanced_search_type == 'itemtypes' ) %]Item Type
105 [% ELSIF ( advsearchloo.advanced_search_type == 'ccode' ) %]Collection
106 [% ELSIF ( advsearchloo.advanced_search_type == 'loc' ) %]Shelving Location
107 [% ELSE %]Something Else
113 [% FOREACH advsearchloo IN advancedsearchesloop %]
114 <div id="advsearch-[% advsearchloo.advanced_search_type %]" class="advsearch">
116 <legend>Limit to any of the following:</legend>
119 [% FOREACH itemtypeloo IN advsearchloo.code_loop %]
120 <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 %]
121 [% itemtypeloo.description %]</label></td>
122 [% UNLESS ( loop.count % 5 ) %]</tr><tr>[% END %]
129 <!-- /MC-TYPE LIMIT -->
130 [% IF ( expanded_options ) %]
131 <!-- BASIC LIMITS -->
132 <fieldset id="basiclimits">
133 <legend>Limits</legend>
134 <fieldset id="pubrange">
135 <!-- PUB / COPY YEAR LIMIT --><!-- FIXME: add publication,copyright,acquisition options -->
136 <p><label for="limit-yr">Year: </label>
137 <input type="text" size="15" name="limit-yr" id="limit-yr" value=""/> (format: yyyy-yyyy)</p>
138 <!-- /PUB / COPY YEAR LIMIT -->
140 <fieldset id="language">
141 <!-- LANGUAGE LIMIT -->
142 <p><label for="language-limit">Language: </label>
143 <select name="limit" id="language-limit">
144 <option value="">No Limit</option>
145 [% FOREACH search_languages_loo IN search_languages_loop %]
146 [% IF ( search_languages_loo.selected ) %]
147 <option value="ln,rtrn:[% search_languages_loo.iso639_2_code %]" selected="selected">[% search_languages_loo.language_description %]</option>
149 <option value="ln,rtrn:[% search_languages_loo.iso639_2_code %]">[% search_languages_loo.language_description %]</option>
153 </select></p><!-- <a href="">Show all languages</a>-->
154 <!-- /LANGUAGE LIMIT -->
157 <!-- /BASIC LIMITS -->
162 [% INCLUDE 'subtypes_unimarc.inc' %]
164 <!-- SUBTYPE LIMITS -->
165 <fieldset id="subtype">
166 <legend>Subtype limits</legend><p>
168 <select name="limit" class="subtype">
169 <option value="" selected="selected" class="menuheader">Any audience</option>
170 <option value="aud:a">Preschool</option>
171 <option value="aud:b">Primary</option>
172 <option value="aud:c">Pre-adolescent</option>
173 <option value="aud:d">Adolescent</option>
174 <option value="aud:e">Adult</option>
175 <option value="aud:f">Specialized</option>
176 <option value="aud:g">General</option>
177 <option value="aud:j">Juvenile</option>
180 <select name="limit" class="subtype">
181 <option value="" selected="selected" class="menuheader">Any content</option>
182 <option value="fic:1" >Fiction</option>
183 <option value="fic:0" >Non fiction</option>
184 <option value="bio:b" >Biography</option>
185 <option value="mus:j" >Musical recording</option>
186 <option value="mus:i" >Non-musical recording</option>
190 <select name="limit" class="subtype">
191 <option value="" selected="selected" class="menuheader">Any format</option>
192 <option value="l-format:ta" >Regular print</option>
193 <option value="l-format:tb" >Large print</option>
194 <option value="l-format:fk" >Braille</option>
195 <option value="" >-----------</option>
196 <option value="l-format:sd" >CD audio</option>
197 <option value="l-format:ss" >Cassette recording</option>
198 <option value="l-format:vf" >VHS tape / Videocassette</option>
199 <option value="l-format:vd" >DVD video / Videodisc</option>
200 <option value="l-format:co" >CD Software</option>
201 <option value="l-format:cr" >Website</option>
204 <select name="limit" class="subtype">
205 <option value="" >Additional content types</option>
206 <option value="ctype:a" >Abstracts/summaries</option>
207 <option value="ctype:b" >Bibliographies</option>
208 <option value="ctype:c" >Catalogs</option>
209 <option value="ctype:d" >Dictionaries</option>
210 <option value="ctype:e" >Encyclopedias </option>
211 <option value="ctype:f" >Handbooks</option>
212 <option value="ctype:g" >Legal articles</option>
213 <option value="ctype:i" >Indexes</option>
214 <option value="ctype:j" >Patent document</option>
215 <option value="ctype:k" >Discographies</option>
216 <option value="ctype:l" >Legislation</option>
217 <option value="ctype:m" >Theses</option>
218 <option value="ctype:n" >Surveys</option>
219 <option value="ctype:o" >Reviews</option>
220 <option value="ctype:p" >Programmed texts</option>
221 <option value="ctype:q" >Filmographies</option>
222 <option value="ctype:r" >Directories</option>
223 <option value="ctype:s" >Statistics</option>
224 <option value="ctype:t" >Technical reports</option>
225 <option value="ctype:v" >Legal cases and case notes</option>
226 <option value="ctype:w" >Law reports and digests</option>
227 <option value="ctype:z" >Treaties </option>
234 <!-- AVAILABILITY LIMITS -->
235 <fieldset id="availability"><legend>Location and availability</legend>
236 <fieldset id="currently-avail">
237 <p><label for="available-items">Only items currently available</label> <input type="checkbox" id="available-items" name="limit" value="available" /></p>
240 <fieldset id="select-libs">
241 <p><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;}'>
242 <option value="">All Libraries</option>
243 [% FOREACH branchloo IN branchloop %]
244 [% IF ( branchloo.selected ) %]
245 <option value="branch:[% branchloo.value %]" selected="selected">[% branchloo.branchname %]</option>
247 <option value="branch:[% branchloo.value %]">[% branchloo.branchname %]</option>
251 <!-- <input type="hidden" name="limit" value="branch: MAIN" /> -->
252 [% IF ( searchdomainloop ) %]
253 <p>OR</p> <!-- should addjs to grey out group pulldown if a library is selected. -->
254 <p><label for="categoryloop">Groups of Libraries</label><select name="multibranchlimit" id="categoryloop">
255 <option value=""> -- none -- </option>
256 [% FOREACH searchdomainloo IN searchdomainloop %]
257 <option value="[% searchdomainloo.categorycode %]">[% searchdomainloo.categoryname %]</option>
263 <!-- /AVAILABILITY LIMITS -->
266 <fieldset id="sortby"><legend>Sorting</legend>
268 <label for="sort_by">Sort by </label><select id="sort_by" name="sort_by">
269 [% INCLUDE 'resort_form.inc' %]
273 <!-- /RANK LIMITS -->
275 <!-- SEARCH BUTTONS -->
276 <fieldset class="action" id="submit2"><input class="submit" type="submit" accesskey="s" value="Search" />
277 [% IF ( expanded_options ) %]
278 <a href="/cgi-bin/koha/catalogue/search.pl?expanded_options=0">[Fewer Options]</a>
280 <a href="/cgi-bin/koha/catalogue/search.pl?expanded_options=1">[More options]</a>
282 <a href="/cgi-bin/koha/catalogue/search.pl?do=Clear">[New search]</a>
284 <!-- /SEARCH BUTTONS -->
289 [% INCLUDE 'intranet-bottom.inc' %]