(MT #3110) fix repetable titles
authorNahuel ANGELINETTI <nahuel.angelinetti@biblibre.com>
Tue, 9 Mar 2010 10:25:09 +0000 (11:25 +0100)
committerColin Campbell <colin.campbell@ptfs-europe.com>
Wed, 15 Dec 2010 12:13:04 +0000 (12:13 +0000)
This fix in serials search, for repeatables titles.
Now we use biblionumber to detect repeated serials.

Signed-off-by: Colin Campbell <colin.campbell@ptfs-europe.com>
C4/Serials.pm

index a81c911..4eea795 100644 (file)
@@ -607,15 +607,15 @@ sub GetSubscriptions {
     $sth = $dbh->prepare($sql);
     $sth->execute(@bind_params);
     my @results;
-    my $previoustitle = "";
+    my $previousbiblio = "";
     my $odd           = 1;
 
     while ( my $line = $sth->fetchrow_hashref ) {
-        if ( $previoustitle eq $line->{title} ) {
+        if ( $previousbiblio eq $line->{biblionumber} ) {
             $line->{title} = "";
             $line->{issn}  = "";
         } else {
-            $previoustitle = $line->{title};
+            $previousbiblio = $line->{biblionumber};
             $odd           = -$odd;
         }
         $line->{toggle} = 1 if $odd == 1;