1 [% PROCESS "opac/parts/org_selector.tt2" %]
2 <div id="search-wrapper">
3 [% UNLESS took_care_of_form -%]
4 <form action="[% ctx.opac_root %]/results" method="get">
7 <span class="search_catalog_lbl mobile_hide">[% l('Search the Catalog') %]</span>
8 <span class="adv_search_catalog_lbl"><a href="[% mkurl(ctx.opac_root _ '/advanced') %]"
9 id="home_adv_search_link">[% l('Advanced Search') %]</a></span>
10 <span class="browse_the_catalog_lbl"><a href="[% mkurl(ctx.opac_root _ '/browse', {}, ['fi:has_browse_entry']) %]">[% l('Browse the Catalog') %]</a></span>
12 <div class="searchbar">
13 <span class='search_box_wrapper'>
14 [%- # autosuggest breaks accessibility, as the aria-label
15 # attribute is removed when the Dijit is created. :( %]
16 <label id="search_box_label">[% l('Search: ') %]
17 <input type="text" id="search_box" name="query" aria-label="[%
18 l('Enter search query:');
19 %]" value="[% is_advanced ? ctx.naive_query_scrub(ctx.processed_search_query) : CGI.param('query') | html %]"
20 [%- IF use_autosuggest.enabled == "t" %]
21 dojoType="openils.widget.AutoSuggest" type_selector="'qtype'"
22 submitter="this.textbox.form.submit();"
23 [%- IF use_autosuggest.value.search('opac_visible') %]
24 store_args='{"org_unit_getter": function() { return [% ctx.search_ou %]; }}'
25 [%- END # opac_visible -%]
27 [% IF basic_search != "f" %] autofocus [% END %] x-webkit-speech
28 [%- END # autosuggest enabled %] />
31 <label id="search_qtype_label">
34 INCLUDE "opac/parts/qtype_selector.tt2" id="qtype";
37 <label id="search_locg_label">
40 select_lib_label = l("Select search library");
41 INCLUDE build_org_selector arialabel=select_lib_label show_loc_groups=1
45 <input id='search-submit-go' type="submit" value="[% l('Search') %]" alt="[% l('Search') %]" class="opac-button"
46 onclick='setTimeout(function(){$("search-submit-spinner").className=""; $("search-submit-go").className="hidden"}, 2000)'/>
47 <img id='search-submit-spinner' src='/opac/images/progressbar_green.gif' style='height:16px;width:16px;' class='hidden' alt=''/>
51 <div id="search-only-bookbag-container">
52 <input type="checkbox" id="search-only-bookbag" name="bookbag"
53 value="[% ctx.bookbag.id | html %]" checked="checked" />
54 <label for="search-only-bookbag">
55 [% l('Search only within the chosen list') %]
59 [% IF is_advanced || is_special %]
61 <input type="hidden" name="_adv" value="1" />
62 [% IF ctx.processed_search_query OR (NOT is_advanced AND NOT is_special) %]
63 <input name='page' type='hidden' value="0" />
67 [% UNLESS took_care_of_form %]</form>[% END %]
68 [% IF (is_advanced AND NOT is_special) AND CGI.param('qtype') %]
69 <div class="opac-auto-102">
70 [ <a href="[% mkurl(ctx.opac_root _ '/advanced') %]">[%
71 l('Refine My Original Search')
77 <a href="[% ctx.opac_root %]/home">[% l('Catalog Home') %]</a> >
80 <div class="clear-both"></div>