1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha › Catalog › Advanced Search</title>
3 <!-- TMPL_INCLUDE NAME="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();
23 <!-- TMPL_INCLUDE NAME="header.inc" -->
24 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › Advanced Search</div>
26 <div id="doc" class="yui-t7">
29 <form action="search.pl" method="get">
30 <div id="advanced-search">
31 <h1>Advanced Search</h1>
33 <!-- TMPL_IF NAME="outer_servers_loop" -->
37 <legend>Select local databases</legend>
38 <!-- TMPL_LOOP NAME="local_servers_loop" -->
39 <!-- TMPL_IF NAME="checked" --><input type="checkbox" id="<!-- TMPL_VAR NAME="id" -->" name="<!-- TMPL_VAR NAME="name" -->" checked="checked" value="<!-- TMPL_VAR NAME="value" -->" /><!-- TMPL_ELSE --><input type="checkbox" id="<!-- TMPL_VAR NAME="id" -->" name="<!-- TMPL_VAR NAME="name" -->" value="<!-- TMPL_VAR NAME="value" -->" /><!-- /TMPL_IF --><label for="<!-- TMPL_VAR NAME="id" -->"><img width="16" height="16" alt="<!-- TMPL_VAR NAME="id" -->" src="<!-- TMPL_VAR NAME="themelang" -->/img/<!-- TMPL_VAR NAME="icon" -->" /> <!-- TMPL_VAR NAME="label" --></label><!-- /TMPL_LOOP -->
44 <!-- TMPL_IF NAME="outer_servers_loop" -->
45 <!-- REMOTE DATABASES -->
47 <legend>Select remote databases:</legend>
48 <!-- TMPL_LOOP NAME="outer_servers_loop" -->
49 <!-- TMPL_IF NAME="checked" --><input type="checkbox" id="<!-- TMPL_VAR NAME="id" -->" name="<!-- TMPL_VAR NAME="name" -->" checked="checked" value="<!-- TMPL_VAR NAME="value" -->" /><!-- TMPL_ELSE --><input type="checkbox" id="<!-- TMPL_VAR NAME="id" -->" name="<!-- TMPL_VAR NAME="name" -->" value="<!-- TMPL_VAR NAME="value" -->" /><!-- /TMPL_IF -->
50 <label for="<!-- TMPL_VAR NAME="id" -->"><img alt="<!-- TMPL_VAR NAME="id" -->" src="<!-- TMPL_VAR NAME="themelang" -->/images/<!-- TMPL_VAR NAME="icon" -->" /><!-- TMPL_VAR NAME="label" --></label>
53 <!-- /REMOTE DATABASES -->
56 <!-- BOOLEAN SEARCH OPTIONS -->
58 <legend>Search For: </legend>
59 <!-- TMPL_LOOP NAME="search_boxes_loop" -->
60 <!-- TMPL_IF NAME="search_boxes_label" --><div style="text-indent: 4.5em;"><!-- TMPL_ELSE --><div><!-- /TMPL_IF -->
61 <!-- TMPL_IF NAME="expanded_options" -->
62 <!-- TMPL_IF NAME="boolean" -->
64 <option value="and" selected="selected">and</option>
65 <option value="or">or</option>
66 <option value="not">not</option>
70 <!-- TMPL_INCLUDE NAME="search_indexes.inc" -->
71 <input type="text" size="30" name="q" title="Enter search terms" value="" />
72 <!-- TMPL_IF NAME="expanded_options" -->
73 <!-- TMPL_IF NAME="add_field" -->
74 <a href="JavaScript:add_field();" id="ButtonPlus" title="Add another field">[+]</a>
76 <!-- TMPL_IF NAME="scan_index" -->
77 <label for="scan">Scan Indexes</label><input type="checkbox" name="scan" id="scan" value="1" />
83 <!-- /BOOLEAN SEARCH OPTIONS -->
85 <div id="itemtypelist">
86 <!-- ITEMTYPE LIMITS -->
88 <legend>Limit to any of the following:</legend>
91 <!--TMPL_LOOP Name="itemtypeloop"-->
93 <!-- TMPL_IF name="imageurl"--><img border="0" src="<!--TMPL_VAR Name="imageurl" -->" alt="<!--TMPL_VAR Name="description" -->" /><!-- /TMPL_IF -->
94 <input type="checkbox" id="<!-- TMPL_VAR NAME="ccl" -->-<!--TMPL_VAR Name="number" -->" name="limit" value="mc-<!-- TMPL_VAR NAME="ccl" -->:<!--TMPL_VAR Name="code" -->" />
95 <label for="<!-- TMPL_VAR NAME="ccl" -->-<!--TMPL_VAR Name="number" -->"><!--TMPL_VAR Name="description" --></label></td>
96 <!-- TMPL_UNLESS name="count5" --></tr><tr><!-- /TMPL_UNLESS -->
98 <!-- FIXME: for validation, avoid generating empty row -->
102 <!-- /ITEMTYPE LIMITS -->
105 <!-- TMPL_IF NAME="expanded_options" -->
106 <div id="basiclimits" class="container">
107 <!-- BASIC LIMITS -->
109 <legend>Limits:</legend>
110 <div id="pubrange" class="container">
111 <!-- PUB / COPY YEAR LIMIT --><!-- FIXME: add publication,copyright,acquisition options -->
112 <p><label for="limit-yr">Year: </label>
113 <input size="15" name="limit-yr" id="" value=""/> (format: yyyy-yyyy)</p>
114 <!-- /PUB / COPY YEAR LIMIT -->
116 <div id="language" class="container">
117 <!-- LANGUAGE LIMIT -->
118 <p><label for="language-limit">Language: </label>
119 <select name="limit">
120 <option value="">No Limit</option>
121 <!-- TMPL_LOOP NAME="search_languages_loop" -->
122 <!-- TMPL_IF NAME="selected" -->
123 <option value="ln,rtrn:<!-- TMPL_VAR NAME="iso639_2_code" -->" selected="selected"><!-- TMPL_VAR NAME="language_description" --></option>
125 <option value="ln,rtrn:<!-- TMPL_VAR NAME="iso639_2_code" -->"><!-- TMPL_VAR NAME="language_description" --></option>
129 </select></p><!-- <a href="">Show all languages</a>-->
130 <!-- /LANGUAGE LIMIT -->
133 <!-- /BASIC LIMITS -->
138 <!-- TMPL_IF NAME="UNIMARC" -->
139 <!-- TMPL_INCLUDE NAME="subtypes_unimarc.inc" -->
141 <div id="subtype" class="container">
142 <!-- SUBTYPE LIMITS -->
144 <legend>Subtype limits:</legend><p>
146 <select name="limit" class="subtype">
147 <option value="" selected="selected" class="menuheader">Any audience</option>
148 <option value="aud:a">Preschool</option>
149 <option value="aud:b">Primary</option>
150 <option value="aud:c">Pre-adolescent</option>
151 <option value="aud:d">Adolescent</option>
152 <option value="aud:e">Adult</option>
153 <option value="aud:f">Specialized</option>
154 <option value="aud:g">General</option>
155 <option value="aud:j">Juvenile</option>
158 <select name="limit" class="subtype">
159 <option value="" selected="selected" class="menuheader">Any content</option>
160 <option value="fic:1" >Fiction</option>
161 <option value="fic:0" >Non fiction</option>
162 <option value="bio:b" >Biography</option>
163 <option value="mus:j" >Musical recording</option>
164 <option value="mus:i" >Non-musical recording</option>
168 <select name="limit" class="subtype">
169 <option value="" selected="selected" class="menuheader">Any format</option>
170 <option value="l-format:ta" >Regular print</option>
171 <option value="l-format:tb" >Large print</option>
172 <option value="l-format:fk" >Braille</option>
173 <option value="" >-----------</option>
174 <option value="l-format:sd" >CD audio</option>
175 <option value="l-format:ss" >Cassette recording</option>
176 <option value="l-format:vf" >VHS tape / Videocassette</option>
177 <option value="l-format:vd" >DVD video / Videodisc</option>
178 <option value="l-format:co" >CD Software</option>
179 <option value="l-format:cr" >Website</option>
182 <select name="limit" class="subtype">
183 <option value="" >Additional content types</option>
184 <option value="ctype:a" >Abstracts/summaries</option>
185 <option value="ctype:b" >Bibliographies</option>
186 <option value="ctype:c" >Catalogs</option>
187 <option value="ctype:d" >Dictionaries</option>
188 <option value="ctype:e" >Encyclopedias </option>
189 <option value="ctype:f" >Handbooks</option>
190 <option value="ctype:g" >Legal articles</option>
191 <option value="ctype:i" >Indexes</option>
192 <option value="ctype:j" >Patent document</option>
193 <option value="ctype:k" >Discographies</option>
194 <option value="ctype:l" >Legislation</option>
195 <option value="ctype:m" >Theses</option>
196 <option value="ctype:n" >Surveys</option>
197 <option value="ctype:o" >Reviews</option>
198 <option value="ctype:p" >Programmed texts</option>
199 <option value="ctype:q" >Filmographies</option>
200 <option value="ctype:r" >Directories</option>
201 <option value="ctype:s" >Statistics</option>
202 <option value="ctype:t" >Technical reports</option>
203 <option value="ctype:v" >Legal cases and case notes</option>
204 <option value="ctype:w" >Law reports and digests</option>
205 <option value="ctype:z" >Treaties </option>
213 <!-- TMPL_IF NAME="template-defined-limits" -->
214 <div id="advsearch-itemtype" class="container">
218 <legend>Limit to any of the following</legend>
219 <table class="itemtypes">
221 <td><input type="checkbox" id="mc-bks" name="limit" value="mc:t" />
222 <label for="mc-bks" title="Books, Pamphlets, Technical reports, Manuscripts, Legal papers, Theses and dissertations">
223 <img border="0" src="/intranet-tmpl/prog/img/AF.gif" alt="Books" />Books</label></td>
224 <td><input type="checkbox" id="mc-vis" name="limit" value="mc:v" />
225 <label for="mc-vis" title="Motion pictures, Videorecordings, Filmstrips, Slides, Transparencies, Photos, Cards, Charts, Drawings">
226 <img border="0" src="/intranet-tmpl/prog/en/images/AV Aids.gif" alt="Visual Materials" />Visual Materials</label></td>
227 <td><input type="checkbox" id="mc-sr" name="limit" value="mc-rtype:i" />
228 <label for="mc-sr" title="Spoken, Books on CD and Cassette">
229 <img border="0" src="/intranet-tmpl/prog/en/images/AF.gif" alt="Books on Tape" />Books on Tape</label></td>
233 <td><input type="checkbox" id="mc-cf" name="limit" value="mc:c" />
234 <label for="mc-cf" title="Computer files, Data, Software">
235 <img border="0" src="/intranet-tmpl/prog/en/images/CD-ROM software.gif" alt="Computer Files" />Computer Files</label></td>
236 <td><input type="checkbox" id="mc-lh" name="limit" value="mc-collection:LH" />
237 <label for="mc-lh" title="Local History Materials">
238 <img border="0" src="/intranet-tmpl/prog/en/images/Local history.gif" alt="Local History Materials" />Local History Materials</label></td>
239 <td><input type="checkbox" id="mc-map" name="limit" value="mc:a" />
240 <label for="mc-map" title="Maps, Globes">
241 <img border="0" src="/intranet-tmpl/prog/en/images/PF.gif " alt="Maps" />Maps</label></td>
245 <td><input type="checkbox" id="mc-mus" name="limit" value="mc-rtype:j" />
246 <label for="mc-mus" title="Music">
247 <img border="0" src="/intranet-tmpl/prog/en/images/CDM.gif" alt="Music" />Music</label></td>
248 <td><input type="checkbox" id="mc-kit" name="limit" value="mc-rtype:o" />
249 <label for="mc-kit" title="Kits"><img border="0" src="/intranet-tmpl/prog/en/images/KIT.gif" alt="Kits" />Kits</label></td>
250 <td><input type="checkbox" id="mc-ref" name="limit" value="mc-collection:REF" />
251 <label for="mc-ref" title="Reference">
252 <img border="0" src="/intranet-tmpl/prog/en/images/REF.gif" alt="Reference" />Reference</label></td>
259 <!-- /TYPE LIMITS -->
261 <div id="availability" class="container">
262 <!-- AVAILABILITY LIMITS -->
263 <fieldset><legend>Location and availability: </legend>
264 <div id="currently-avail" class="container">
265 <label for="available-items">Only items currently available</label> <input type="checkbox" id="available-items" name="limit" value="available" />
268 <div id="select-libs" class="container">
269 <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;}'>
270 <option value="">All Libraries</option>
271 <!-- TMPL_LOOP NAME="branchloop" -->
272 <!-- TMPL_IF NAME="selected" -->
273 <option value="branch:<!-- TMPL_VAR NAME="value" -->" selected="selected"><!-- TMPL_VAR NAME="branchname" --></option>
275 <option value="branch:<!-- TMPL_VAR NAME="value" -->"><!-- TMPL_VAR NAME="branchname" --></option>
279 <!-- <input type="hidden" name="limit" value="branch: MAIN" /> -->
280 <!-- TMPL_IF NAME="searchdomainloop" -->
281 <p>OR</p> <!-- should addjs to grey out group pulldown if a library is selected. -->
282 <label for="categoryloop">Groups of Libraries</label><select name="multibranchlimit" id="categoryloop">
283 <option value=""> -- none -- </option>
284 <!-- TMPL_LOOP NAME="searchdomainloop" -->
285 <option value="<!-- TMPL_VAR NAME="categorycode" -->"><!-- TMPL_VAR NAME="categoryname" --></option>
291 <!-- /AVAILABILITY LIMITS -->
296 <div id="sortby" class="container">
297 <fieldset><legend>Sort by: </legend>
298 <p><select id="sort_by" name="sort_by">
299 <!-- TMPL_INCLUDE NAME="resort_form.inc" -->
309 <!-- SEARCH BUTTONS -->
310 <p><input class="submit" type="submit" accesskey="s" value="Search" />
311 <!-- TMPL_IF NAME="expanded_options" -->
312 <a href="/cgi-bin/koha/catalogue/search.pl?expanded_options=0">[Fewer Options]</a>
314 <a href="/cgi-bin/koha/catalogue/search.pl?expanded_options=1">[More options]</a>
316 <a href="/cgi-bin/koha/catalogue/search.pl?do=Clear">[New search]</a>
318 <!-- /SEARCH BUTTONS -->
322 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->