|
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 |
weight_search => scalar $cgi->param('weight_search'), |
| 283 |
weight_search_submitted => scalar $cgi->param('weight_search_submitted'), |
| 281 |
); |
284 |
); |
| 282 |
|
285 |
|
| 283 |
# determine what to display next to the search boxes |
286 |
# determine what to display next to the search boxes |
|
Lines 340-345
if ( $template_type eq 'advsearch' ) {
Link Here
|
| 340 |
{ |
343 |
{ |
| 341 |
$expanded = C4::Context->preference("expandedSearchOption") || 0 |
344 |
$expanded = C4::Context->preference("expandedSearchOption") || 0 |
| 342 |
if !defined($expanded) || $expanded !~ /^0|1$/; |
345 |
if !defined($expanded) || $expanded !~ /^0|1$/; |
|
|
346 |
$expanded = 1 |
| 347 |
if ( $cgi->param('whole_record') |
| 348 |
|| $cgi->param('weight_search') |
| 349 |
|| $cgi->param('weight_search_submitted') ); |
| 343 |
$template->param( expanded_options => $expanded ); |
350 |
$template->param( expanded_options => $expanded ); |
| 344 |
} |
351 |
} |
| 345 |
|
352 |
|
|
Lines 740-751
$template->param(
Link Here
|
| 740 |
$template->param( |
747 |
$template->param( |
| 741 |
|
748 |
|
| 742 |
#classlist => $classlist, |
749 |
#classlist => $classlist, |
| 743 |
total => $total, |
750 |
total => $total, |
| 744 |
opacfacets => 1, |
751 |
opacfacets => 1, |
| 745 |
facets_loop => $facets, |
752 |
facets_loop => $facets, |
| 746 |
displayFacetCount => C4::Context->preference('displayFacetCount') || 0, |
753 |
displayFacetCount => C4::Context->preference('displayFacetCount') || 0, |
| 747 |
scan => $scan, |
754 |
scan => $scan, |
| 748 |
search_error => $error, |
755 |
search_error => $error, |
|
|
756 |
weight_search => $weight_search, |
| 757 |
weight_search_submitted => $params->{'weight_search_submitted'}, |
| 758 |
whole_record => $whole_record, |
| 749 |
); |
759 |
); |
| 750 |
|
760 |
|
| 751 |
if ( $query_desc || $limit_desc ) { |
761 |
if ( $query_desc || $limit_desc ) { |