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 <galen.charlton@liblime.com>
Signed-off-by: Henri-Damien LAURENT <henridamien.laurent@biblibre.com>
This commit is contained in:
Garry Collum 2009-06-25 20:35:14 -04:00 committed by Henri-Damien LAURENT
parent 1a90c1617a
commit a04a3241df
2 changed files with 5 additions and 2 deletions

View File

@ -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

View File

@ -102,7 +102,11 @@ $(document).ready(function(){
<tbody><!-- TMPL_LOOP name="breeding_loop" -->
<!-- TMPL_IF NAME="breedingid" -->
<!-- TMPL_UNLESS NAME="__odd__" -->
<tr class="highlight">
<!-- TMPL_ELSE -->
<tr>
<!-- /TMPL_UNLESS -->
<td><!-- TMPL_VAR name="server" --></td>
<td><!-- TMPL_VAR NAME="title" escape="html" --></td>
<td><!-- TMPL_VAR NAME="author" --></td>