Bug 3392: Fixes highlighting in Patrons with no Checkouts report.
authorGarry Collum <gcollum@gmail.com>
Sun, 5 Jul 2009 00:18:15 +0000 (20:18 -0400)
committerGalen Charlton <galen.charlton@liblime.com>
Mon, 13 Jul 2009 04:00:00 +0000 (00:00 -0400)
Fixed class definition and moved the definition from the <td> tags to the <tr> tags.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
koha-tmpl/intranet-tmpl/prog/en/modules/reports/borrowers_out.tmpl
reports/borrowers_out.pl

index 5528b31..ce7c4a9 100644 (file)
                 <!-- /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>
index 939e673..3611021 100755 (executable)
@@ -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;
     }