From 2d5540d99054a83c204e84fe21c0a16977edb1b8 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/opac/opac-reserve.pl b/opac/opac-reserve.pl index 552cffbda1..8b7e36f4cd 100755 --- a/opac/opac-reserve.pl +++ b/opac/opac-reserve.pl @@ -136,8 +136,8 @@ foreach my $itm (@items) { $itm->{'itemtype'} = $itm->{'itype'} if(C4::Context->preference('item-level_itypes')); $itemhash{$itm->{'itemnumber'}}=$itm; if (!$itm->{'notforloan'} && !($itm->{'itemnotforloan'} > 0)){ - $forloan=1; - } + $forloan=1; + } } if ( $query->param('place_reserve') ) { -- 2.39.5