[Koha-cvs] Changes to koha/C4/Bull.pm [rel_2_2]
paul poulain
paul at koha-fr.org
Thu Dec 1 16:05:59 CET 2005
Index: koha/C4/Bull.pm
diff -u koha/C4/Bull.pm:1.6.2.18 koha/C4/Bull.pm:1.6.2.19
--- koha/C4/Bull.pm:1.6.2.18 Fri Nov 25 17:09:03 2005
+++ koha/C4/Bull.pm Thu Dec 1 15:05:59 2005
@@ -324,12 +324,16 @@
}
my @results;
my $previoustitle="";
+ my $odd=1;
while (my $line = $sth->fetchrow_hashref) {
if ($previoustitle eq $line->{title}) {
$line->{title}="";
$line->{issn}="";
+ $line->{toggle} = 1 if $odd==1;
} else {
$previoustitle=$line->{title};
+ $odd=-$odd;
+ $line->{toggle} = 1 if $odd==1;
}
push @results, $line;
}
More information about the Koha-cvs
mailing list