|
Lines 77-83
$biblionumber = int($biblionumber);
Link Here
|
| 77 |
##>> Handling the Serial issue filter parameters from the user |
77 |
##>> Handling the Serial issue filter parameters from the user |
| 78 |
## |
78 |
## |
| 79 |
# We can filter issues based on these five values. |
79 |
# We can filter issues based on these five values. |
| 80 |
my $filterBranchLimiter = $query->param('filterBranchLimiter') ? $query->param('filterBranchLimiter') : undef; |
80 |
my $filterBranchLimiter = $query->param('filterBranchLimiter') ? $query->param('filterBranchLimiter') : '_ShowAll'; |
| 81 |
my $filterVolume = $query->param('filterVolume') ? $query->param('filterVolume') : undef; |
81 |
my $filterVolume = $query->param('filterVolume') ? $query->param('filterVolume') : undef; |
| 82 |
my $filterNumber = $query->param('filterNumber') ? $query->param('filterNumber') : undef; |
82 |
my $filterNumber = $query->param('filterNumber') ? $query->param('filterNumber') : undef; |
| 83 |
my $filterIssue = $query->param('filterIssue') ? $query->param('filterIssue') : undef; |
83 |
my $filterIssue = $query->param('filterIssue') ? $query->param('filterIssue') : undef; |
|
Lines 306-312
if ($session->param('busc')) {
Link Here
|
| 306 |
|
306 |
|
| 307 |
my $expanded_facet = $arrParamsBusc->{'expand'}; |
307 |
my $expanded_facet = $arrParamsBusc->{'expand'}; |
| 308 |
my $branches = GetBranches(); |
308 |
my $branches = GetBranches(); |
| 309 |
my $itemtypes = GetItemTypes; |
|
|
| 310 |
my @servers; |
309 |
my @servers; |
| 311 |
@servers = @{$arrParamsBusc->{'server'}} if $arrParamsBusc->{'server'}; |
310 |
@servers = @{$arrParamsBusc->{'server'}} if $arrParamsBusc->{'server'}; |
| 312 |
@servers = ("biblioserver") unless (@servers); |
311 |
@servers = ("biblioserver") unless (@servers); |
|
Lines 317-323
if ($session->param('busc')) {
Link Here
|
| 317 |
$sort_by[0] = $default_sort_by if !$sort_by[0] && defined($default_sort_by); |
316 |
$sort_by[0] = $default_sort_by if !$sort_by[0] && defined($default_sort_by); |
| 318 |
my ($error, $results_hashref, $facets); |
317 |
my ($error, $results_hashref, $facets); |
| 319 |
eval { |
318 |
eval { |
| 320 |
($error, $results_hashref, $facets) = getRecords($arrParamsBusc->{'query'},$arrParamsBusc->{'simple_query'},\@sort_by,\@servers,$results_per_page,$offset,$expanded_facet,$branches,$itemtypes,$arrParamsBusc->{'query_type'},$arrParamsBusc->{'scan'}); |
319 |
($error, $results_hashref, $facets) = getRecords($arrParamsBusc->{'query'},$arrParamsBusc->{'simple_query'},\@sort_by,\@servers,$results_per_page,$offset,$expanded_facet,$branches,$arrParamsBusc->{'query_type'},$arrParamsBusc->{'scan'}); |
| 321 |
}; |
320 |
}; |
| 322 |
my $hits; |
321 |
my $hits; |
| 323 |
my @newresults; |
322 |
my @newresults; |
|
Lines 705-711
if ( $show_holds_count || $show_priority) {
Link Here
|
| 705 |
} |
704 |
} |
| 706 |
$template->param( show_priority => $has_hold ) ; |
705 |
$template->param( show_priority => $has_hold ) ; |
| 707 |
|
706 |
|
| 708 |
my $norequests = 1; |
707 |
my $norequests = 1; #"No requests"-flag hides the "Place hold"-link in opac-detail-sidebar.inc |
| 709 |
my %itemfields; |
708 |
my %itemfields; |
| 710 |
my (@itemloop, @otheritemloop); |
709 |
my (@itemloop, @otheritemloop); |
| 711 |
my $currentbranch = C4::Context->userenv ? C4::Context->userenv->{branch} : undef; |
710 |
my $currentbranch = C4::Context->userenv ? C4::Context->userenv->{branch} : undef; |
|
Lines 770-775
for my $itm (@items) {
Link Here
|
| 770 |
} |
769 |
} |
| 771 |
} |
770 |
} |
| 772 |
|
771 |
|
|
|
772 |
#There is no point in enabling "Place hold" for Serials. |
| 773 |
# Placing a title-level hold for a Serial is crazy since we don't want "any" item but instead the specific volume and number. |
| 774 |
# Also choosing an item-level hold from opac-reserve.pl is problematic since there could be thousands of items. |
| 775 |
$norequests = 1 if $template->{VARS}->{'isSerial'}; |
| 776 |
|
| 773 |
# Display only one tab if one items list is empty |
777 |
# Display only one tab if one items list is empty |
| 774 |
if (scalar(@itemloop) == 0 || scalar(@otheritemloop) == 0) { |
778 |
if (scalar(@itemloop) == 0 || scalar(@otheritemloop) == 0) { |
| 775 |
$template->param(SeparateHoldings => 0); |
779 |
$template->param(SeparateHoldings => 0); |
|
Lines 1224-1227
if ( length C4::Context->preference('NumberingFormulaParsingRegexp') < 3 ) {
Link Here
|
| 1224 |
} |
1228 |
} |
| 1225 |
$template->{VARS}->{useFilterIssueInput} = 1 if (C4::Context->preference('FilterSerialsByIssue')); |
1229 |
$template->{VARS}->{useFilterIssueInput} = 1 if (C4::Context->preference('FilterSerialsByIssue')); |
| 1226 |
|
1230 |
|
|
|
1231 |
$template->param('OPACShowPlaceItemLevelHold', C4::Context->preference('OPACShowPlaceItemLevelHold')); |
| 1232 |
|
| 1227 |
output_html_with_http_headers $query, $cookie, $template->output; |
1233 |
output_html_with_http_headers $query, $cookie, $template->output; |