From fc8b7c27bb126801273ddb977debaf42b77f1736 Mon Sep 17 00:00:00 2001 From: Garry Collum Date: Mon, 8 Jun 2009 16:54:23 -0400 Subject: [PATCH] Bug 2889: Removed toggle variable from koha2marclinks.tmpl. Used template __odd__ variable. Removed toggle variable from koha2marclinks.tmpl and koh2marclinks.pl. Used template __odd__ variable instead. Signed-off-by: Galen Charlton --- admin/koha2marclinks.pl | 8 -------- .../prog/en/modules/admin/koha2marclinks.tmpl | 6 +++++- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/admin/koha2marclinks.pl b/admin/koha2marclinks.pl index c23c39de5d..e65e1e51ab 100755 --- a/admin/koha2marclinks.pl +++ b/admin/koha2marclinks.pl @@ -140,15 +140,8 @@ else { # DEFAULT my $sth2 = $dbh->prepare("SHOW COLUMNS from $tablename"); $sth2->execute; - my $toggle = 1; my @loop_data = (); while ( ( my $field ) = $sth2->fetchrow_array ) { - if ( $toggle eq 1 ) { - $toggle = 0; - } - else { - $toggle = 1; - } my %row_data; # get a fresh hash for the row data $row_data{tagfield} = $fields{ $tablename . "." . $field }->{tagfield}; $row_data{tagsubfield} = @@ -158,7 +151,6 @@ else { # DEFAULT $row_data{kohafield} = $field; $row_data{edit} = "$script_name?op=add_form&tablename=$tablename&kohafield=$field"; - $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 e4e59f3ea7..366c005201 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/koha2marclinks.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/koha2marclinks.tmpl @@ -155,7 +155,11 @@   - + + + + + ">