From 6c168bf22be9db638d671212df1d5db7c24dbdb2 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 bfd6a2f517..12a8b9eb33 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