<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
-<title>Koha › Catalogue › Advanced Search</title>
+<title>Koha › Catalog › Advanced Search</title>
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
<script type="text/JavaScript" language="JavaScript">
/**
dad.appendChild(line.cloneNode(true));
line.removeChild(ButtonPlus);
}
+ $(document).ready(function() {
+ $("input[@name='q']:eq(0)").focus();
+ });
</script>
</head>
<body>
<!-- TMPL_INCLUDE NAME="header.inc" -->
+<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › Advanced Search</div>
<div id="doc" class="yui-t7">
<div id="bd">
<!-- /TMPL_IF -->
<!-- /TMPL_IF -->
<!-- TMPL_INCLUDE NAME="search_indexes.inc" -->
- <input type="text" size="30" name="q" title="Enter search terms" value="" class="focus" />
+ <input type="text" size="30" name="q" title="Enter search terms" value="" />
<!-- TMPL_IF NAME="expanded_options" -->
<!-- TMPL_IF NAME="add_field" -->
<a href="JavaScript:add_field();" id="ButtonPlus" title="Add another field">[+]</a>
<!-- ITEMTYPE LIMITS -->
<div id="itemtypelist">
<fieldset>
- <legend>Limit type to: match any of the following:</legend>
+ <legend>Limit to any of the following:</legend>
<table>
<tr>
<!--TMPL_LOOP Name="itemtypeloop"-->
<td>
<!-- TMPL_IF name="imageurl"--><img border="0" src="<!--TMPL_VAR Name="imageurl" -->" alt="<!--TMPL_VAR Name="description" -->" /><!-- /TMPL_IF -->
- <input type="checkbox" id="mc-<!--TMPL_VAR Name="number" -->" name="limit" value="mc:<!--TMPL_VAR Name="code" -->" />
- <label for="mc-<!--TMPL_VAR Name="number" -->"><!--TMPL_VAR Name="description" --></label></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_VAR Name="description" --></label></td>
<!-- TMPL_UNLESS name="count5" --></tr><tr><!-- /TMPL_UNLESS -->
<!--/TMPL_LOOP-->
+ <!-- FIXME: for validation, avoid generating empty row -->
</tr>
</table>
</fieldset>
<option value="">No Limit</option>
<!-- TMPL_LOOP NAME="search_languages_loop" -->
<!-- TMPL_IF NAME="selected" -->
- <option value="ln:<!-- TMPL_VAR NAME="language_code" -->" selected="selected"><!-- TMPL_VAR NAME="language_name" --> <!-- TMPL_IF NAME="language_locale_name" -->(<!-- TMPL_VAR NAME="language_locale_name" -->)<!-- /TMPL_IF --></option>
+ <option value="ln:<!-- TMPL_VAR NAME="iso639_2_code" -->" selected="selected"><!-- TMPL_VAR NAME="language_description" --></option>
<!-- TMPL_ELSE -->
- <option value="ln:<!-- TMPL_VAR NAME="language_code" -->"><!-- TMPL_VAR NAME="language_name" --> <!-- TMPL_IF NAME="language_locale_name" -->(<!-- TMPL_VAR NAME="language_locale_name" -->)<!-- /TMPL_IF --></option>
+ <option value="ln:<!-- TMPL_VAR NAME="iso639_2_code" -->"><!-- TMPL_VAR NAME="language_description" --></option>
<!-- /TMPL_IF -->
<!-- /TMPL_LOOP -->
<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>
+ <option value="aud:a">Preschool</option>
+ <option value="aud:b">Primary</option>
+ <option value="aud:c">Pre-adolescent</option>
+ <option value="aud:d">Adolescent</option>
+ <option value="aud:e">Adult</option>
+ <option value="aud:f">Specialized</option>
+ <option value="aud:g">General</option>
+ <option value="aud:j">Juvenile</option>
</select>
<select name="limit" class="subtype">
<!-- TYPE LIMITS -->
<fieldset>
- <legend>Limit type to: match any of the following</legend>
+ <legend>Limit to any of the following</legend>
<table class="itemtypes">
<tr>
<td><input type="checkbox" id="mc-bks" name="limit" value="mc:t" />
<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;}'>
<option value="">All Libraries</option>
<!-- TMPL_LOOP NAME="branchloop" -->
- <option value="homebranch:<!-- TMPL_VAR NAME="value" -->"><!-- TMPL_VAR NAME="branchname" --></option>
+ <option value="branch:<!-- TMPL_VAR NAME="value" -->"><!-- TMPL_VAR NAME="branchname" --></option>
<!-- /TMPL_LOOP -->
</select>
<!-- <input type="hidden" name="limit" value="branch: MAIN" /> -->