[Koha-patches] [PATCH] bug 2341: OPAC title-level holds permitted when items are on-order
Galen Charlton
galen.charlton at liblime.com
Thu Aug 14 18:48:41 CEST 2008
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.
---
opac/opac-reserve.pl | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/opac/opac-reserve.pl b/opac/opac-reserve.pl
index 30342a1..0443ad9 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;
}
}
--
1.5.5.GIT
More information about the Koha-patches
mailing list