<div id='adv_search_rows'>
<!-- Contains the user-addable(?) rows to define search class, containment and text -->
<div valign='top' class='adv_global_input_container'>
- <table id='adv_global_input_table'>
+ <table id='adv_global_input_table' role="presentation">
<thead>
<tr>
<td>
<div id='adv_search_submit'>
<input type="hidden" name="_adv" value="1" />
<span>
- <input id='search-submit-go' type="submit" value="[% l('Search') %]" alt="[% l('Search') %]" class="opac-button"
+ <input id='search-submit-go' type="submit" value="[% l('Search') %]" title="[% l('Search') %]" class="opac-button"
onclick='setTimeout(function(){$("search-submit-spinner").className=""; $("search-submit-go").className="hidden"}, 2000)'/>
<img id='search-submit-spinner' src='/opac/images/progressbar_green.gif'
class='hidden' alt="[% l('Search in progress icon') %]"/>
<div valign='top'[% IF adv_chunk.js_only %]
id='adv_chunk_[% adv_chunk.adv_special %]'
class='hidden'[% END %]>
- <strong>[% adv_chunk.adv_label %]</strong><br />
+ <strong><label for="[% adv_chunk.id %]">
+ [% adv_chunk.adv_label %] </label></strong><br />
[%
IF adv_chunk.adv_special;
SWITCH adv_chunk.adv_special;
CASE "lib_selector";
PROCESS "opac/parts/org_selector.tt2";
- INCLUDE build_org_selector show_loc_groups=1 id="adv_org_selector" %]
+ INCLUDE build_org_selector show_loc_groups=1 id=adv_chunk.id %]
<div class="adv_search_available">
<input type='checkbox' name="modifier"
value="available"[% CGI.param('modifier').grep('available').size ? ' checked="checked"' : '' %]
[%
CASE "pub_year"; %]
<select name='pubdate'
- title="[% l('Publicatiion date search modifier') %]"
+ id="[% adv_chunk.id %]"
onchange='if(this.selectedIndex == 3)
unHideMe($("adv_global_pub_date_2_span"));
else
</select>
<br/>
<div id='adv_special_block'>
- <input title="[% l('First date') %]"
+ <input title="[% l('Search date') %]"
name='date1' type='text' size='4' maxlength='4' value="[% CGI.param('date1') | html %]" />
<span id='adv_global_pub_date_2_span' class='[% CGI.param("pubdate") == "between" ? "" : "hide_me" %]'>
[% l("and") %] <input name='date2'
- title="[% l('Second date') %]" type='text' size='4' maxlength='4' value="[% CGI.param('date2') | html %]" />
+ title="[% l('Secondary search date') %]" type='text' size='4' maxlength='4' value="[% CGI.param('date2') | html %]" />
</span>
</div>
[%
CASE "sort_selector";
INCLUDE "opac/parts/filtersort.tt2"
+ id=adv_chunk.id
value=CGI.param('sort') class='results_header_sel';
%]
END;
ELSIF adv_chunk.adv_attr;
INCLUDE "opac/parts/coded_value_selector.tt2"
+ id=adv_chunk.id
attr=adv_chunk.adv_attr multiple="multiple"
- filter_label=l('Select [_1]', adv_chunk.adv_label)
size=adv_chunk.adv_size || search.default_adv_select_height || "4";
ELSIF adv_chunk.adv_filter;
INCLUDE "opac/parts/filter_group_selector.tt2"
+ id=adv_chunk.id
filter_group=adv_chunk.adv_filter multiple="multiple"
- filter_label=l('Select [_1]', adv_chunk.adv_label)
size=adv_chunk.adv_size || search.default_adv_select_height || "4";
END; %]
</div>
# lib_selector will put the search library box (with limit to available)
# pub_year will put the publication year box
# sort_selector will put the sort results selector
+# id DOM id used for linking labels to form controls. They are pinned
+# here instead of auto-generated (from the attr type, for example)
+# for consistency.
search.adv_config = [
- {adv_label => l("Item Type"), adv_attr => ["mattype", "item_type"]},
- {adv_label => l("Item Form"), adv_attr => "item_form"},
- {adv_label => l("Language"), adv_attr => "item_lang"},
- {adv_label => l("Audience"), adv_attr => ["audience_group", "audience"], adv_break => 1},
- {adv_label => l("Video Format"), adv_attr => "vr_format"},
- {adv_label => l("Bib Level"), adv_attr => "bib_level"},
- {adv_label => l("Literary Form"), adv_attr => "lit_form"},
- {adv_label => l("Shelving Location"), adv_special => "copy_location", js_only => 1, adv_break => 1},
- {adv_label => l("Search Library"), adv_special => "lib_selector"},
- {adv_label => l("Publication Year"), adv_special => "pub_year"},
- {adv_label => l("Sort Results"), adv_special => "sort_selector"},
+ {adv_label => l("Item Type"), adv_attr => ["mattype", "item_type"], id => 'adv_selector_item_type'},
+ {adv_label => l("Item Form"), adv_attr => "item_form", id => 'adv_selector_item_form'},
+ {adv_label => l("Language"), adv_attr => "item_lang", id => 'adv_selector_item_lang'},
+ {adv_label => l("Audience"), adv_attr => ["audience_group", "audience"], id => 'adv_selector_audience', adv_break => 1},
+ {adv_label => l("Video Format"), adv_attr => "vr_format", id => 'adv_selector_video_format'},
+ {adv_label => l("Bib Level"), adv_attr => "bib_level", id => 'adv_selector_bib_level'},
+ {adv_label => l("Literary Form"), adv_attr => "lit_form", id => 'adv_selector_lit_form'},
+ {adv_label => l("Shelving Location"), adv_special => "copy_location", id => 'adv_copy_location_selector', js_only => 1, adv_break => 1},
+ {adv_label => l("Search Library"), adv_special => "lib_selector", id => 'adv_org_selector'},
+ {adv_label => l("Publication Year"), adv_special => "pub_year", id => 'adv_selector_pub_year'},
+ {adv_label => l("Sort Results"), adv_special => "sort_selector", id => 'adv_selector_sort_results'},
];
# Set the default height of the select boxes. Defaults to 4.