From 36847ff51d63b5f4eaf7b08cf98f9afce519fc69 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Thu, 8 Jun 2023 13:19:07 +0100 Subject: [PATCH] Bug 33946: Resync opac/intranet includes This patch resyncs the whitespace chomping in the opac include to match that in the intranet include so aid in diffing between the two. No changes should be visible in the UI but there may be cleaner markup as a result. Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi (cherry picked from commit 04814be829ad99bb5a5302f84419528d64548465) Signed-off-by: Martin Renvoize --- .../bootstrap/en/includes/biblio-title.inc | 36 +++++++++---------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/biblio-title.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/biblio-title.inc index d3bbf53917..7201dd2df8 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/biblio-title.inc +++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/biblio-title.inc @@ -1,7 +1,7 @@ [%- IF link && ! biblio %][% link = 0 %][% END %] -[% IF ( link ) %] - -[% END %] +[%- IF ( link ) -%] + +[%- END -%] [%- IF !biblio -%] No bibliographic record @@ -10,22 +10,22 @@ [%- ELSE -%] [% biblio.title | html %] [%- END -%] -[% 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 ) %] +[%- 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 ) %] + [%- END -%] + [%- IF ( part_names.$i.defined ) -%] [% part_names.$i | html %] - [% END %] - [% i = i + 1 %] -[% END %] + [%- END -%] + [%- i = i + 1 -%] +[%- END -%] -[% IF ( link ) %] +[%- IF ( link ) -%] -[% END %] +[%- END -%] -- 2.39.5