Lines 389-394
my $numBibsAvailable = 0;
Link Here
|
389 |
my $itemdata_enumchron = 0; |
389 |
my $itemdata_enumchron = 0; |
390 |
my $anyholdable = 0; |
390 |
my $anyholdable = 0; |
391 |
my $itemLevelTypes = C4::Context->preference('item-level_itypes'); |
391 |
my $itemLevelTypes = C4::Context->preference('item-level_itypes'); |
|
|
392 |
my $pickup_locations = Koha::Libraries->search({ pickup_location => 1 }); |
392 |
$template->param('item_level_itypes' => $itemLevelTypes); |
393 |
$template->param('item_level_itypes' => $itemLevelTypes); |
393 |
|
394 |
|
394 |
foreach my $biblioNum (@biblionumbers) { |
395 |
foreach my $biblioNum (@biblionumbers) { |
Lines 585-591
foreach my $biblioNum (@biblionumbers) {
Link Here
|
585 |
} |
586 |
} |
586 |
} |
587 |
} |
587 |
|
588 |
|
588 |
$biblioLoopIter{holdable} &&= CanBookBeReserved($borrowernumber,$biblioNum,$branch) eq 'OK'; |
589 |
$biblioLoopIter{holdable} &&= CanBookBeReserved($borrowernumber,$biblioNum) eq 'OK'; |
589 |
|
590 |
|
590 |
# For multiple holds per record, if a patron has previously placed a hold, |
591 |
# For multiple holds per record, if a patron has previously placed a hold, |
591 |
# the patron can only place more holds of the same type. That is, if the |
592 |
# the patron can only place more holds of the same type. That is, if the |
Lines 610-615
foreach my $biblioNum (@biblionumbers) {
Link Here
|
610 |
$anyholdable = 1 if $biblioLoopIter{holdable}; |
611 |
$anyholdable = 1 if $biblioLoopIter{holdable}; |
611 |
} |
612 |
} |
612 |
|
613 |
|
|
|
614 |
unless ($pickup_locations->count) { |
615 |
$numBibsAvailable = 0; |
616 |
$anyholdable = 0; |
617 |
$template->param( |
618 |
message => 1, |
619 |
no_pickup_locations => 1 |
620 |
); |
621 |
} |
613 |
|
622 |
|
614 |
if ( $numBibsAvailable == 0 || $anyholdable == 0) { |
623 |
if ( $numBibsAvailable == 0 || $anyholdable == 0) { |
615 |
$template->param( none_available => 1 ); |
624 |
$template->param( none_available => 1 ); |
616 |
- |
|
|