From a04a3241df5401f61a894afbe46f8586086fc2bb Mon Sep 17 00:00:00 2001 From: Garry Collum Date: Thu, 25 Jun 2009 20:35:14 -0400 Subject: [PATCH] Bug 2889: Removed toggle variable from z3950_search.pl. Removed unused toggle variable from z3959_search.pl. Added __odd__ variable to table in z3950_search.tmpl for non-javascript users. Signed-off-by: Galen Charlton Signed-off-by: Henri-Damien LAURENT --- cataloguing/z3950_search.pl | 3 +-- .../prog/en/modules/cataloguing/z3950_search.tmpl | 4 ++++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/cataloguing/z3950_search.pl b/cataloguing/z3950_search.pl index c73b5f9e7e..e3973c9e46 100755 --- a/cataloguing/z3950_search.pl +++ b/cataloguing/z3950_search.pl @@ -238,7 +238,6 @@ warn "query ".$query if $DEBUG; ) = ImportBreeding( $marcdata, 2, $serverhost[$k], $encoding[$k], $random, 'z3950' ); my %row_data; - $row_data{toggle} = ($i % 2) ? 1 : 0; $row_data{server} = $servername[$k]; $row_data{isbn} = $oldbiblio->{isbn}; $row_data{lccn} = $oldbiblio->{lccn}; @@ -249,7 +248,7 @@ warn "query ".$query if $DEBUG; push( @breeding_loop, \%row_data ); } else { - push(@breeding_loop,{'toggle'=>($i % 2)?1:0,'server'=>$servername[$k],'title'=>join(': ',$oConnection[$k]->error_x()),'breedingid'=>-1,'biblionumber'=>-1}); + push(@breeding_loop,{'server'=>$servername[$k],'title'=>join(': ',$oConnection[$k]->error_x()),'breedingid'=>-1,'biblionumber'=>-1}); } # $rec } } #$numresults diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/z3950_search.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/z3950_search.tmpl index bfdaf34c83..691370b825 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/z3950_search.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/z3950_search.tmpl @@ -102,7 +102,11 @@ $(document).ready(function(){ + + + + -- 2.39.5