Removing call to a 3.2 function
This commit is contained in:
parent
4111998c76
commit
60549d6584
1 changed files with 1 additions and 5 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue