From 99c0d2bf74d67c9cb08a657ec547d6d689bd69ca Mon Sep 17 00:00:00 2001 From: Nahuel ANGELINETTI Date: Tue, 9 Mar 2010 11:25:09 +0100 Subject: [PATCH] (MT #3110) fix repetable titles This fix in serials search, for repeatables titles. Now we use biblionumber to detect repeated serials. Signed-off-by: Colin Campbell --- C4/Serials.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/C4/Serials.pm b/C4/Serials.pm index a81c91193f..4eea7956ca 100644 --- a/C4/Serials.pm +++ b/C4/Serials.pm @@ -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; -- 2.39.5