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)
committerGalen Charlton <galen.charlton@liblime.com>
Mon, 18 Aug 2008 12:15:32 +0000 (07:15 -0500)
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 30342a1..0443ad9 100755 (executable)
@@ -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;
        }
 }