1 <div class="sub_sidebar_header">[% l('New Search') %]</div>
2 <form action="[% ctx.kpac_root _ '/results' %]">
3 <div class="sub_sidebar_search_wrapper">
4 <input type="text" name='query'
5 value="[% CGI.param('nosprop') ? '' : CGI.param('query') | html %]"
6 [% seed = l(' Enter Text... ') | html %]
7 class="sub_sidebar_search_box" style="color:#aaa;" placeholder="[% seed %]" />
9 <table cellpadding="0" cellspacing="0" border="0" class="sub_sidebar_search_st">
13 {keyword => l('Word')},
14 {title => l('Title')},
15 {author => l('Author')}
17 FOR qtype_blob IN types;
18 qtype = qtype_blob.keys.0 %]
19 <td class="st_radio_btn">
20 <input type="radio" name="qtype" value="[% qtype %]" id="st_[% qtype %]"
21 [% IF (CGI.param('qtype') == qtype) OR
22 (!CGI.param('qtype') AND qtype == 'keyword') %]checked="checked"[% END %]/>
24 <td class="st_label"><label for="st_[% qtype %]">[% qtype_blob.$qtype | html %]</label></td>
26 <td class="st_radio_spacer"><div> </div></td>
31 <div class="hr"> </div>
32 <div class="sub_search_category">
33 <span>[% ctx.filter_groups.kpac.label %]<span>
36 INCLUDE 'opac/parts/filter_group_selector.tt2'
37 filter_group='kpac_main'
38 class='search_category'
39 none_label=l('Full Collection')
44 <div class="hr"> </div>
46 <input type="image" alt="[% l('search') %]" src="[% ctx.media_prefix %]/images/kpac/search_btn_sub.png[% ctx.cache_key %]" />
50 [% IF ctx.search_summary.suggestions.one_class_multi_term %]
51 <div class="result_block_visible refine_search" id="did_you_mean">
52 <em><strong>[% s_list = ctx.search_summary.suggestions.one_class_multi_term; l('Did you mean: ') %]</strong></em><ul class="suggestion refine_search">
53 [% FOREACH s IN s_list.suggestions %]
54 <li class="suggestion refine_search">
55 <a href="[% mkurl(ctx.opac_root _ '/results', {qtype=>s_list.class, query=>s.suggestion}) %]">[% s.prefix_key || s.suggestion | html %]</a>