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'>
34 FOR adv_chunk IN search.adv_config;
35 NEXT IF adv_chunk.adv_hide;
42 <strong>[% adv_chunk.adv_label %]</strong><br />
44 IF adv_chunk.adv_special;
45 SWITCH adv_chunk.adv_special;
47 PROCESS "opac/parts/org_selector.tt2";
48 INCLUDE build_org_selector show_loc_groups=1; %]
49 <div style="position:relative;top:7px;">
50 <input type='checkbox' name="modifier"
51 value="available"[% CGI.param('modifier').grep('available').size ? ' checked="checked"' : '' %]
52 id='opac.result.limit2avail' />
53 <label style="position:relative;top:-2px;"
54 for='opac.result.limit2avail'>
55 [% l("Limit to Available") %]</label>
59 <select name='pubdate' onchange='
60 if(this.selectedIndex == 3)
61 unHideMe($("adv_global_pub_date_2_span"));
63 hideMe($("adv_global_pub_date_2_span"));'>
65 {"code" => "is", "label" => l("Is")},
66 {"code" => "before", "label" => l("Before")},
67 {"code" => "after", "label" => l("After")},
68 {"code" => "between", "label" => l("Between")} ] %]
69 <option value="[% opt.code %]"[% CGI.param('pubdate') == opt.code ? ' selected="selected"' : '' %]>[% opt.label | html %]</option>
72 <div style='margin-top:5px;'>
73 <input name='date1' type='text' size='4' maxlength='4' value="[% CGI.param('date1') | html %]" />
74 <span id='adv_global_pub_date_2_span' class='[% CGI.param("pubdate") == "between" ? "" : "hide_me" %]'>
75 [% l("and") %] <input name='date2' type='text' size='4' maxlength='4' value="[% CGI.param('date2') | html %]" />
80 INCLUDE "opac/parts/filtersort.tt2"
81 value=CGI.param('sort') class='results_header_sel';
83 ELSIF adv_chunk.adv_attr;
84 INCLUDE "opac/parts/coded_value_selector.tt2"
85 attr=adv_chunk.adv_attr multiple="multiple" size="4";
89 IF adv_chunk.adv_break;
98 <tr class='border_4_2'>
99 <td align="left" colspan='2'>
101 value="[% l('Search') %]"
102 class='pointer opac-button' />
103
105 value="[% l('Reset form') %]"
106 class="opac-button" />
110 <input type="hidden" name="_adv" value="1" />