From 60549d65844369cc03a48905f80b11e3ef2db911 Mon Sep 17 00:00:00 2001 From: Henri-Damien LAURENT Date: Mon, 21 Sep 2009 16:31:43 +0200 Subject: [PATCH] Removing call to a 3.2 function --- opac/opac-reserve.pl | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/opac/opac-reserve.pl b/opac/opac-reserve.pl index 5a4af1da33..ad895f6767 100755 --- a/opac/opac-reserve.pl +++ b/opac/opac-reserve.pl @@ -330,13 +330,9 @@ foreach my $biblioitemnumber (@biblioitemnumbers) { # If there is no loan, return and transfer, we show a checkbox. $item->{notforloan} = $item->{notforloan} || 0; - my $branchitemrule = GetBranchItemRule( $item->{'homebranch'}, $item->{'itype'} ); + my $branchitemrule = C4::Context->preference("RequestOnOpac"); my $policy_holdallowed = 1; - if ( $branchitemrule->{'holdallowed'} == 0 || - ( $branchitemrule->{'holdallowed'} == 1 && $borr->{'branchcode'} ne $item->{'homebranch'} ) ) { - $policy_holdallowed = 0; - } if (IsAvailableForItemLevelRequest($itemnumber) and $policy_holdallowed) { $item->{available} = 1; -- 2.39.5