From b39910f15aad2d0cb83e9520ec736a3234abaffc Mon Sep 17 00:00:00 2001 From: Garry Collum Date: Thu, 11 Jun 2009 20:42:37 -0400 Subject: [PATCH] Bug 2889: Removed unused toggle variable from pcard-member-search.pl. Added table highlighting to .tmpl. Removed unused toggle variable form pcard-member-search.pl. Added highlighting to pcard-members-search.tmpl and fixed some XHMTL errors. Signed-off-by: Galen Charlton Signed-off-by: Henri-Damien LAURENT --- .../prog/en/modules/labels/pcard-members-search.tmpl | 10 +++++++--- labels/pcard-member-search.pl | 3 --- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/pcard-members-search.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/labels/pcard-members-search.tmpl index 93972cc7b0..8c155835f4 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/pcard-members-search.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/labels/pcard-members-search.tmpl @@ -85,9 +85,9 @@ function add_item3(borrowernumber){ " /> " /> - + - +

@@ -100,7 +100,7 @@ function add_item3(borrowernumber){ - + @@ -110,7 +110,11 @@ function add_item3(borrowernumber){ + + + + diff --git a/labels/pcard-member-search.pl b/labels/pcard-member-search.pl index 5620a547b1..1ff5cf1bb0 100755 --- a/labels/pcard-member-search.pl +++ b/labels/pcard-member-search.pl @@ -95,14 +95,12 @@ else my @resultsdata; -my $toggle = 0; my $to=($count>($startfrom*$resultsperpage)?$startfrom*$resultsperpage:$count); for (my $i=($startfrom-1)*$resultsperpage; $i < $to; $i++){ #find out stats my ($od,$issue,$fines)=GetMemberIssuesAndFines($results->[$i]{'borrowernumber'}); my %row = ( - toggle => $toggle, count => $i+1, borrowernumber => $results->[$i]{'borrowernumber'}, cardnumber => $results->[$i]{'cardnumber'}, @@ -125,7 +123,6 @@ for (my $i=($startfrom-1)*$resultsperpage; $i < $to; $i++){ sort2 => $results->[$i]{'sort2'}, dateexpiry => C4::Dates->new($results->[$i]{'dateexpiry'},'iso')->output('syspref'), ); - if ( $toggle ) { $toggle = 0; } else {$toggle = 1; } push(@resultsdata, \%row); } my $base_url = -- 2.39.5
&category=&batch_id=&type=&orderby=cardnumber">Card &category=&batch_id=&type=&orderby=surname">Name &category=&batch_id=&type=&orderby=borrowers.categorycode">Category
" value="" /> ">,