From e80361e2b466d6d6d81094f8f997c811415ff1f8 Mon Sep 17 00:00:00 2001 From: joshferraro Date: Tue, 6 Sep 2005 12:28:08 +0000 Subject: [PATCH] make status contingent upon all status fields in Koha including itemtype --- 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 9dc6c0bd6b..ccafafe1d2 100755 --- a/opac/opac-detail.pl +++ b/opac/opac-detail.pl @@ -69,7 +69,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->{'notforloan'}) || ($itm->{'itemnotforloan'}) || (!$itm->{'itemnumber'})); $itm->{$itm->{'publictype'}} = 1; } -- 2.39.5