3 {value => 'contains', label => l('Contains')},
4 {value => 'nocontains', label => l('Does not contain')},
5 {value => 'phrase', label => l('Contains phrase')},
6 {value => 'exact', label => l('Matches exactly')}
8 contains = CGI.param('contains');
9 queries = CGI.param('query');
10 qtypes = CGI.param('qtype') || ['keyword' x 3];
14 <tr[% IF loop.first %] id="adv_global_row"[% END %]>
15 <td align='left' width='100%' nowrap='nowrap'>
16 <span class="opac-auto-078">
17 [% INCLUDE "default/opac/parts/qtype_selector.tt2"
20 <select name='contains' style='margin-right: 7px;'>
21 [% FOR o IN contains_options;
22 |l(o.value, o.label) -%]
23 <option value="[_1]"[% c == o.value ? ' selected="selected"' : '' %]>[_2]</option>
26 <input type='text' size='18' name='query' value="[% q | html %]" />
27 <a href="javascript:;" class="row-remover"
28 title="[% l('Remove row') %]" alt="[% l('Remove row') %]"
29 onclick='var row = this.parentNode.parentNode;var tbody = row.parentNode; if( tbody.getElementsByTagName("tr").length > 2 ) row.parentNode.removeChild(row);'><img src="[% ctx.media_prefix %]/images/adv_row_close_btn.png" /></a>