From 27c336760ec0f07b00b40b8f585a01315e9b1893 Mon Sep 17 00:00:00 2001 From: oleonard Date: Mon, 12 Jul 2004 18:58:47 +0000 Subject: [PATCH] Adding 'even' variable to pass to template to facilitate alternating row colors in table --- opac/opac-basket.pl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/opac/opac-basket.pl b/opac/opac-basket.pl index 677d516f6b..cfb08293a9 100755 --- a/opac/opac-basket.pl +++ b/opac/opac-basket.pl @@ -26,6 +26,7 @@ if ($print_basket) { $template->param(print_basket => 1); } my @bibs = split(/\//, $bib_list); my @results; +my $num = 1; foreach my $biblionumber (@bibs) { $template->param(biblionumber => $biblionumber); @@ -36,7 +37,10 @@ foreach my $biblionumber (@bibs) { for (my $i = 1; $i < $authorcount; $i++) { $dat->{'additional'} .= "|" . $addauthor->[$i]->{'author'}; } # for - + if($num % 2 == 1){ + $dat->{'even'} = 1; + } + $num++; $dat->{'biblionumber'} = $biblionumber; push (@results, $dat); -- 2.39.5