(sitka) 2.4 tpac - prevent numeric search text from displaying in keyword search...
[sitka/evergreen.git] / Open-ILS / src / templates / opac / parts / searchbar_staff.tt2
CommitLineData
3c1f1b58
MB
1[% PROCESS "opac/parts/org_selector.tt2" %]
2<div id="search-box">
3 [% UNLESS took_care_of_form -%]
4 <form action="[% ctx.opac_root %]/results" method="GET">
5 [%- END %]
6
3c1f1b58
MB
7 <div class="searchbar">[%- l('SEARCH');
8 INCLUDE "opac/parts/coded_value_selector.tt2"
9 attr=["mattype", "item_type"] none_ok=1 none_label=l('All Formats');
10 l(' FOR ');
11 %]
12 <span class='search_box_wrapper'>
13 <input type="text" id="search_box" name="query"
5b2cbb46
MB
14 [%- IF CGI.param('qtype') and not is_special %]
15 value="[% is_advanced ? ctx.naive_query_scrub(ctx.processed_search_query) : CGI.param('query') | html %]"
16 [% END %]
3c1f1b58
MB
17 [%- IF use_autosuggest.enabled == "t" %]
18 dojoType="openils.widget.AutoSuggest" type_selector="'qtype'"
19 submitter="this.textbox.form.submit();"
20 [%- IF use_autosuggest.value.search('opac_visible') %]
21 store_args='{"org_unit_getter": function() { return [% ctx.search_ou %]; }}'
22 [%- END # opac_visible -%]
23 [%- ELSE -%]
24 [% IF basic_search != "f" %] autofocus [% END %] x-webkit-speech
25 [%- END # autosuggest enabled %] />
26 </span>
27 [%- INCLUDE "opac/parts/qtype_selector.tt2" id="qtype";
4a6cd93c 28 l(' IN '); INCLUDE build_org_selector value=ctx.search_ou show_loc_groups=1 %]
3c1f1b58
MB
29 <span>
30 <button id='search-submit-go' value="[% l('Search') %]" alt="[% l('Search') %]" class="opac-button"
31 onclick='setTimeout(function(){$("search-submit-spinner").className=""; $("search-submit-go").className="hidden"}, 2000)'>[% l('Search') %]</button>
32 <img id='search-submit-spinner' src='/opac/images/progressbar_green.gif' style='height:16px;width:16px;' class='hidden' alt=''/>
33 </span>
34 </div>
b32ecc25
MB
35
36 <div>
37<!--- <span class="search_catalog_lbl">[% l('Search the Catalogue') %]</span> -->
38
39 <a href="[% mkurl(ctx.opac_root _ '/advanced', {}, ['query']) %]"
40 id="home_adv_search_link"><span
41 class="adv_search_font">[% l('Advanced Search') %]</span></a>
42
43 [%- IF (is_advanced AND NOT is_special) AND CGI.param('qtype') %]
44 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="[% mkurl(ctx.opac_root _ '/advanced') %]">[%
45 l('<b>Refine Your Original Search</b>')
46 %]</a>
47 [%- END %]
48 </div>
49
3c1f1b58
MB
50 [% IF ctx.bookbag %]
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') %]
56 </label>
57 </div>
58 [% END %]
59 [% IF is_advanced || is_special %]
60 <div>
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" />
64 [% END %]
65 </div>
66 [%- END %]
67 [% UNLESS took_care_of_form %]</form>[% END %]
68 <!--
69 <div id="breadcrumb">
70 <a href="[% ctx.opac_root %]/home">[% l('Catalogue Home') %]</a> &gt;
71 </div>
72 -->
73 <div class="clear-both"></div>
74</div>