From 905c5de9c80a4257fa7d64b95cd30b9db1c0141c Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 18 Dec 2007 16:16:04 -0600 Subject: [PATCH] Fixing some markup issues and alternating table row colors. Signed-off-by: Chris Cormack Signed-off-by: Joshua Ferraro --- admin/koha2marclinks.pl | 10 +- .../prog/en/modules/admin/koha2marclinks.tmpl | 121 +++++++++--------- 2 files changed, 65 insertions(+), 66 deletions(-) diff --git a/admin/koha2marclinks.pl b/admin/koha2marclinks.pl index 90da842672..aa2e3682ff 100755 --- a/admin/koha2marclinks.pl +++ b/admin/koha2marclinks.pl @@ -141,14 +141,14 @@ else { # DEFAULT my $sth2 = $dbh->prepare("SHOW COLUMNS from $tablename"); $sth2->execute; - my $toggle = "white"; + my $toggle = 1; my @loop_data = (); while ( ( my $field ) = $sth2->fetchrow_array ) { - if ( $toggle eq 'white' ) { - $toggle = "#ffffcc"; + if ( $toggle eq 1 ) { + $toggle = 0; } else { - $toggle = "white"; + $toggle = 1; } my %row_data; # get a fresh hash for the row data $row_data{tagfield} = $fields{ $tablename . "." . $field }->{tagfield}; @@ -159,7 +159,7 @@ else { # DEFAULT $row_data{kohafield} = $field; $row_data{edit} = "$script_name?op=add_form&tablename=$tablename&kohafield=$field"; - $row_data{bgcolor} = $toggle; + $row_data{toggle} = $toggle; push( @loop_data, \%row_data ); } $template->param( diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/koha2marclinks.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/koha2marclinks.tmpl index 0a372c3ddf..1e3fc04318 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/koha2marclinks.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/koha2marclinks.tmpl @@ -1,6 +1,6 @@ Koha › Administration › -<!-- TMPL_IF name="add_form" -->MARC Links › <!-- TMPL_VAR name="action" --><!-- /TMPL_IF --> +<!-- TMPL_IF name="add_form" --> MARC Links › Connect <!-- TMPL_VAR name="tablename" -->.<!-- TMPL_VAR name="kohafield" --> to a MARC subfield<!-- /TMPL_IF --> <!-- TMPL_IF name="else" -->MARC Links <!-- TMPL_VAR name="tagfield" --><!-- /TMPL_IF --> @@ -9,7 +9,7 @@ -