--- /dev/null
+<form action="[% ctx.opac_root %]/results" method="get">
+ <div class="header_middle">[% l("Numeric Search") %]</div>
+ <input type="hidden" name="contains" value="contains" />
+ <input type="hidden" name="_special" value="1" />
+ <div id='adv_numeric_block'>
+ <label for="numeric_qtype"><strong>[% l("Field:") %]</strong></label>
+ <select id="numeric_qtype" name="qtype">
+ <!-- TODO: Pull labels from config.metabib_field.label -->
+ <option value="identifier|isbn">[% l('ISBN') %]</option>
+ <option value="identifier|issn">[% l('ISSN') %]</option>
+ <option value="cnbrowse">[% l('Call Number (Shelf Browse)') %]</option>
+ <option value="identifier|lccn">[% l('LCCN') %]</option>
+ <option value="identifier|tcn">[% l('TCN') %]</option>
+ <option value="item_barcode">[% l('Item Barcode') %]</option>
+ </select>
+
+ <input type="text" name="query" size="16" autofocus placeholder='[% l("Identifier") %]' />
+ <br/>
+ [%- lib_select_id="numeric_search_library" -%]
+ <label for="[% lib_select_id %]"><strong>[% l("Search Library:") %]</strong>
+ [% PROCESS "opac/parts/org_selector.tt2";
+ INCLUDE build_org_selector id=lib_select_id show_loc_groups=1
+ %]
+ </label>
+ <br/>
+ <input type="submit" alt="[% l('Search') %]"
+ value="[% l('Search') %]" class="opac-button" />
+ </div>
+</form>
--- /dev/null
+[% query_types = [
+ {value => "keyword", label => l("Keyword")},
+ {value => "title", label => l("Title"), plural_label => l("Titles"), browse => 1},
+ {value => "jtitle", label => l("Journal Title")},
+ {value => "author", label => l("Author"), plural_label => l("Authors"), browse => 1},
+ {value => "subject", label => l("Subject"), plural_label => l("Subjects"), browse => 1},
+ {value => "series", label => l("Series"), plural_label => l("Series"), browse => 1}
+] %]
+<select name="[% name || 'qtype' %]"[% IF id; ' id="'; id ; '"' ; END -%]
+ title="[% l('Select query type:') %]">
+ [% query_type = query_type || CGI.param('qtype') || search.default_qtypes.0;
+ FOR qt IN query_types;
+ NEXT IF browse_only AND NOT qt.browse -%]
+ <option value='[% qt.value | html %]'[%
+ query_type == qt.value ? ' selected="selected"' : ''
+ %]>[% IF plural AND qt.plural_label;
+ qt.plural_label | html;
+ ELSE;
+ qt.label | html;
+ END %]</option>
+ [% END -%]
+</select>