Bug 3322: Fixes expandedSearchOption in opac. Makes "fewer options" possible.
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. Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
This commit is contained in:
parent
2091a99e73
commit
700f039384
1 changed files with 2 additions and 2 deletions
|
@ -214,11 +214,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'));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue