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

(-)a/opac/opac-ISBDdetail.pl (-2 / +2 lines)
Lines 179-189 my $res = GetISBDView({ Link Here
179
my $items = $biblio->items;
179
my $items = $biblio->items;
180
while ( my $item = $items->next ) {
180
while ( my $item = $items->next ) {
181
181
182
    $is_available = IsAvailableForItemLevelRequest($item, $patron, $currentbranch)
182
    $is_available = IsAvailableForItemLevelRequest($item, $patron, undef)
183
      unless $is_available;
183
      unless $is_available;
184
}
184
}
185
185
186
my $canReserve = CanBookBeReserved($loggedinuser, $biblionumber, $currentbranch);
186
my $canReserve = CanBookBeReserved($loggedinuser, $biblionumber, undef);
187
if (!$loggedinuser || ($canReserve->{status} eq "OK" && $is_available)) {
187
if (!$loggedinuser || ($canReserve->{status} eq "OK" && $is_available)) {
188
    $template->param( ReservableItems => 1 );
188
    $template->param( ReservableItems => 1 );
189
}
189
}
(-)a/opac/opac-MARCdetail.pl (-2 / +2 lines)
Lines 141-151 my $is_available; Link Here
141
$items->reset;
141
$items->reset;
142
142
143
while ( my $item = $items->next ) {
143
while ( my $item = $items->next ) {
144
    $is_available = IsAvailableForItemLevelRequest($item, $patron, $currentbranch)
144
    $is_available = IsAvailableForItemLevelRequest($item, $patron, undef)
145
      unless $is_available;
145
      unless $is_available;
146
}
146
}
147
147
148
my $canReserve = CanBookBeReserved($loggedinuser, $biblionumber, $currentbranch);
148
my $canReserve = CanBookBeReserved($loggedinuser, $biblionumber, undef);
149
if (!$loggedinuser || ($canReserve->{status} eq "OK" && $is_available)) {
149
if (!$loggedinuser || ($canReserve->{status} eq "OK" && $is_available)) {
150
    $template->param( ReservableItems => 1 );
150
    $template->param( ReservableItems => 1 );
151
}
151
}
(-)a/opac/opac-detail.pl (-3 / +2 lines)
Lines 682-688 else { Link Here
682
        $item_info->{holding_library_info} = $opac_info_holding->content if $opac_info_holding;
682
        $item_info->{holding_library_info} = $opac_info_holding->content if $opac_info_holding;
683
        $item_info->{home_library_info} = $opac_info_home->content if $opac_info_home;
683
        $item_info->{home_library_info} = $opac_info_home->content if $opac_info_home;
684
684
685
        $is_available = IsAvailableForItemLevelRequest($item, $patron, $currentbranch)
685
        $is_available = IsAvailableForItemLevelRequest($item, $patron, undef)
686
          unless $is_available;
686
          unless $is_available;
687
687
688
        # get collection code description, too
688
        # get collection code description, too
Lines 759-765 else { Link Here
759
    }
759
    }
760
}
760
}
761
761
762
my $canReserve = CanBookBeReserved($borrowernumber, $biblionumber, $currentbranch);
762
my $canReserve = CanBookBeReserved($borrowernumber, $biblionumber, undef);
763
if (!$borrowernumber || ($canReserve->{status} eq "OK" && $is_available)) {
763
if (!$borrowernumber || ($canReserve->{status} eq "OK" && $is_available)) {
764
    $template->param( ReservableItems => 1 );
764
    $template->param( ReservableItems => 1 );
765
}
765
}
766
- 

Return to bug 30556