Lines 277-283
if ( $template_type eq 'advsearch' ) {
Link Here
|
277 |
@operators = $cgi->multi_param('op'); |
277 |
@operators = $cgi->multi_param('op'); |
278 |
@indexes = $cgi->multi_param('idx'); |
278 |
@indexes = $cgi->multi_param('idx'); |
279 |
$template->param( |
279 |
$template->param( |
280 |
sort => scalar $cgi->param('sort_by'), |
280 |
sort => scalar $cgi->param('sort_by'), |
|
|
281 |
whole_record => scalar $cgi->param('whole_record'), |
282 |
weighted_fields => scalar $cgi->param('weighted_fields'), |
281 |
); |
283 |
); |
282 |
|
284 |
|
283 |
# determine what to display next to the search boxes |
285 |
# determine what to display next to the search boxes |
Lines 340-345
if ( $template_type eq 'advsearch' ) {
Link Here
|
340 |
{ |
342 |
{ |
341 |
$expanded = C4::Context->preference("expandedSearchOption") || 0 |
343 |
$expanded = C4::Context->preference("expandedSearchOption") || 0 |
342 |
if !defined($expanded) || $expanded !~ /^0|1$/; |
344 |
if !defined($expanded) || $expanded !~ /^0|1$/; |
|
|
345 |
$expanded = 1 if ( $cgi->param('whole_record') || $cgi->param('weighted_fields') ); |
343 |
$template->param( expanded_options => $expanded ); |
346 |
$template->param( expanded_options => $expanded ); |
344 |
} |
347 |
} |
345 |
|
348 |
|