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 <galen.charlton@liblime.com>
This commit is contained in:
Galen Charlton 2008-08-14 11:48:41 -05:00 committed by Henri-Damien LAURENT
parent 20c397cd38
commit 6c168bf22b
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}
}