From 5630ef2a763486d24e158ba6be239d3384d6fc90 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Tue, 11 Dec 2012 11:09:49 -0500 Subject: [PATCH] Bug 6918 - can't place holds on 'on order' items with AllowOnShelfHolds off Koha documenation suggests that NOT_LOAN values less than 0 should be hold-able. This patch enables that. From the manual: Negative number values will still allow holds (use for on order statuses for example) where as positive numbers will not allow holds or checkouts --- C4/Reserves.pm | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/C4/Reserves.pm b/C4/Reserves.pm index a380bf0..ed51fc0 100644 --- a/C4/Reserves.pm +++ b/C4/Reserves.pm @@ -1441,7 +1441,7 @@ sub IsAvailableForItemLevelRequest { if (C4::Context->preference('AllowOnShelfHolds')) { return $available_per_item; } else { - return ($available_per_item and ($item->{onloan} or GetReserveStatus($itemnumber) eq "W")); + return ($available_per_item and ($item->{onloan} or GetReserveStatus($itemnumber) eq "W" or $item->{notforloan} < 0)); } } -- 1.7.2.5