From: senator Date: Fri, 25 Feb 2011 16:53:58 +0000 (-0500) Subject: provide three rows of search input by default X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=6a56a84d97f2c233ae246f414a17d9467085d7fd;p=evergreen%2Fequinox.git provide three rows of search input by default this better accommodates users with no JS --- diff --git a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Search.pm b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Search.pm index beb9ee92cc..e4b0741dbf 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Search.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Search.pm @@ -21,6 +21,7 @@ sub _prepare_biblio_search_basics { 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 diff --git a/Open-ILS/web/templates/default/opac/parts/advanced/global_row.tt2 b/Open-ILS/web/templates/default/opac/parts/advanced/global_row.tt2 index afa97ffeb8..2f874c92ce 100644 --- a/Open-ILS/web/templates/default/opac/parts/advanced/global_row.tt2 +++ b/Open-ILS/web/templates/default/opac/parts/advanced/global_row.tt2 @@ -1,7 +1,7 @@ [% 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; %]