Permalink
Browse files

[#23030301, #23030217] (fixup) Cannot reserve reserved on-shelf items

If there was a copy of a title still on the shelf (having not
yet been picked for a pending reserve), a patron in the branch
could place a reserve on the title. This work turns that around
such that the patron is blocked with a message that the item is
available on the shelf.
  • Loading branch information...
ctfliblime committed Jan 25, 2012
1 parent 83660d8 commit af74771b5abc8664677b2592da9ae8784d0caf4b
Showing with 2 additions and 1 deletion.
  1. +2 −1 cgi/opac/opac-reserve.pl
View
@@ -690,10 +690,11 @@ sub BranchHasACopy {
return first {
$_->{holdingbranch} ~~ $branchcode
- && ! $_->{active_reserve_count}
&& ! $_->{damaged}
&& ! $_->{itemlost}
&& ! $_->{otherstatus}
&& ! C4::Circulation::GetTransfers($_->{itemnumber})
+ && !( $_->{active_reserve_count}
+ && C4::Reserves::GetReservesFromItemnumber($_->{itemnumber}))
} @{$record->{itemInfos}};
}

0 comments on commit af74771

Please sign in to comment.