@@ -, +, @@ CanBookBeReserved --- opac/opac-ISBDdetail.pl | 4 ++-- opac/opac-MARCdetail.pl | 4 ++-- opac/opac-detail.pl | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) --- a/opac/opac-ISBDdetail.pl +++ a/opac/opac-ISBDdetail.pl @@ -179,11 +179,11 @@ my $res = GetISBDView({ my $items = $biblio->items; while ( my $item = $items->next ) { - $is_available = IsAvailableForItemLevelRequest($item, $patron, $currentbranch) + $is_available = IsAvailableForItemLevelRequest($item, $patron, undef) unless $is_available; } -my $canReserve = CanBookBeReserved($loggedinuser, $biblionumber, $currentbranch); +my $canReserve = CanBookBeReserved($loggedinuser, $biblionumber, undef); if (!$loggedinuser || ($canReserve->{status} eq "OK" && $is_available)) { $template->param( ReservableItems => 1 ); } --- a/opac/opac-MARCdetail.pl +++ a/opac/opac-MARCdetail.pl @@ -141,11 +141,11 @@ my $is_available; $items->reset; while ( my $item = $items->next ) { - $is_available = IsAvailableForItemLevelRequest($item, $patron, $currentbranch) + $is_available = IsAvailableForItemLevelRequest($item, $patron, undef) unless $is_available; } -my $canReserve = CanBookBeReserved($loggedinuser, $biblionumber, $currentbranch); +my $canReserve = CanBookBeReserved($loggedinuser, $biblionumber, undef); if (!$loggedinuser || ($canReserve->{status} eq "OK" && $is_available)) { $template->param( ReservableItems => 1 ); } --- a/opac/opac-detail.pl +++ a/opac/opac-detail.pl @@ -682,7 +682,7 @@ else { $item_info->{holding_library_info} = $opac_info_holding->content if $opac_info_holding; $item_info->{home_library_info} = $opac_info_home->content if $opac_info_home; - $is_available = IsAvailableForItemLevelRequest($item, $patron, $currentbranch) + $is_available = IsAvailableForItemLevelRequest($item, $patron, undef) unless $is_available; # get collection code description, too @@ -759,7 +759,7 @@ else { } } -my $canReserve = CanBookBeReserved($borrowernumber, $biblionumber, $currentbranch); +my $canReserve = CanBookBeReserved($borrowernumber, $biblionumber, undef); if (!$borrowernumber || ($canReserve->{status} eq "OK" && $is_available)) { $template->param( ReservableItems => 1 ); } --