this better accommodates users with no JS
for (my $i = 0; $i < scalar @{$parts{'qtype'}}; $i++) {
my ($qtype, $contains, $query) = map { $parts{$_}->[$i] } @part_names;
+ next unless $query =~ /\S/;
push(@chunks, $qtype . ':') unless $qtype eq 'keyword' and $i == 0;
# This stuff probably will need refined or rethought to better handle
[%
contains = CGI.param('contains');
queries = CGI.param('query');
- qtypes = CGI.param('qtype') || ['keyword'];
+ qtypes = CGI.param('qtype') || ['keyword' x 3];
FOR qtype IN qtypes;
c = contains.shift;
q = queries.shift; %]