From 5ae8445256ed75e9b03d480c889fdbad6c831c51 Mon Sep 17 00:00:00 2001 From: oleonard Date: Thu, 27 Jan 2005 17:27:11 +0000 Subject: [PATCH] Taking table cell background color information out of the script and moving it into the template (requires update to opac-shelves.tmpl) --- opac/opac-shelves.pl | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/opac/opac-shelves.pl b/opac/opac-shelves.pl index cba164f197..0c0cc9f0cd 100755 --- a/opac/opac-shelves.pl +++ b/opac/opac-shelves.pl @@ -33,11 +33,6 @@ use HTML::Template; my $env; my $query = new CGI; -my $headerbackgroundcolor='#663266'; -my $circbackgroundcolor='#555555'; -my $circbackgroundcolor='#550000'; -my $linecolor1='#bbbbbb'; -my $linecolor2='#dddddd'; my ($template, $loggedinuser, $cookie) = get_template_and_user({template_name => "opac-shelves.tmpl", query => $query, @@ -94,7 +89,7 @@ my $color=''; my @shelvesloop; foreach my $element (sort keys %$shelflist) { my %line; - ($color eq $linecolor1) ? ($color=$linecolor2) : ($color=$linecolor1); + ($color eq 0) ? ($color=1) : ($color=0); $line{'color'}= $color; $line{'shelf'}=$element; $line{'shelfname'}=$shelflist->{$element}->{'shelfname'}; @@ -146,7 +141,7 @@ sub shelves { my @shelvesloop; foreach my $element (sort keys %$shelflist) { my %line; - ($color eq $linecolor1) ? ($color=$linecolor2) : ($color=$linecolor1); + ($color eq 0) ? ($color=1) : ($color=0); $line{'color'}=$color; $line{'shelf'}=$element; $line{'shelfname'}=$shelflist->{$element}->{'shelfname'} ; @@ -168,7 +163,7 @@ sub viewshelf { my @itemsloop; foreach $item (sort {$a->{'barcode'} cmp $b->{'barcode'}} @$itemlist) { my %line; - ($color eq $linecolor1) ? ($color=$linecolor2) : ($color=$linecolor1); + ($color eq 0) ? ($color=1) : ($color=0); $line{'color'}=$color; $line{'itemnumber'}=$item->{'itemnumber'}; $line{'barcode'}=$item->{'barcode'}; @@ -189,6 +184,9 @@ sub viewshelf { # # $Log$ +# Revision 1.5 2005/01/27 17:27:11 oleonard +# Taking table cell background color information out of the script and moving it into the template (requires update to opac-shelves.tmpl) +# # Revision 1.4 2005/01/13 20:41:07 oleonard # Adding call number and item type to list of returned variables # -- 2.39.5