1 <form action="[% ctx.opac_root %]/results" method="GET">
2 <table id='adv_global_search' class='data_grid data_grid_center' width='100%'>
3 <tr style='border-bottom: none;'>
4 <!-- Contains the user-addable(?) rows to define search class, containment and text -->
5 <td valign='top' class='adv_global_input_container'>
6 <table width='100%' id='adv_global_input_table'>
10 <div style="width:100%;" class="header_middle">
11 [% l("Search Input") %]
16 <tbody id='adv_global_tbody'>
17 [% INCLUDE "opac/parts/advanced/global_row.tt2" %]
18 <!-- add a new row -->
19 <tr id='adv_global_addrow'>
20 <td align='left' style="padding-top:7px;">
21 <a href="javascript:;" id="myopac_new_global_row" onclick='addSearchRow();'>[% l('Add Search Row') %]</a>
30 <div style="width:100%;" class="header_middle">[% l('Search Filters') %]</div>
31 <table cellpadding='10' cellspacing='0' border='0'><tr>
33 <strong>[% l("Item Type") %]</strong><br />
34 [% INCLUDE "opac/parts/coded_value_selector.tt2"
35 attr=["mattype", "item_type"] multiple="multiple" size="4" %]
38 <strong>[% l("Language") %]</strong><br />
39 [% INCLUDE "opac/parts/coded_value_selector.tt2"
40 attr="item_lang" multiple="multiple" size="4" %]
43 <strong>[% l("Audience") %]</strong><br />
44 [% INCLUDE "opac/parts/coded_value_selector.tt2"
45 attr=["audience_group", "audience"] multiple="multiple" size="4" %]
49 <strong>[% l("Sort Results") %]</strong>
50 <table class='adv_global_filter_sort'>
52 <td align='center' width='100%'>
53 [% INCLUDE "opac/parts/filtersort.tt2"
54 value=CGI.param('sort') class='results_header_sel' %]
64 <table cellpadding='10' cellspacing='0' border='0'>
68 <strong>[% l("Search Library") %]</strong><br />
69 [% PROCESS "opac/parts/org_selector.tt2";
70 PROCESS build_org_selector name='loc' value=CGI.param('loc') %]
71 <div style="position:relative;top:7px;">
72 <input type='checkbox' name="modifier"
73 value="available"[% CGI.param('modifier').grep('available').size ? ' checked="checked"' : '' %]
74 id='opac.result.limit2avail' />
75 <label style="position:relative;top:-2px;"
76 for='opac.result.limit2avail'>
77 [% l("Limit to Available") %]</label>
81 <strong>[% l("Publication Year") %]</strong><br />
82 <select name='pubdate' onchange='
83 if(this.selectedIndex == 3)
84 unHideMe($("adv_global_pub_date_2_span"));
86 hideMe($("adv_global_pub_date_2_span"));'>
88 {"code" => "is", "label" => l("Is")},
89 {"code" => "before", "label" => l("Before")},
90 {"code" => "after", "label" => l("After")},
91 {"code" => "between", "label" => l("Between")} ] %]
92 <option value="[% opt.code %]"[% CGI.param('pubdate') == opt.code ? ' selected="selected"' : '' %]>[% opt.label | html %]</option>
95 <div style='margin-top:5px;'>
96 <input name='date1' type='text' size='4' maxlength='4' value="[% CGI.param('date1') | html %]" />
97 <span id='adv_global_pub_date_2_span' class='[% CGI.param("pubdate") == "between" ? "" : "hide_me" %]'>
98 [% l("and") %] <input name='date2' type='text' size='4' maxlength='4' value="[% CGI.param('date2') | html %]" />
103 <!-- TODO: Copy Location Filter -->
105 <td align='right'>[% l("Shelving Location") %]</td>
107 <select size='3' multiple='multiple'>
108 [%# TODO: add filter options... %]
116 <tr class='border_4_2'>
117 <td align="left" colspan='2'>
119 value="[% l('Search') %]"
120 class='pointer opac-button' />
121
123 value="[% l('Reset form') %]"
124 class="opac-button" />
128 <input type="hidden" name="_adv" value="1" />