View | Details | Raw Unified | Return to bug 7614
Collapse All | Expand All

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt (+5 lines)
Lines 112-117 Link Here
112
                            </li>
112
                            </li>
113
                        [% END %]
113
                        [% END %]
114
114
115
                        [% IF ( no_pickup_locations ) %]
116
                            <li id="no_pickup_locations">
117
                                None of the libraries are available for pickup location.
118
                            </li>
119
                        [% END %]
115
                    [% ELSE %]
120
                    [% ELSE %]
116
121
117
                        [% IF ( none_available && multi_hold ) %]
122
                        [% IF ( none_available && multi_hold ) %]
(-)a/opac/opac-reserve.pl (-1 / +9 lines)
Lines 385-390 my $itemdata_enumchron = 0; Link Here
385
my $itemdata_ccode = 0;
385
my $itemdata_ccode = 0;
386
my $anyholdable = 0;
386
my $anyholdable = 0;
387
my $itemLevelTypes = C4::Context->preference('item-level_itypes');
387
my $itemLevelTypes = C4::Context->preference('item-level_itypes');
388
my $pickup_locations = Koha::Libraries->search({ pickup_location => 1 });
388
$template->param('item_level_itypes' => $itemLevelTypes);
389
$template->param('item_level_itypes' => $itemLevelTypes);
389
390
390
foreach my $biblioNum (@biblionumbers) {
391
foreach my $biblioNum (@biblionumbers) {
Lines 614-619 foreach my $biblioNum (@biblionumbers) { Link Here
614
    $anyholdable = 1 if $biblioLoopIter{holdable};
615
    $anyholdable = 1 if $biblioLoopIter{holdable};
615
}
616
}
616
617
618
unless ($pickup_locations->count) {
619
    $numBibsAvailable = 0;
620
    $anyholdable = 0;
621
    $template->param(
622
        message => 1,
623
        no_pickup_locations => 1
624
    );
625
}
617
626
618
if ( $numBibsAvailable == 0 || $anyholdable == 0) {
627
if ( $numBibsAvailable == 0 || $anyholdable == 0) {
619
    $template->param( none_available => 1 );
628
    $template->param( none_available => 1 );
620
- 

Return to bug 7614