Bug 31307: Remove 'already_reserved' flag from opac-reserve.pl
It was never set (was set before 14695) Signed-off-by: Nick Clemens <nick@bywatersolutions.com> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
parent
d38f55795e
commit
e41cde66f0
|
|
@ -563,10 +563,9 @@ foreach my $biblioNum (@biblionumbers) {
|
|||
my $patron_unblessed = $patron->unblessed;
|
||||
my $branch = GetReservesControlBranch( $itemInfo, $patron_unblessed );
|
||||
|
||||
my $policy_holdallowed = !$itemLoopIter->{already_reserved};
|
||||
# items_any_available defined outside of the current loop,
|
||||
# so we avoiding loop inside IsAvailableForItemLevelRequest:
|
||||
$policy_holdallowed &&=
|
||||
my $policy_holdallowed =
|
||||
CanItemBeReserved( $patron, $item )->{status} eq 'OK' &&
|
||||
IsAvailableForItemLevelRequest($item, $patron, undef, $items_any_available);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue