[Koha-cvs] koha/circ circulation.pl [rel_3_0]

Antoine Farnault antoine at koha-fr.org
Mon Nov 27 10:43:12 CET 2006


CVSROOT:	/sources/koha
Module name:	koha
Branch:		rel_3_0
Changes by:	Antoine Farnault <toins>	06/11/27 09:43:12

Modified files:
	circ           : circulation.pl 

Log message:
	adding countreserv to the template to know how many reservations the borrower has.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/circ/circulation.pl?cvsroot=koha&only_with_tag=rel_3_0&r1=1.97.2.9&r2=1.97.2.10

Patches:
Index: circulation.pl
===================================================================
RCS file: /sources/koha/koha/circ/circulation.pl,v
retrieving revision 1.97.2.9
retrieving revision 1.97.2.10
diff -u -b -r1.97.2.9 -r1.97.2.10
--- circulation.pl	24 Nov 2006 11:07:09 -0000	1.97.2.9
+++ circulation.pl	27 Nov 2006 09:43:12 -0000	1.97.2.10
@@ -320,11 +320,13 @@
     }
 
     # return result to the template
-    $template->param( reservloop => \@reservloop );
-
+    $template->param( 
+        countreserv => scalar @reservloop,
+        reservloop  => \@reservloop 
+    );
 }
 
-# make the issued books table.....
+# make the issued books table.
 my $todaysissues = '';
 my $previssues   = '';
 my @realtodayissues;





More information about the Koha-cvs mailing list