Lines 331-343
if ( $template_type eq 'advsearch' ) {
Link Here
|
331 |
my $languages_limit_loop = getAllLanguages(); |
331 |
my $languages_limit_loop = getAllLanguages(); |
332 |
$template->param(search_languages_loop => $languages_limit_loop,); |
332 |
$template->param(search_languages_loop => $languages_limit_loop,); |
333 |
|
333 |
|
334 |
# use the global setting by default |
334 |
# Expanded search options in advanced search: |
335 |
if ( C4::Context->preference("expandedSearchOption") == 1) { |
335 |
# use the global setting by default, but let the user override it |
336 |
$template->param( expanded_options => C4::Context->preference("expandedSearchOption") ); |
336 |
{ |
337 |
} |
337 |
my $expanded = $cgi->param('expanded_options'); |
338 |
# but let the user override it |
338 |
$expanded = C4::Context->preference("expandedSearchOption") || 0 |
339 |
if ( ($cgi->param('expanded_options') == 0) || ($cgi->param('expanded_options') == 1 ) ) { |
339 |
if !defined($expanded) || $expanded !~ /^0|1$/; |
340 |
$template->param( expanded_options => $cgi->param('expanded_options')); |
340 |
$template->param( expanded_options => $expanded ); |
341 |
} |
341 |
} |
342 |
|
342 |
|
343 |
$template->param(virtualshelves => C4::Context->preference("virtualshelves")); |
343 |
$template->param(virtualshelves => C4::Context->preference("virtualshelves")); |
344 |
- |
|
|