]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/templates/opac/parts/searchbar.tt2
TPAC: Fix searchbar typo by closing div
[working/Evergreen.git] / Open-ILS / src / templates / opac / parts / searchbar.tt2
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     <div>
7         <span class="search_catalog_lbl">[% l('Search the Catalog') %]</span>
8         <a href="[% mkurl(ctx.opac_root _ '/advanced') %]"
9             id="home_adv_search_link"><span
10             class="adv_search_font">[% l('Advanced Search') %]</span></a>
11     </div>
12     <div style="font-weight: bold">[%- l('Search ');
13         INCLUDE "opac/parts/coded_value_selector.tt2"
14             attr=["mattype", "item_type"] none_ok=1 none_label=l('All Formats');
15             l(' for ');
16         %]
17         <span class='search_box_wrapper'>
18             <input type="text" id="search_box" name="query" value="[% is_advanced ? ctx.processed_search_query : CGI.param('query') || l("Search Keyword") | html %]"
19                 onfocus="if (this.value=='[% l("Search Keyword") %]'){this.value='';this.style.color='#000';}"
20                 onblur="if (this.value==''){this.value='[% l("Search Keyword") %]';this.style.color='#999';}"
21                 x-webkit-speech />
22         </span>
23         [%- INCLUDE "opac/parts/qtype_selector.tt2";
24             l(' in '); PROCESS build_org_selector name='loc' value=CGI.param('loc');
25     %]
26     <span>
27         <input id='search-submit-go' type="submit" value="[% l('Search') %]" alt="[% l('Search') %]" class="opac-button"
28             onclick='setTimeout(function(){$("search-submit-spinner").className=""; $("search-submit-go").className="hidden"}, 2000)'/>
29         <img id='search-submit-spinner' src='/opac/images/progressbar_green.gif' style='height:16px;width:16px;' class='hidden' alt=''/>
30     </span>
31     </div>
32     [% IF is_advanced || is_special %]
33     <div>
34         <input type="hidden" name="_adv" value="1" />
35         [% IF ctx.processed_search_query OR (NOT is_advanced AND NOT is_special) %]
36         <input name='page' type='hidden' value="0" />
37         [% END %]
38     </div>
39     [%- END %]
40     [% UNLESS took_care_of_form %]</form>[% END %]
41     [% IF (is_advanced AND NOT is_special) AND CGI.param('qtype') %]
42     <div class="opac-auto-102">
43         [ <a href="[% mkurl(ctx.opac_root _ '/advanced') %]">[%
44             l('Click to Refine Your Original Search')
45         %]</a> ]
46     </div>
47     [% END %]
48     <!--
49     <div id="breadcrumb">
50         <a href="[% ctx.opac_root %]/home">[% l('Catalog Home') %]</a> &gt;
51     </div>
52     -->
53     <div class="clear-both"></div>
54 </div>