Moving language to opac-advsearch.pl fewer options

was in "more option", that contains many options useless to standard patrons. Language limit can be useful
This commit is contained in:
Paul Poulain 2009-11-11 15:53:16 +01:00 committed by Henri-Damien LAURENT
parent f710fc91d1
commit 2e64ef8efb
1 changed files with 28 additions and 29 deletions

View File

@ -4,11 +4,11 @@
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
</head>
<body id="advsearch"><div id="doc3" class="yui-t7">
<div id="bd">
<div id="bd">
<!-- TMPL_INCLUDE name="masthead.inc" -->
<form action="/cgi-bin/koha/opac-search.pl" method="get">
<div class="yui-g">
<div class="yui-g">
<!-- TMPL_IF NAME="if_expanded_options_actually_worked" -->
<div id="databases" class="container"> <!-- TMPL_IF NAME="outer_servers_loop" -->
<!-- DATABASES -->
@ -18,7 +18,7 @@
<!-- 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 -->
<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 -->
@ -61,7 +61,7 @@
<select name="idx">
<option value="kw">Keyword</option>
<option value="au,wrdl">Author</option>
<!-- TMPL_IF NAME="expanded_options" -->
<option value="au,phr">&nbsp;&nbsp;&nbsp;&nbsp; Author Phrase</option>
<option value="cpn,wrdl">&nbsp;&nbsp;&nbsp;&nbsp; Corporate Name</option>
@ -103,7 +103,7 @@
<!-- /TMPL_LOOP -->
</fieldset></div>
</div>
</div>
<div id="pubrange" class="container">
<fieldset>
<!-- PUB RANGE OPTION -->
@ -113,39 +113,38 @@
</fieldset>
<!-- /PUB RANGE OPTION -->
</div>
<div class="yui-g">
<div class="yui-g">
<!-- /BOOLEAN SEARCH OPTIONS -->
<div id="advsearch-itemtype" class="container">
<fieldset>
<fieldset>
<legend>Limit to any of the following:</legend>
<table>
<tr>
<!--TMPL_LOOP Name="itemtypeloop"-->
<!--TMPL_LOOP Name="itemtypeloop"-->
<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;
<!--TMPL_VAR Name="description" --></label></td>
<!-- TMPL_UNLESS name="count5" --><!-- TMPL_UNLESS name="__last__" --></tr><tr><!-- /TMPL_UNLESS --><!-- /TMPL_UNLESS -->
<!--/TMPL_LOOP-->
</tr>
<!--/TMPL_LOOP-->
</tr>
</table>
</fieldset>
</fieldset>
</div>
<!-- TMPL_IF NAME="expanded_options" -->
<fieldset><legend>Language</label>
<!-- LANGUAGE LIMIT -->
<!-- LANGUAGE LIMIT -->
<p><label for="language-limit">Language: </label>
<select name="limit">
<option value="">No Limit</option>
<!-- TMPL_LOOP NAME="search_languages_loop" -->
<!-- TMPL_IF NAME="selected" -->
<option value="ln,rtrn:<!-- TMPL_VAR NAME="iso639_2_code" -->" selected="selected"><!-- TMPL_VAR NAME="language_description" --></option>
<!-- TMPL_ELSE -->
<option value="ln,rtrn:<!-- TMPL_VAR NAME="iso639_2_code" -->"><!-- TMPL_VAR NAME="language_description" --></option>
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="selected" -->
<option value="ln,rtrn:<!-- TMPL_VAR NAME="iso639_2_code" -->" selected="selected"><!-- TMPL_VAR NAME="language_description" --></option>
<!-- TMPL_ELSE -->
<option value="ln,rtrn:<!-- TMPL_VAR NAME="iso639_2_code" -->"><!-- TMPL_VAR NAME="language_description" --></option>
<!-- /TMPL_IF -->
<!-- /TMPL_LOOP -->
</select></p><!-- <a href="">Show all languages</a>-->
<!-- /LANGUAGE LIMIT -->
</fieldset>
<!-- /LANGUAGE LIMIT -->
</fieldset>
<!-- TMPL_IF NAME="expanded_options" -->
<!--TMPL_IF Name="usmarc"-->
<!-- SUBTYPE LIMITS -->
<div id="subtypes" class="container"><fieldset>
@ -220,7 +219,7 @@
<div class="yui-u first">
<!-- AVAILABILITY LIMITS -->
<!-- TMPL_UNLESS NAME="singleBranchMode" -->
<!-- TMPL_UNLESS NAME="singleBranchMode" -->
<div id="location" class="container"><fieldset><legend>Location and availability: </legend>
<select name="limit" id="branchloop">
@ -236,7 +235,7 @@
<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>
</fieldset></div>
<!-- /TMPL_UNLESS -->
<!-- /TMPL_UNLESS -->
<!-- /AVAILABILITY LIMITS -->
</div>
<div class="yui-u">
@ -264,12 +263,12 @@
<script type="text/javascript" language="javascript">
/* This function allows to display a new field to search.
*/
function add_field() {
var ButtonPlus = document.getElementById('ButtonPlus');
var line = ButtonPlus.parentNode;
line.parentNode.appendChild(line.cloneNode(true));
line.removeChild(ButtonPlus);
*/
function add_field() {
var ButtonPlus = document.getElementById('ButtonPlus');
var line = ButtonPlus.parentNode;
line.parentNode.appendChild(line.cloneNode(true));
line.removeChild(ButtonPlus);
}
</script>