Lines 141-148
if ($session->param('busc')) {
Link Here
|
141 |
my @servers; |
141 |
my @servers; |
142 |
@servers = @{$arrParamsBusc->{'server'}} if $arrParamsBusc->{'server'}; |
142 |
@servers = @{$arrParamsBusc->{'server'}} if $arrParamsBusc->{'server'}; |
143 |
@servers = ("biblioserver") unless (@servers); |
143 |
@servers = ("biblioserver") unless (@servers); |
144 |
my $default_sort_by = C4::Context->preference('OPACdefaultSortField')."_".C4::Context->preference('OPACdefaultSortOrder') if (C4::Context->preference('OPACdefaultSortField') && C4::Context->preference('OPACdefaultSortOrder')); |
144 |
|
145 |
my @sort_by = @{$arrParamsBusc->{'sort_by'}} if $arrParamsBusc->{'sort_by'}; |
145 |
my ($default_sort_by, @sort_by); |
|
|
146 |
$default_sort_by = C4::Context->preference('OPACdefaultSortField')."_".C4::Context->preference('OPACdefaultSortOrder') if (C4::Context->preference('OPACdefaultSortField') && C4::Context->preference('OPACdefaultSortOrder')); |
147 |
@sort_by = @{$arrParamsBusc->{'sort_by'}} if $arrParamsBusc->{'sort_by'}; |
146 |
$sort_by[0] = $default_sort_by if !$sort_by[0] && defined($default_sort_by); |
148 |
$sort_by[0] = $default_sort_by if !$sort_by[0] && defined($default_sort_by); |
147 |
my ($error, $results_hashref, $facets); |
149 |
my ($error, $results_hashref, $facets); |
148 |
eval { |
150 |
eval { |
Lines 419-425
my @items;
Link Here
|
419 |
my @hiddenitems = GetHiddenItemnumbers(@all_items); |
421 |
my @hiddenitems = GetHiddenItemnumbers(@all_items); |
420 |
|
422 |
|
421 |
# Are there items to hide? |
423 |
# Are there items to hide? |
422 |
my $hideitems = 1 if C4::Context->preference('hidelostitems') or scalar(@hiddenitems) > 0; |
424 |
my $hideitems; |
|
|
425 |
$hideitems = 1 if C4::Context->preference('hidelostitems') or scalar(@hiddenitems) > 0; |
423 |
|
426 |
|
424 |
# Hide items |
427 |
# Hide items |
425 |
if ($hideitems) { |
428 |
if ($hideitems) { |