From 94abcf6d9879df156cfe31e5630bb389130cdd87 Mon Sep 17 00:00:00 2001 From: Garry Collum Date: Wed, 22 Jul 2009 23:53:00 -0400 Subject: [PATCH] Bug 2889: Removed toggle variable from Serials vendor search. Removed toggle variable from acqui-search-result.pl. Added highlighting using __odd__ to acqui-search-result.tmpl. Signed-off-by: Galen Charlton --- .../prog/en/modules/serials/acqui-search-result.tmpl | 6 +++++- serials/acqui-search-result.pl | 8 -------- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/acqui-search-result.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/acqui-search-result.tmpl index 2e8717d996..8ee1e138b5 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/acqui-search-result.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/acqui-search-result.tmpl @@ -27,7 +27,11 @@ function GetIt(aqbooksellerid,name) Select - + + + ,'')">Choose diff --git a/serials/acqui-search-result.pl b/serials/acqui-search-result.pl index 6066bdde34..4f410bd70c 100755 --- a/serials/acqui-search-result.pl +++ b/serials/acqui-search-result.pl @@ -63,20 +63,12 @@ my @suppliers = GetBookSeller($supplier); my $count = scalar @suppliers; #build result page -my $toggle=0; my @loop_suppliers; for (my $i=0; $i<$count; $i++) { my $orders = GetPendingOrders($suppliers[$i]->{'id'}); my $ordcount = scalar @$orders; my %line; - if ($toggle==0){ - $line{even}=1; - $toggle=1; - } else { - $line{even}=0; - $toggle=0; - } $line{aqbooksellerid} =$suppliers[$i]->{'id'}; $line{name} = $suppliers[$i]->{'name'}; $line{active} = $suppliers[$i]->{'active'}; -- 2.39.5