From 87a8103c488961a8508f9b5b32fa165bc47301e5 Mon Sep 17 00:00:00 2001 From: Ryan Higgins Date: Thu, 10 Jul 2008 16:38:28 -0400 Subject: [PATCH] Further update to allow notforloan < 0 items to be placed on hold. This is a workaround for the lack of a notforhold flag. Signed-off-by: Joshua Ferraro --- C4/Reserves.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/C4/Reserves.pm b/C4/Reserves.pm index cc20485870..353b51b83d 100644 --- a/C4/Reserves.pm +++ b/C4/Reserves.pm @@ -1091,7 +1091,7 @@ item-level hold request. An item is available if * it is not lost AND * it is not damaged AND * it is not withdrawn AND -* it is not marked as not for loan +* does not have a not for loan value > 0 Whether or not the item is currently on loan is also checked - if the AllowOnShelfHolds system preference @@ -1140,7 +1140,7 @@ sub IsAvailableForItemLevelRequest { my $available_per_item = 1; $available_per_item = 0 if $item->{itemlost} or - $item->{notforloan} or + ( $item->{notforloan} > 0 ) or ($item->{damaged} and not C4::Context->preference('AllowHoldsOnDamagedItems')) or $item->{wthdrawn} or $notforloan_per_itemtype; -- 2.39.5