[Koha-devel] items.notforloan and holds
Owen Leonard
oleonard at myacpl.org
Wed Mar 4 19:25:44 CET 2009
I've been trying to figure out why my patrons can't place holds on
on-order items (items.notforloan = -1) from the OPAC. If found this in
opac-reserve.pl (line 138):
if (!$itm->{'notforloan'} && !($itm->{'itemnotforloan'} > 0)){
$forloan=1;
}
Trying to find out what the difference was between
$itm->{'notforloan'} and $itm->{'itemnotforloan'} I checked
GetItemsInfo() in Items.pm. GetItemsInfo() SELECTs both "items.*" and
"items.notforloan as itemnotforloan."
So $itm->{'notforloan'} and $itm->{'itemnotforloan'} are the same thing?
Changing line 138 of opac-reserve.pl to
if ($itm->{'notforloan'} <1){
$forloan=1;
}
...would be correct wouldn't it?
-- Owen
--
Web Developer
Athens County Public Libraries
http://www.myacpl.org
More information about the Koha-devel
mailing list