[Koha-patches] [PATCH] Bug 3392: Fixes highlighting in Patrons with no Checkouts report.
Garry Collum
gcollum at gmail.com
Sun Jul 5 02:18:15 CEST 2009
Fixed class definition and moved the definition from the <td> tags to the <tr> tags.
---
.../prog/en/modules/reports/borrowers_out.tmpl | 12 +++++++-----
reports/borrowers_out.pl | 3 ---
2 files changed, 7 insertions(+), 8 deletions(-)
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/borrowers_out.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/borrowers_out.tmpl
index 5528b31..ce7c4a9 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/borrowers_out.tmpl
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/borrowers_out.tmpl
@@ -33,12 +33,14 @@
<!-- /TMPL_LOOP -->
</tr>
<!-- TMPL_LOOP NAME="looprow" -->
- <tr>
- <!-- TMPL_IF NAME="hilighted" --><td class="hilighted"><!-- TMPL_ELSE --><td><!-- /TMPL_IF -->
- <!-- TMPL_VAR NAME="rowtitle" --></td>
+ <!-- TMPL_UNLESS NAME="__odd__" -->
+ <tr class="highlight">
+ <!-- TMPL_ELSE -->
+ <tr>
+ <!-- /TMPL_UNLESS -->
+ <td><!-- TMPL_VAR NAME="rowtitle" --></td>
<!-- TMPL_LOOP NAME="loopcell" -->
- <!-- TMPL_IF NAME="hilighted" --><td class="hilighted"><!-- TMPL_ELSE --><td ><!-- /TMPL_IF -->
- <!-- TMPL_IF NAME="value" --><!-- TMPL_VAR NAME="value" --><!-- /TMPL_IF -->
+ <td><!-- TMPL_IF NAME="value" --><!-- TMPL_VAR NAME="value" --><!-- /TMPL_IF -->
</td>
<!-- /TMPL_LOOP -->
</tr>
diff --git a/reports/borrowers_out.pl b/reports/borrowers_out.pl
index 939e673..3611021 100755
--- a/reports/borrowers_out.pl
+++ b/reports/borrowers_out.pl
@@ -208,7 +208,6 @@ sub calculate {
my $i=0;
# my @totalcol;
- my $hilighted=-1;
#Initialization of cell values.....
my @table;
@@ -294,9 +293,7 @@ sub calculate {
}
push @looprow,{ 'rowtitle' => $i ,
'loopcell' => \@loopcell,
- 'hilighted' => ($hilighted >0),
};
- $hilighted = -$hilighted;
}
--
1.5.6.5
More information about the Koha-patches
mailing list