From 8c10d9dd91570156c07da126f3d909cdf805ba01 Mon Sep 17 00:00:00 2001 From: hdl Date: Fri, 20 Jul 2007 15:37:16 +0000 Subject: [PATCH] Bug Fixing Norequests was not right. --- opac/opac-detail.pl | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/opac/opac-detail.pl b/opac/opac-detail.pl index a65ca56a0e..5266afb683 100755 --- a/opac/opac-detail.pl +++ b/opac/opac-detail.pl @@ -76,15 +76,15 @@ if (C4::Context->preference("RequestOnOpac")) { my $norequests = 1; foreach my $itm (@items) { - $norequests = 0 - unless ( ( $itm->{'wthdrawn'} ) - || ( $itm->{'itemlost'} ) - || ( $itm->{'itemnotforloan'} ) - || ( !$itm->{'itemnumber'} ) ); - $itm->{ $itm->{'publictype'} } = 1; + $norequests = 0 && $norequests + if ( (not $itm->{'wthdrawn'} ) + || (not $itm->{'itemlost'} ) + || (not $itm->{'itemnotforloan'} ) + || ($itm->{'itemnumber'} ) ); + $itm->{ $itm->{'publictype'} } = 1; } -$template->param( norequests => $norequests, ); +$template->param( norequests => $norequests, RequestOnOpac=>$RequestOnOpac ); ## get notes and subjects from MARC record my $dbh = C4::Context->dbh; -- 2.39.2