From afa4cc6e4151adb07b64f247935e121bb3d1eda0 Mon Sep 17 00:00:00 2001 From: oleonard Date: Tue, 15 Feb 2005 20:34:26 +0000 Subject: [PATCH] - Adding classification to list of returned variables - Updating table row color toggle to move HTML markup out of the script (requires update to the template) --- acqui.simple/isbnsearch.pl | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/acqui.simple/isbnsearch.pl b/acqui.simple/isbnsearch.pl index 8955080ebd..d014cda2e8 100755 --- a/acqui.simple/isbnsearch.pl +++ b/acqui.simple/isbnsearch.pl @@ -72,10 +72,9 @@ else { my $toggle; for ( my $i = $offset ; $i < $total ; $i++ ) { if ( $i % 2 ) { - $toggle = "#ffffcc"; - } - else { - $toggle = "white"; + $toggle = 0; + } else { + $toggle = 1; } my %row_data; # get a fresh hash for the row data $row_data{toggle} = $toggle; @@ -83,6 +82,7 @@ else { $row_data{title} = $results[$i]->{'title'}; $row_data{author} = $results[$i]->{'author'}; $row_data{copyrightdate} = $results[$i]->{'copyrightdate'}; + $row_data{classification} = $results[$i]->{'classification'}; $row_data{NOTMARC} = !$marc_p; push ( @loop_data, \%row_data ); } @@ -135,10 +135,10 @@ else { for ( my $i = 0 ; $i <= $#results ; $i++ ) { my %row_data; if ( $i % 2 ) { - $toggle = "#ffffcc"; + $toggle = 0; } else { - $toggle = "white"; + $toggle = 1; } $row_data{toggle} = $toggle; $row_data{id} = $results[$i]->{'id'}; -- 2.39.5