[Koha-cvs] koha/opac opac-detail.pl

Henri-Damien LAURENT laurenthdl at alinto.com
Fri Jul 20 17:37:17 CEST 2007


CVSROOT:	/cvsroot/koha
Module name:	koha
Changes by:	Henri-Damien LAURENT <hdl>	07/07/20 15:37:16

Modified files:
	opac           : opac-detail.pl 

Log message:
	Bug Fixing Norequests was not right.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/opac/opac-detail.pl?cvsroot=koha&r1=1.35&r2=1.36

Patches:
Index: opac-detail.pl
===================================================================
RCS file: /cvsroot/koha/koha/opac/opac-detail.pl,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -b -r1.35 -r1.36
--- opac-detail.pl	24 Apr 2007 13:54:29 -0000	1.35
+++ opac-detail.pl	20 Jul 2007 15:37:16 -0000	1.36
@@ -17,7 +17,7 @@
 # Koha; if not, write to the Free Software Foundation, Inc., 59 Temple Place,
 # Suite 330, Boston, MA  02111-1307 USA
 
-# $Id: opac-detail.pl,v 1.35 2007/04/24 13:54:29 hdl Exp $
+# $Id: opac-detail.pl,v 1.36 2007/07/20 15:37:16 hdl Exp $
 
 use strict;
 require Exporter;
@@ -76,15 +76,15 @@
 
 my $norequests = 1;
 foreach my $itm (@items) {
-    $norequests = 0
-      unless ( ( $itm->{'wthdrawn'} )
-        || ( $itm->{'itemlost'} )
-        || ( $itm->{'itemnotforloan'} )
-        || ( !$itm->{'itemnumber'} ) );
+     $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;





More information about the Koha-cvs mailing list