From 6c3f4a3e588eba22711934fd0867292cfa4a5495 Mon Sep 17 00:00:00 2001 From: hdl Date: Wed, 9 Mar 2005 12:31:45 +0000 Subject: [PATCH] Modifying 0 value display in templates --- .../default/en/reports/catalogue_stats.tmpl | 12 +++++++++--- reports/catalogue_stats.pl | 10 +++++----- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/default/en/reports/catalogue_stats.tmpl b/koha-tmpl/intranet-tmpl/default/en/reports/catalogue_stats.tmpl index b821bd36e3..307422acec 100644 --- a/koha-tmpl/intranet-tmpl/default/en/reports/catalogue_stats.tmpl +++ b/koha-tmpl/intranet-tmpl/default/en/reports/catalogue_stats.tmpl @@ -24,9 +24,15 @@ - - - + + + + + + +   + + diff --git a/reports/catalogue_stats.pl b/reports/catalogue_stats.pl index 3d34997ddb..15e97422bc 100755 --- a/reports/catalogue_stats.pl +++ b/reports/catalogue_stats.pl @@ -398,8 +398,8 @@ sub calculate { my %cell; if ($celvalue) { $cell{rowtitle} = $celvalue; - } else { - $cell{rowtitle} = ""; +# } else { +# $cell{rowtitle} = ""; } $cell{totalrow} = 0; push @loopline, \%cell; @@ -440,8 +440,8 @@ sub calculate { my %ft; if ($celvalue) { $cell{coltitle} = $celvalue; - } else { - $cell{coltitle} = ""; +# } else { +# $cell{coltitle} = ""; } $ft{totalcol} = 0; push @loopcol, \%cell; @@ -605,7 +605,7 @@ sub calculate { # and the number matches the number of columns foreach my $col ( @loopcol ) { my $value =$table{$row}->{($col->{coltitle} eq "NULL")?"zzEMPTY":$col->{coltitle}}; - push @loopcell, {value => ($value)?$value:"" } ; + push @loopcell, {value => $value } ; } push @looprow,{ 'rowtitle' => ($row eq "zzEMPTY")?"NULL":$row, 'loopcell' => \@loopcell, -- 2.39.2