From 96777b2a3df54f052770ac754d911cc26b55c1b8 Mon Sep 17 00:00:00 2001 From: Garry Collum Date: Wed, 10 Jun 2009 19:48:40 -0400 Subject: [PATCH] Bug 2889: Removed toggle variables from z3950servers.pl and .tmpl Removed toggle variables from z3950servers.pl and z3950servers.tmpl. Used template __odd__variable instead. Signed-off-by: Galen Charlton Signed-off-by: Henri-Damien LAURENT --- admin/z3950servers.pl | 13 +------------ .../prog/en/modules/admin/z3950servers.tmpl | 7 ++++++- 2 files changed, 7 insertions(+), 13 deletions(-) diff --git a/admin/z3950servers.pl b/admin/z3950servers.pl index 37d577c7c6..be7cae5d17 100755 --- a/admin/z3950servers.pl +++ b/admin/z3950servers.pl @@ -160,7 +160,6 @@ if ($op eq 'add_form') { $template->param(else => 1); my ($count,$results)=StringSearch($searchfield,'web'); my @loop; - my $toggle = 0; for (my $i=$offset; $i < ($offset+$pagesize<$count?$offset+$pagesize:$count); $i++){ my $urlsearchfield=$results->[$i]{name}; @@ -174,19 +173,9 @@ if ($op eq 'add_form') { checked => $results->[$i]{'checked'}, rank => $results->[$i]{'rank'}, syntax => $results->[$i]{'syntax'}, - encoding => $results->[$i]{'encoding'}, - toggle => $toggle); + encoding => $results->[$i]{'encoding'}); push @loop, \%row; - if ( $toggle eq 0 ) - { - $toggle = 1; - } - else - { - $toggle = 0; - } - } $template->param(loop => \@loop); if ($offset>0) { diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/z3950servers.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/z3950servers.tmpl index e495b6aa5a..9a628a09db 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/z3950servers.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/z3950servers.tmpl @@ -295,7 +295,12 @@ TargetHostname/PortDatabaseUseridPasswordCheckedRank SyntaxEncoding  - ?op=add_form&searchfield=">: ?op=add_form&searchfield=">Edit?op=delete_confirm&searchfield=">Delete + + + + + +?op=add_form&searchfield=">: ?op=add_form&searchfield=">Edit?op=delete_confirm&searchfield=">Delete -- 2.39.5