Bug 8712: add 'and' label for inputs in OPAC "fewer options" advanced search page
The "and" label not only improves the accessibility but also gives the user an idea that the operation between multiple search fields is a boolean "AND" by default. Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Actually only adds a label and an id to the select. Note that the boxes do not exactly align anymore now (with fewer options). Signed-off-by: Galen Charlton <gmc@esilibrary.com>
This commit is contained in:
parent
f0280dabe0
commit
98bd9de54a
|
|
@ -57,15 +57,23 @@
|
|||
<p>
|
||||
[% IF ( expanded_options ) %]
|
||||
[% IF ( search_box.boolean ) %]
|
||||
<select name="op">
|
||||
<option value="and" selected="selected">and</option>
|
||||
<option value="or">or</option>
|
||||
<option value="not">not</option>
|
||||
</select>
|
||||
<select name="op">
|
||||
<option value="and" selected="selected">and</option>
|
||||
<option value="or">or</option>
|
||||
<option value="not">not</option>
|
||||
</select>
|
||||
[% END %]
|
||||
[% ELSE %]
|
||||
<label for="search-field_[% loop.index %]">
|
||||
[% IF loop.index == 0 %]
|
||||
|
||||
[% ELSE %]
|
||||
and
|
||||
[% END %]
|
||||
</label>
|
||||
[% END %]
|
||||
[% END %]
|
||||
[% IF ( expanded_options ) %][% left_content %][% END %]
|
||||
<select name="idx">
|
||||
<select name="idx" id="search-field_[% loop.index %]">
|
||||
<option value="kw">Keyword</option>
|
||||
<option value="su,wrdl">Subject</option>
|
||||
[% IF ( expanded_options ) %]
|
||||
|
|
|
|||
Loading…
Reference in New Issue