bug 2341: OPAC title-level holds permitted when items are on-order
authorGalen Charlton <galen.charlton@liblime.com>
Thu, 14 Aug 2008 16:48:41 +0000 (11:48 -0500)
committerChris Cormack <chris@bigballofwax.co.nz>
Thu, 3 Sep 2009 21:26:40 +0000 (09:26 +1200)
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 <galen.charlton@liblime.com>
opac/opac-reserve.pl

index 552cffb..8b7e36f 100755 (executable)
@@ -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') ) {