c2ca1e9814f6a0752e14ffe7744ef10b79c34f6f
[koha.git] / koha-tmpl / opac-tmpl / prog / en / modules / opac-advsearch.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <!-- TMPL_IF NAME="LibraryNameTitle" --><!-- TMPL_VAR NAME="LibraryNameTitle" --><!-- TMPL_ELSE -->Koha Online<!-- /TMPL_IF -->
3     Catalog &rsaquo; Advanced Search
4 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
5 </head>
6 <body id="advsearch"><div id="doc3" class="yui-t7">
7    <div id="bd">
8 <!-- TMPL_INCLUDE name="masthead.inc" -->
9
10 <form action="/cgi-bin/koha/opac-search.pl" method="get">
11         <div class="yui-g">
12 <!-- TMPL_IF NAME="if_expanded_options_actually_worked" -->
13         <div id="databases" class="container"> <!-- TMPL_IF NAME="outer_servers_loop" -->
14         <!-- DATABASES -->
15             <fieldset>
16                 <legend>Select local databases:</legend>
17                 <!-- TMPL_LOOP NAME="outer_servers_loop" -->
18                     <!-- TMPL_LOOP NAME="inner_servers_loop" -->
19
20 <!-- TMPL_IF NAME="checked" --><input type="checkbox" id="<!-- TMPL_VAR NAME="id" -->" name="<!-- TMPL_VAR NAME="name" -->" checked="<!-- TMPL_VAR NAME="checked" -->" value="<!-- TMPL_VAR NAME="value" -->" /><!-- TMPL_ELSE -->
21                                <input type="checkbox" id="<!-- TMPL_VAR NAME="id" -->" name="<!-- TMPL_VAR NAME="name" -->"  value="<!-- TMPL_VAR NAME="value" -->" /><!-- /TMPL_IF -->
22                         <label for="<!-- TMPL_VAR NAME="id" -->"><img width="16" height="16" alt="<!-- TMPL_VAR NAME="id" -->" src="<!-- TMPL_VAR NAME="themelang" -->/images/<!-- TMPL_VAR NAME="icon" -->" /> <!-- TMPL_VAR NAME="label" --></label>
23                     <!-- /TMPL_LOOP -->
24                 <!-- /TMPL_LOOP -->
25             </fieldset>
26         <!-- /DATABASES -->
27         <!-- /TMPL_IF -->
28
29         <!-- TMPL_IF NAME="outer_sup_servers_loop" -->
30             <!-- REMOTE DATABASES -->
31             <fieldset>
32                 <legend>Select remote databases:</legend>
33                 <!-- TMPL_LOOP NAME="outer_sup_servers_loop" -->
34                     <!-- TMPL_LOOP NAME="inner_sup_servers_loop" -->
35
36 <!-- TMPL_IF NAME="checked" --><input type="checkbox" id="<!-- TMPL_VAR NAME="id" -->" name="<!-- TMPL_VAR NAME="name" -->" checked="<!-- TMPL_VAR NAME="checked" -->" value="<!-- TMPL_VAR NAME="value" -->" /><input type="checkbox" id="<!-- TMPL_VAR NAME="id" -->" name="<!-- TMPL_VAR NAME="name" -->" value="<!-- TMPL_VAR NAME="value" -->" />
37 <!-- /TMPL_IF -->
38 <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>
39                     <!-- /TMPL_LOOP -->
40                 <!-- /TMPL_LOOP -->
41             </fieldset>
42             <!-- /REMOTE DATABASES -->
43         <!-- /TMPL_IF --></div>
44     <!-- /TMPL_IF -->
45
46     <!-- BOOLEAN SEARCH OPTIONS -->
47     <div id="booleansearch" class="container"><fieldset>
48         <legend>Search for:</legend>
49     <!-- TMPL_LOOP NAME="search_boxes_loop" -->
50         <p>
51         <!-- TMPL_IF NAME="expanded_options" -->
52             <!-- TMPL_IF NAME="boolean" -->
53             <select name="op">
54                 <option value="and" selected="selected">and</option>
55                 <option value="or">or</option>
56                 <option value="not">not</option>
57             </select>
58             <!-- /TMPL_IF -->
59         <!-- /TMPL_IF -->
60         <!-- TMPL_IF NAME="expanded_options" --><!-- TMPL_VAR NAME="left_content" --><!-- /TMPL_IF --> 
61         <select name="idx">
62             <option value="kw">Keyword</option>
63             <option value="au,wrdl">Author</option>
64                         
65 <!-- TMPL_IF NAME="expanded_options" -->
66             <option value="au,phr">&nbsp;&nbsp;&nbsp;&nbsp; Author Phrase</option>
67             <option value="cpn,wrdl">&nbsp;&nbsp;&nbsp;&nbsp; Corporate Name</option>
68             <option value="cfn,wrdl">&nbsp;&nbsp;&nbsp;&nbsp; Conference Name</option>
69             <option value="cfn,phr">&nbsp;&nbsp;&nbsp;&nbsp; Conference Name Phrase</option>
70             <option value="pn,wrdl">&nbsp;&nbsp;&nbsp;&nbsp; Personal Name</option>
71             <option value="pn,phr">&nbsp;&nbsp;&nbsp;&nbsp; Personal Name Phrase</option>
72 <!-- /TMPL_IF -->
73             <option value="ln">Language</option>
74 <!-- TMPL_IF NAME="expanded_options" -->
75             <option value="nt">Notes/Comments</option>
76 <!-- /TMPL_IF -->
77             <option value="pb,wrdl">Publisher</option>
78             <option value="pl,wrdl">Publisher Location</option>
79 <!-- TMPL_IF NAME="expanded_options" -->
80             <option value="sn">Standard Number</option>
81             <option value="nb">&nbsp;&nbsp;&nbsp;&nbsp; ISBN</option>
82             <option value="ns">&nbsp;&nbsp;&nbsp;&nbsp; ISSN</option>
83             <option value="lcn,phr">&nbsp;&nbsp;&nbsp;&nbsp; Call Number</option>
84 <!-- TMPL_ELSE -->
85             <option value="nb">ISBN</option>
86 <!-- /TMPL_IF -->
87             <option value="su,wrdl">Subject</option>
88 <!-- TMPL_IF NAME="expanded_options" -->
89             <option value="su,phr">&nbsp;&nbsp;&nbsp;&nbsp; Subject Phrase</option>
90 <!-- /TMPL_IF -->
91             <option value="ti">Title</option>
92 <!-- TMPL_IF NAME="expanded_options" -->
93             <option value="ti,phr">&nbsp;&nbsp;&nbsp;&nbsp; Title Phrase</option>
94             <option value="se,wrdl">Series Title</option>
95             <option value="callnum">Call Number</option>
96 <!-- /TMPL_IF -->
97         </select>
98         <input type="text" size="30" name="q" title="Enter search terms" value="" />
99 <!-- TMPL_IF NAME="expanded_options" -->
100         <!--   <!-- TMPL_IF NAME="scan_index" --><input type="checkbox" name="scan" id="scan" value="1" /> Scan Indexes<!-- /TMPL_IF --> -->
101         <!-- TMPL_IF NAME="add_field" --><a href="JavaScript:add_field();" id="ButtonPlus" title="Add another field">[+]</a><!-- /TMPL_IF -->
102 <!-- /TMPL_IF -->
103         </p>
104     <!-- /TMPL_LOOP -->
105
106     </fieldset></div>
107         </div>
108 <div id="pubrange" class="container">
109 <fieldset>
110 <!-- PUB RANGE OPTION -->
111 <legend>Publication Date Range:</legend>
112 <span>For example:  1999-2001.  You could also use "-1987" for everything published before 1987 or "2008-" for everything published after 2008.</span>
113 <input type="text" size="30" name="limit-yr" title="Enter search terms" value="" />
114 </fieldset>
115 <!-- /PUB RANGE OPTION -->
116 </div>
117         <div class="yui-g">
118 <!-- /BOOLEAN SEARCH OPTIONS -->
119     <div id="advsearch-itemtype" class="container">
120         <fieldset>
121     <legend>Limit to any of the following:</legend>
122     <legend>Limit type to: match any of the following:</legend>
123     <table>
124         <tr>
125       <!--TMPL_LOOP Name="itemtypeloop"-->
126         <td><input type="checkbox" id="<!-- TMPL_VAR NAME="ccl" -->-<!--TMPL_VAR Name="number" -->" name="limit" value="mc-<!-- TMPL_VAR NAME="ccl" -->:<!--TMPL_VAR Name="code" -->"/><label for="<!-- TMPL_VAR NAME="ccl" -->-<!--TMPL_VAR Name="number" -->"><!-- TMPL_IF name="imageurl"--><img border="0" src="<!--TMPL_VAR Name="imageurl" -->" alt="<!--TMPL_VAR Name="description" -->" /><!-- /TMPL_IF -->&nbsp;
127         <!--TMPL_VAR Name="description" --></label></td>
128         <!-- TMPL_UNLESS name="count5" --><!-- TMPL_UNLESS name="__last__" --></tr><tr><!-- /TMPL_UNLESS --><!-- /TMPL_UNLESS -->
129       <!--/TMPL_LOOP-->
130                 </tr>
131     </table>
132         </fieldset>
133     </div>
134 <!-- TMPL_IF NAME="expanded_options" -->
135     <!--TMPL_IF Name="usmarc"-->
136         <fieldset>
137             <legend>Limit type to: match any of the following</legend>
138             <table class="itemtypes">
139                 <tr>
140                     <td><input type="checkbox" id="mc-bks" name="limit" value="mc:t" /><label for="mc-bks" title="Books, Pamphlets, Technical reports, Manuscripts, Legal papers, Theses and dissertations"><img border="0" src="/intranet-tmpl/prog/en/images/AF.gif" alt="Books" />Books</label></td>
141                     <td><input type="checkbox" id="mc-vis" name="limit" value="mc:v" /><label for="mc-vis" title="Motion pictures, Videorecordings, Filmstrips, Slides, Transparencies, Photos, Cards, Charts, Drawings"><img border="0" src="/intranet-tmpl/prog/en/images/AV Aids.gif" alt="Visual Materials" />Visual Materials</label></td>
142                     <td><input type="checkbox" id="mc-sr" name="limit" value="mc-rtype:i" /><label for="mc-sr" title="Spoken, Books on CD and Cassette"><img border="0" src="/intranet-tmpl/prog/en/images/AF.gif" alt="Books on Tape" />Books on Tape</label></td>
143                 </tr>
144                 <tr>
145                     <td><input type="checkbox" id="mc-cf" name="limit" value="mc:c" /><label for="mc-cf" title="Computer files, Data, Software"><img border="0" src="/intranet-tmpl/prog/en/images/CD-ROM software.gif" alt="Computer Files" />Computer Files</label></td>
146                     <td><input type="checkbox" id="mc-lh" name="limit" value="mc-collection:LH" /><label for="mc-lh" title="Local History Materials"><img border="0" src="/intranet-tmpl/prog/en/images/Local history.gif" alt="Local History Materials" />Local History Materials</label></td>
147                     <td><input type="checkbox" id="mc-map" name="limit" value="mc:a" /><label for="mc-map" title="Maps, Globes"><img border="0" src="/intranet-tmpl/prog/en/images/PF.gif " alt="Maps" />Maps</label></td>
148                 </tr>
149                 <tr>
150                     <td><input type="checkbox" id="mc-mus" name="limit" value="mc-rtype:j" /><label for="mc-mus" title="Music"><img border="0" src="/intranet-tmpl/prog/en/images/CDM.gif" alt="Music" />Music</label></td>
151                     <td><input type="checkbox" id="mc-kit" name="limit" value="mc-rtype:o" /><label for="mc-kit" title="Kits"><img border="0" src="/intranet-tmpl/prog/en/images/KIT.gif" alt="Kits" />Kits</label></td>
152                     <td><input type="checkbox" id="mc-ref" name="limit" value="mc-collection:REF" /><label for="mc-ref" title="Reference"><img border="0" src="/intranet-tmpl/prog/en/images/REF.gif" alt="Reference" />Reference</label></td></tr>
153                 
154                 </table>
155         </fieldset>
156         <!-- /BASIC LIMITS -->
157
158         <!-- SUBTYPE LIMITS -->
159             <div id="subtypes" class="container"><fieldset>
160             <legend>Subtype limits</legend><select name="limit" class="subtype">
161                 <option value="" selected="selected" class="menuheader">Any Audience</option>
162                     <option value="aud:a">Easy</option>
163                     <option value="aud:c">Juvenile</option>
164                     <option value="aud:d">Young Adult</option>
165                     <option value="aud:e">Adult</option>
166                 </select>
167             
168             <select name="limit" class="subtype">
169                 <option value="" selected="selected" class="menuheader">Any Content</option>
170                     <option value="fic:1">Fiction</option>
171                     <option value="fic:0">Non Fiction</option>
172                     <option value="bio:b">Biography</option>
173                     <option value="mus:j">Musical recording</option>
174                     <option value="mus:i">Non-musical recording</option>
175                 </select>
176     
177             
178             <select name="limit" class="subtype">
179                 <option value="" selected="selected" class="menuheader">Any Format</option>
180                     <option value="l-format:ta">Regular print</option>
181                     <option value="l-format:tb">Large print</option>
182                     <option value="l-format:fk">Braille</option>
183                     <option value="">-----------</option>
184                     <option value="l-format:sd">CD audio</option>
185                     <option value="l-format:ss">Cassette recording</option>
186                     <option value="l-format:vf">VHS tape / Videocassette</option>
187                     <option value="l-format:vd">DVD video / Videodisc</option>
188                     <option value="l-format:co">CD Software</option>
189                     <option value="l-format:cr">Website</option>
190                 </select>
191             
192             <select name="limit" class="subtype">
193                 <option value="">Additional Content Types for Books/Printed Materials</option>
194                     <option value="ctype:a">Abstracts/summaries</option>
195                     <option value="ctype:b">Bibliographies</option>
196                     <option value="ctype:c">Catalogs</option>
197                     <option value="ctype:d">Dictionaries</option>
198                     <option value="ctype:e">Encyclopedias </option>
199                     <option value="ctype:f">Handbooks</option>
200                     <option value="ctype:g">Legal articles</option>
201                     <option value="ctype:i">Indexes</option>
202                     <option value="ctype:j">Patent document</option>
203                     <option value="ctype:k">Discographies</option>
204                     <option value="ctype:l">Legislation</option>
205                     <option value="ctype:m">Theses</option>
206                     <option value="ctype:n">Surveys</option>
207                     <option value="ctype:o">Reviews</option>
208                     <option value="ctype:p">Programmed texts</option>
209                     <option value="ctype:q">Filmographies</option>
210                     <option value="ctype:r">Directories</option>
211                     <option value="ctype:s">Statistics</option>
212                     <option value="ctype:t">Technical reports</option>
213                     <option value="ctype:v">Legal cases and case notes</option>
214                     <option value="ctype:w">Law reports and digests</option>
215                     <option value="ctype:z">Treaties </option>
216                 </select>
217     
218     </fieldset></div>
219     <!--/TMPL_IF -->
220     <!--TMPL_IF Name="UNIMARC" -->
221         <div id="subtypes_unimarc" class="container"><!-- SUBTYPE LIMITS -->
222     <!-- TMPL_INCLUDE NAME="subtypes_unimarc.inc" --></div>
223     <!--/TMPL_IF-->
224 <!--/TMPL_IF-->
225         
226 </div>
227 <div class="yui-g">
228
229 <div class="yui-u first">
230 <!-- AVAILABILITY LIMITS -->
231         <!-- TMPL_UNLESS NAME="singleBranchMode" -->
232     <div id="location" class="container"><fieldset><legend>Location and availability: </legend>
233         
234         <select name="limit" id="branchloop">
235         <option value="">All libraries</option>
236         <!-- TMPL_LOOP NAME="branchloop" -->
237         <!--TMPL_IF Name="selected"-->
238         <option value="branch:<!-- TMPL_VAR NAME="value" -->" selected="selected"><!-- TMPL_VAR NAME="branchname" --></option>
239         <!--TMPL_ELSE-->    
240         <option value="branch:<!-- TMPL_VAR NAME="value" -->"><!-- TMPL_VAR NAME="branchname" --></option>
241         <!--/TMPL_IF-->    
242         <!-- /TMPL_LOOP -->
243         </select>
244         
245         <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>
246     </fieldset></div>
247         <!-- /TMPL_UNLESS -->
248 <!-- /AVAILABILITY LIMITS -->
249 </div>
250 <div class="yui-u">
251 <!-- RANK LIMITS -->
252     <div id="sortby" class="container"><fieldset><legend>Sort by: </legend>
253         <select id="sort_by" name="sort_by">
254 <!--TMPL_INCLUDE NAME="resort_form.inc" -->
255 </select></fieldset></div>
256 <!-- RANK LIMITS -->
257 </div>
258 </div>
259
260 <div class="yui-g"><div class="container" style="text-align: center;"><!-- SEARCH BUTTONS -->
261
262     <input class="submit" type="submit" accesskey="s" name="do" title="Search" value="Search" />
263     <!-- TMPL_IF NAME="expanded_options" -->
264         <a href="/cgi-bin/koha/opac-search.pl?expanded_options=0">[Fewer Options]</a>
265     <!-- TMPL_ELSE -->
266         <a href="/cgi-bin/koha/opac-search.pl?expanded_options=1">[More options]</a>
267     <!-- /TMPL_IF -->
268     <a href="/cgi-bin/koha/opac-search.pl?do=Clear">[New Search]</a>
269
270 <!-- /SEARCH BUTTONS --></div></div>
271 </form>
272
273 <script type="text/javascript" language="javascript">
274     /* This function allows to display a new field to search.
275      */
276         function add_field() {
277                 var ButtonPlus = document.getElementById('ButtonPlus');
278                 var line       = ButtonPlus.parentNode;
279                 line.parentNode.appendChild(line.cloneNode(true));
280                 line.removeChild(ButtonPlus);
281     }
282 </script>
283
284 </div>
285 <!-- TMPL_INCLUDE NAME="opac-bottom.inc" -->