Further update to allow notforloan < 0 items to be placed on hold. This is a workarou...
authorRyan Higgins <rch@liblime.com>
Thu, 10 Jul 2008 20:38:28 +0000 (16:38 -0400)
committerJoshua Ferraro <jmf@liblime.com>
Thu, 10 Jul 2008 20:40:06 +0000 (15:40 -0500)
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
C4/Reserves.pm

index cc20485..353b51b 100644 (file)
@@ -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;