Koha/koha-tmpl/opac-tmpl/prog/en/modules/opac-advsearch.tmpl
Joshua Ferraro 6c9b83fbdc Resolves bug 2250: RFC: New System Preference to Determine which 'Types' and associated icons to display in advanced Search
For documentation, please indicate that as part of profiling,
staff can refer to the AdvancedSearchTypes system preference to
choose where to draw the advanced search 'Types' from. Currently
this is implemented as a choice, between itemtypes and ccodes,
but it's been designed to work with any authorised value so long
as an index exists for searching by that authorised value.

By default, and if this syspref doesn't exist, it will pull from
itemtypes as before.
2008-06-18 13:01:20 -05:00

357 lines
19 KiB
Cheetah

<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
<!-- TMPL_IF NAME="LibraryNameTitle" --><!-- TMPL_VAR NAME="LibraryNameTitle" --><!-- TMPL_ELSE -->Koha Online<!-- /TMPL_IF -->
Catalog &rsaquo; Advanced Search
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
</head>
<body id="advsearch"><div id="doc3" class="yui-t7">
<div id="bd">
<!-- TMPL_INCLUDE name="masthead.inc" -->
<form action="/cgi-bin/koha/opac-search.pl" method="get">
<div class="yui-gc">
<div class="yui-u first">
<!-- TMPL_IF NAME="if_expanded_options_actually_worked" -->
<div id="databases" class="container"> <!-- TMPL_IF NAME="outer_servers_loop" -->
<!-- DATABASES -->
<fieldset>
<legend>Select local databases:</legend>
<!-- TMPL_LOOP NAME="outer_servers_loop" -->
<!-- TMPL_LOOP NAME="inner_servers_loop" -->
<!-- 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 --><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" -->/images/<!-- TMPL_VAR NAME="icon" -->" /> <!-- TMPL_VAR NAME="label" --></label>
<!-- /TMPL_LOOP -->
<!-- /TMPL_LOOP -->
</fieldset>
<!-- /DATABASES -->
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="outer_sup_servers_loop" -->
<!-- REMOTE DATABASES -->
<fieldset>
<legend>Select remote databases:</legend>
<!-- TMPL_LOOP NAME="outer_sup_servers_loop" -->
<!-- TMPL_LOOP NAME="inner_sup_servers_loop" -->
<!-- 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" -->" />
<!-- /TMPL_IF -->
<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>
<!-- /TMPL_LOOP -->
<!-- /TMPL_LOOP -->
</fieldset>
<!-- /REMOTE DATABASES -->
<!-- /TMPL_IF --></div>
<!-- /TMPL_IF -->
<!-- BOOLEAN SEARCH OPTIONS -->
<div id="booleansearch" class="container"><fieldset>
<legend>Search for:</legend>
<!-- TMPL_LOOP NAME="search_boxes_loop" -->
<p>
<!-- TMPL_IF NAME="expanded_options" -->
<!-- TMPL_IF NAME="search_boxes_label" -->
<!-- p tag was here -->
<!-- TMPL_ELSE -->
<!-- p tag was here -->
<!-- /TMPL_IF -->
<!-- TMPL_ELSE -->
<!-- p tag was here -->
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="expanded_options" --><!-- TMPL_VAR NAME="left_content" --><!-- /TMPL_IF -->
<select name="idx">
<!-- TMPL_IF NAME="selected" -->
<option value="kw" selected="selected">Keyword</option>
<!-- TMPL_ELSE -->
<option value="kw">Keyword</option>
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="selected" -->
<option value="au,wrdl" selected="selected">Author</option>
<!-- TMPL_ELSE -->
<option value="au,wrdl">Author</option>
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="expanded_options" -->
<!-- TMPL_IF NAME="selected" -->
<option value="au,phr" selected="selected">&nbsp;&nbsp;&nbsp;&nbsp; Author Phrase</option>
<!-- TMPL_ELSE -->
<option value="au,phr">&nbsp;&nbsp;&nbsp;&nbsp; Author Phrase</option>
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="selected" -->
<option value="cpn,wrdl" selected="selected">&nbsp;&nbsp;&nbsp;&nbsp; Corporate Name</option>
<!-- TMPL_ELSE -->
<option value="cpn,wrdl">&nbsp;&nbsp;&nbsp;&nbsp; Corporate Name</option>
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="selected" -->
<option value="cfn,wrdl" selected="selected">&nbsp;&nbsp;&nbsp;&nbsp; Conference Name</option>
<!-- TMPL_ELSE -->
<option value="cfn,wrdl">&nbsp;&nbsp;&nbsp;&nbsp; Conference Name</option>
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="selected" -->
<option value="cpn,phr" selected="selected">&nbsp;&nbsp;&nbsp;&nbsp; Corporate Name Phrase</option>
<!-- TMPL_ELSE -->
<option value="cfn,phr">&nbsp;&nbsp;&nbsp;&nbsp; Conference Name Phrase</option><!-- /TMPL_IF -->
<!-- TMPL_IF NAME="selected" -->
<option value="pn,wrdl" selected="selected">&nbsp;&nbsp;&nbsp;&nbsp; Personal Name</option>
<!-- TMPL_ELSE -->
<option value="pn,wrdl">&nbsp;&nbsp;&nbsp;&nbsp; Personal Name</option><!-- /TMPL_IF -->
<!-- TMPL_IF NAME="selected" -->
<option value="pn,phr" selected="selected">&nbsp;&nbsp;&nbsp;&nbsp; Personal Name Phrase</option>
<!-- TMPL_ELSE -->
<option value="pn,phr">&nbsp;&nbsp;&nbsp;&nbsp; Personal Name Phrase</option>
<!-- /TMPL_IF -->
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="selected" -->
<option value="ln" selected="selected">Language</option>
<!-- TMPL_ELSE -->
<option value="ln">Language</option><!-- /TMPL_IF -->
<!-- TMPL_IF NAME="expanded_options" -->
<!-- TMPL_IF NAME="selected" --><option value="nt" selected="selected">Notes/Comments</option><!-- TMPL_ELSE -->
<option value="nt">Notes/Comments</option><!-- /TMPL_IF -->
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="selected" -->
<option value="pb,wrdl" selected="selected">Publisher</option>
<!-- TMPL_ELSE -->
<option value="pb,wrdl">Publisher</option><!-- /TMPL_IF -->
<!-- TMPL_IF NAME="selected" -->
<option value="pl,wrdl" selected="selected">Publisher Location</option>
<!-- TMPL_ELSE -->
<option value="pl,wrdl">Publisher Location</option><!-- /TMPL_IF -->
<!-- TMPL_IF NAME="expanded_options" --><!-- TMPL_IF NAME="selected" -->
<option value="sn" selected="selected">Standard Number</option>
<!-- TMPL_ELSE -->
<option value="sn">Standard Number</option><!-- /TMPL_IF -->
<!-- TMPL_IF NAME="selected" -->
<option value="nb" selected="selected">&nbsp;&nbsp;&nbsp;&nbsp; ISBN</option>
<!-- TMPL_ELSE -->
<option value="nb">&nbsp;&nbsp;&nbsp;&nbsp; ISBN</option><!-- /TMPL_IF -->
<!-- TMPL_IF NAME="selected" -->
<option value="ns" selected="selected">&nbsp;&nbsp;&nbsp;&nbsp; ISSN</option>
<!-- TMPL_ELSE -->
<option value="ns">&nbsp;&nbsp;&nbsp;&nbsp; ISSN</option><!-- /TMPL_IF -->
<!-- TMPL_IF NAME="selected" -->
<option value="lcn,phr" selected="selected">&nbsp;&nbsp;&nbsp;&nbsp; Call Number</option>
<!-- TMPL_ELSE -->
<option value="lcn,phr">&nbsp;&nbsp;&nbsp;&nbsp; Call Number</option><!-- /TMPL_IF -->
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="selected" -->
<option value="su,wrdl" selected="selected">Subject</option>
<!-- TMPL_ELSE -->
<option value="su,wrdl">Subject</option><!-- /TMPL_IF -->
<!-- TMPL_IF NAME="expanded_options" -->
<!-- TMPL_IF NAME="selected" -->
<option value="su,phr" selected="selected">&nbsp;&nbsp;&nbsp;&nbsp; Subject Phrase</option>
<!-- TMPL_ELSE -->
<option value="su,phr">&nbsp;&nbsp;&nbsp;&nbsp; Subject Phrase</option><!-- /TMPL_IF -->
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="selected" -->
<option value="ti" selected="selected">Title</option>
<!-- TMPL_ELSE -->
<option value="ti">Title</option><!-- /TMPL_IF -->
<!-- TMPL_IF NAME="expanded_options" -->
<!-- TMPL_IF NAME="selected" -->
<option value="ti,phr" selected="selected">&nbsp;&nbsp;&nbsp;&nbsp; Title Phrase</option>
<!-- TMPL_ELSE -->
<option value="ti,phr">&nbsp;&nbsp;&nbsp;&nbsp; Title Phrase</option><!-- /TMPL_IF -->
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="selected" -->
<option value="se,wrdl" selected="selected">Series Title</option>
<!-- TMPL_ELSE -->
<option value="se,wrdl">Series Title</option><!-- /TMPL_IF -->
</select>
<input type="text" size="30" name="q" title="Enter search terms" value="" />
<!-- TMPL_IF NAME="expanded_options" -->
<!-- TMPL_IF NAME="scan_index" --><input type="checkbox" name="scan" id="scan" value="1" /> Scan Indexes<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="add_field" --><a href="JavaScript:add_field();" id="ButtonPlus" title="Add another field">[+]</a><!-- /TMPL_IF -->
<!-- /TMPL_IF -->
</p>
<!-- /TMPL_LOOP -->
</fieldset></div>
<!-- /BOOLEAN SEARCH OPTIONS -->
<div id="advsearch-itemtype" class="container">
<h3>Limit type to: match any of the following:</h3>
<table>
<tr>
<!--TMPL_LOOP Name="itemtypeloop"-->
<td><input type="checkbox" id="<!-- TMPL_VAR NAME="ccl" -->-<!--TMPL_VAR Name="number" -->" name="limit" value="<!-- TMPL_VAR NAME="ccl" -->:<!--TMPL_VAR Name="code" -->"/><!-- TMPL_IF name="imageurl"--><img border="0" src="<!--TMPL_VAR Name="imageurl" -->" alt="<!--TMPL_VAR Name="description" -->" /><!-- /TMPL_IF -->&nbsp;
<!--TMPL_VAR Name="description" --></td>
<!-- TMPL_UNLESS name="count5" --></tr><tr><!-- /TMPL_UNLESS -->
<!--/TMPL_LOOP-->
<!-- FIXME: for validation, avoid generating emtpy row -->
</tr>
</table>
</div>
<!-- TMPL_IF NAME="expanded_options" -->
<!-- BASIC LIMITS -->
<!--TMPL_IF Name="usmarc"-->
<fieldset>
<legend>Limit type to: match any of the following</legend>
<table class="itemtypes">
<tr>
<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>
<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>
<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>
</tr>
<tr>
<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>
<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>
<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>
</tr>
<tr>
<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>
<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>
<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>
</table>
</fieldset>
<!-- /BASIC LIMITS -->
<!-- SUBTYPE LIMITS -->
<div id="subtypes" class="container"><fieldset>
<legend>Subtype limits</legend><select name="limit" class="subtype">
<option value="" selected="selected" class="menuheader">Any Audience</option>
<option value="aud:a">Easy</option>
<option value="aud:c">Juvenile</option>
<option value="aud:d">Young Adult</option>
<option value="aud:e">Adult</option>
</select>
<select name="limit" class="subtype">
<option value="" selected="selected" class="menuheader">Any Content</option>
<option value="fic:1">Fiction</option>
<option value="fic:0">Non Fiction</option>
<option value="bio:b">Biography</option>
<option value="mus:j">Musical recording</option>
<option value="mus:i">Non-musical recording</option>
</select>
<select name="limit" class="subtype">
<option value="" selected="selected" class="menuheader">Any Format</option>
<option value="l-format:ta">Regular print</option>
<option value="l-format:tb">Large print</option>
<option value="l-format:fk">Braille</option>
<option value="">-----------</option>
<option value="l-format:sd">CD audio</option>
<option value="l-format:ss">Cassette recording</option>
<option value="l-format:vf">VHS tape / Videocassette</option>
<option value="l-format:vd">DVD video / Videodisc</option>
<option value="l-format:co">CD Software</option>
<option value="l-format:cr">Website</option>
</select>
<select name="limit" class="subtype">
<option value="">Additional Content Types</option>
<option value="ctype:a">Abstracts/summaries</option>
<option value="ctype:b">Bibliographies</option>
<option value="ctype:c">Catalogs</option>
<option value="ctype:d">Dictionaries</option>
<option value="ctype:e">Encyclopedias </option>
<option value="ctype:f">Handbooks</option>
<option value="ctype:g">Legal articles</option>
<option value="ctype:i">Indexes</option>
<option value="ctype:j">Patent document</option>
<option value="ctype:k">Discographies</option>
<option value="ctype:l">Legislation</option>
<option value="ctype:m">Theses</option>
<option value="ctype:n">Surveys</option>
<option value="ctype:o">Reviews</option>
<option value="ctype:p">Programmed texts</option>
<option value="ctype:q">Filmographies</option>
<option value="ctype:r">Directories</option>
<option value="ctype:s">Statistics</option>
<option value="ctype:t">Technical reports</option>
<option value="ctype:v">Legal cases and case notes</option>
<option value="ctype:w">Law reports and digests</option>
<option value="ctype:z">Treaties </option>
</select>
</fieldset></div>
<!--/TMPL_IF -->
<!--TMPL_IF Name="UNIMARC" -->
<div id="subtypes_unimarc" class="container"><!-- SUBTYPE LIMITS -->
<!-- TMPL_INCLUDE NAME="subtypes_unimarc.inc" --></div>
<!--/TMPL_IF-->
<!--/TMPL_IF-->
</div>
<div class="yui-u">
<!-- AVAILABILITY LIMITS -->
<div id="location" class="container"><fieldset><legend>Location and availability: </legend>
<select name="limit" id="branchloop" style="width: 20em;">
<option value="">All libraries</option>
<!-- TMPL_LOOP NAME="branchloop" -->
<!--TMPL_IF Name="selected"-->
<option value="branch:<!-- TMPL_VAR NAME="value" -->" selected="selected"><!-- TMPL_VAR NAME="branchname" --></option>
<!--TMPL_ELSE-->
<option value="branch:<!-- TMPL_VAR NAME="value" -->"><!-- TMPL_VAR NAME="branchname" --></option>
<!--/TMPL_IF-->
<!-- /TMPL_LOOP -->
</select>
<div style="margin-top:.4em"><label for="available-items"><input type="checkbox" id="available-items" name="limit" value="available" /> Only items currently available</label></div>
</fieldset></div>
<!-- /AVAILABILITY LIMITS -->
<!-- RANK LIMITS -->
<div id="sortby" class="container"><fieldset><legend>Sort by: </legend>
<select id="sort_by" name="sort_by" style="width:20em;">
<!--TMPL_INCLUDE NAME="resort_form.inc" -->
</select></fieldset></div>
<!-- RANK LIMITS -->
</div>
</div>
<div class="yui-g" style="text-align: center;"><div class="container"><!-- SEARCH BUTTONS -->
<input class="submit" type="submit" accesskey="s" name="do" title="Search" value="OK" />
<!-- TMPL_IF NAME="expanded_options" -->
<a href="/cgi-bin/koha/opac-search.pl?expanded_options=0">[Fewer Options]</a>
<!-- TMPL_ELSE -->
<a href="/cgi-bin/koha/opac-search.pl?expanded_options=1">[More options]</a>
<!-- /TMPL_IF -->
<a href="/cgi-bin/koha/opac-search.pl?do=Clear">[New Search]</a>
<!-- /SEARCH BUTTONS --></div></div>
</form>
<script type="text/JavaScript" language="JavaScript">
/**
* Function add_field();
* This function allows to display a new field to search.
*/
function add_field() {
var ButtonPlus = document.getElementById('ButtonPlus');
var line = ButtonPlus.parentNode;
var dad = line.parentNode;
dad.appendChild(line.cloneNode(true));
line.removeChild(ButtonPlus);
}
</script>
</div>
<!-- TMPL_INCLUDE NAME="opac-bottom.inc" -->