[% contains_options = [ {value => 'contains', label => l('Contains')}, {value => 'nocontains', label => l('Does not contain')}, {value => 'phrase', label => l('Contains phrase')}, {value => 'exact', label => l('Matches exactly')} ]; contains = CGI.param('contains'); queries = CGI.param('query'); bools = CGI.param('bool') || ['and' x 3]; qtypes = CGI.param('qtype') || ['keyword' x 3]; FOR qtype IN qtypes; c = contains.shift; b = bools.shift; q = queries.shift; %] [% INCLUDE "opac/parts/qtype_selector.tt2" query_type=qtype %] [% END %]