From 1999d41392615c5ed9afb3ff708753f6cfb45851 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Thu, 14 Aug 2008 11:48:41 -0500 Subject: [PATCH] bug 2341: OPAC title-level holds permitted when items are on-order Changed so that the presence of an on-order item (items.notforloan =- -1) permits a title-level hold request to be made. Prior to this patch, if all of the items linked to the bib were on-order, no title-level request was permitted. Signed-off-by: Galen Charlton --- opac/opac-reserve.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opac/opac-reserve.pl b/opac/opac-reserve.pl index 30342a13e6..0443ad9101 100755 --- a/opac/opac-reserve.pl +++ b/opac/opac-reserve.pl @@ -189,7 +189,7 @@ foreach my $itm (@items) { } } $itemhash{$itm->{'itemnumber'}}=$itm; - if (!$itm->{'notforloan'} && !$itm->{'itemnotforloan'}){ + if (!$itm->{'notforloan'} && !($itm->{'itemnotforloan'} > 0)){ $forloan=1; } } -- 2.39.5