From cce433ba4c796c96bbd7f68bf7c0546ca8fed695 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 5 Aug 2019 12:12:02 -0500 Subject: [PATCH] Bug 11529: Prevent too many spaces/break lines in the title tag Caught by t/db_dependent/www/batch.t Before this patch: """ Koha › Catalog › Details for Bleak House / """ After this patch: """ Koha › Catalog › Details for Bleak House / """ Signed-off-by: Martin Renvoize --- .../prog/en/includes/biblio-title-head.inc | 42 +++++++++++----------- 1 file changed, 21 insertions(+), 21 deletions(-) rewrite koha-tmpl/intranet-tmpl/prog/en/includes/biblio-title-head.inc (98%) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/biblio-title-head.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/biblio-title-head.inc dissimilarity index 98% index d7a692aab8..d00be03687 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/biblio-title-head.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/biblio-title-head.inc @@ -1,21 +1,21 @@ -[% IF ( biblio.title ) %] - [% biblio.title | html %] -[% ELSE %] - No title -[% END %] -[% biblio.medium | html %] -[% FOREACH subtitle IN biblio.subtitle.split(' \| ') %][% IF Koha.Preference('marcflavour')=='UNIMARC' %],[% END %] - [% subtitle | html %] -[% END %] -[% part_numbers = biblio.part_number.split(' \\| ') %] -[% part_names = biblio.part_name.split(' \\| ') %] -[% i = 0 %] -[% WHILE ( part_numbers.$i.defined || part_names.$i.defined ) %] - [% IF ( part_numbers.$i.defined ) %] - [% part_numbers.$i | html %] - [% END %] - [% IF ( part_names.$i.defined ) %] - [% part_names.$i | html %] - [% END %] - [% i = i + 1 %] -[% END %] +[%~ IF ( biblio.title ) ~%] + [%~ biblio.title | html ~%] +[%~ ELSE ~%] + No title +[%~ END ~%] +[%~ biblio.medium | html ~%] +[%~ FOREACH subtitle IN biblio.subtitle.split(' \| ') ~%][%~ IF Koha.Preference('marcflavour')=='UNIMARC' ~%],[%~ END ~%] + [%~ subtitle | html ~%] +[%~ END ~%] +[%~ part_numbers = biblio.part_number.split(' \\| ') ~%] +[%~ part_names = biblio.part_name.split(' \\| ') ~%] +[%~ i = 0 ~%] +[%~ WHILE ( part_numbers.$i.defined || part_names.$i.defined ) ~%] + [%~ IF ( part_numbers.$i.defined ) ~%] + [%~ part_numbers.$i | html ~%] + [%~ END ~%] + [%~ IF ( part_names.$i.defined ) ~%] + [%~ part_names.$i | html ~%] + [%~ END ~%] + [%~ i = i + 1 ~%] +[%~ END ~%] -- 2.11.4.GIT