From 357ba9c5714b97e99b9b9c63f5a86f8e259bd887 Mon Sep 17 00:00:00 2001 From: Adrien Saurat Date: Mon, 9 Jan 2012 11:55:08 +0100 Subject: [PATCH] Bug 7357: display serial title instead of '---' The full title of a serial is now displayed even if several lines have the same title. Signed-off-by: Chris Cormack Signed-off-by: Paul Poulain (cherry picked from commit cb1a9466931790bbe3aac19845a3c7b441e43ea2) Signed-off-by: Chris Nighswonger (cherry picked from commit eec9246f267e063bc1d3589a8303dcb1eb0de7fa) Signed-off-by: Chris Nighswonger --- C4/Serials.pm | 8 -------- .../intranet-tmpl/prog/en/modules/serials/serials-home.tt | 4 +--- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/C4/Serials.pm b/C4/Serials.pm index 2327e1f63f..ffd6761188 100644 --- a/C4/Serials.pm +++ b/C4/Serials.pm @@ -603,14 +603,6 @@ sub GetSubscriptions { my @results; while ( my $line = $sth->fetchrow_hashref ) { - if ( $previousbiblio eq $line->{biblionumber} ) { - $line->{title} = ""; - $line->{issn} = ""; - } else { - $previousbiblio = $line->{biblionumber}; - $odd = -$odd; - } - $line->{toggle} = 1 if $odd == 1; $line->{'cannotedit'} = ( C4::Context->preference('IndependantBranches') && C4::Context->userenv diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-home.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-home.tt index 1248365986..ec1faf31c2 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-home.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-home.tt @@ -111,9 +111,7 @@ Serials updated : [% IF ( subscription.issn ) %][% subscription.issn %] [% END %] - [% IF ( subscription.title ) %][% subscription.title |html %][% ELSE %] - --- - [% END %] + [% subscription.title |html %] [% IF ( subscription.notes ) %][% subscription.notes %][% END %] [% IF ( subscription.internalnotes ) %]([% subscription.internalnotes %])[% END %] -- 2.39.5