]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/templates/opac/parts/qtype_selector.tt2
LP#1074096: Remove Bib Call Number from query type selector
[working/Evergreen.git] / Open-ILS / src / templates / opac / parts / qtype_selector.tt2
1 [%  query_types = [
2     {value => "keyword", label => l("Keyword")},
3     {value => "title", label => l("Title"), plural_label => l("Titles"), browse => 1},
4     {value => "jtitle", label => l("Journal Title")},
5     {value => "author", label => l("Author"), plural_label => l("Authors"), browse => 1},
6     {value => "subject", label => l("Subject"), plural_label => l("Subjects"), browse => 1},
7     {value => "series", label => l("Series"), plural_label => l("Series"), browse => 1}
8 ] %]
9 <select name="[% name || 'qtype' %]"[% IF id; ' id="'; id ; '"' ; END -%]
10     title="[% l('Select query type:') %]">
11     [%  query_type = query_type || CGI.param('qtype') || search.default_qtypes.0;
12       FOR qt IN query_types;
13         NEXT IF browse_only AND NOT qt.browse -%]
14     <option value='[% qt.value | html %]'[%
15         query_type == qt.value ? ' selected="selected"' : ''
16     %]>[% IF plural AND qt.plural_label;
17         qt.plural_label | html;
18     ELSE;
19         qt.label | html;
20     END %]</option>
21     [% END -%]
22 </select>