From 53e6009b171d91964bee0aeb8e7374a4ab83728a Mon Sep 17 00:00:00 2001 From: joshferraro Date: Wed, 10 Aug 2005 17:37:58 +0000 Subject: [PATCH] reserve button wasn't showing up on the OPAC detail screen. Fixes that problem. But note that the code is still problematic because there doesn't seem to be a clear consistant method for determining whether an item is notforloan in koha (especially since notforloan is often mapped to status). --- opac/opac-detail.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opac/opac-detail.pl b/opac/opac-detail.pl index 3880d49087..f1fdc0cf35 100755 --- a/opac/opac-detail.pl +++ b/opac/opac-detail.pl @@ -53,7 +53,7 @@ for (my $i = 1; $i < $authorcount; $i++) { my $norequests = 1; foreach my $itm (@items) { - $norequests = 0 unless $itm->{'notforloan'}; + $norequests = 0 unless (($itm->{'wthdrawn'}) || ($itm->{'itemlost'}) ||(!$itm->{'itemnumber'})); $itm->{$itm->{'publictype'}} = 1; } -- 2.39.5