[Koha-patches] [PATCH] Bug 3322: Fixes expandedSearchOption in opac. Makes "fewer options" possible.
Garry Collum
gcollum at gmail.com
Wed Jul 15 04:16:27 CEST 2009
Copies the logic of catalogue/search.pl to fix the expanded search option in opac. When expanded search is the default, it was impossible to go to the "fewer" options.
---
opac/opac-search.pl | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/opac/opac-search.pl b/opac/opac-search.pl
index e1e66a9..f22cb23 100755
--- a/opac/opac-search.pl
+++ b/opac/opac-search.pl
@@ -230,11 +230,11 @@ if ( $template_type && $template_type eq 'advsearch' ) {
search_boxes_loop => \@search_boxes_array);
# use the global setting by default
- if ( C4::Context->preference("expandedSearchOption") ) {
+ if ( C4::Context->preference("expandedSearchOption") == 1 ) {
$template->param( expanded_options => C4::Context->preference("expandedSearchOption") );
}
# but let the user override it
- if ( $cgi->param("expanded_options") && (($cgi->param('expanded_options') == 0) || ($cgi->param('expanded_options') == 1 )) ) {
+ if ( ($cgi->param('expanded_options') == 0) || ($cgi->param('expanded_options') == 1 ) ) {
$template->param( expanded_options => $cgi->param('expanded_options'));
}
--
1.5.6.5
More information about the Koha-patches
mailing list