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 <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 04814be829)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
Martin Renvoize 2023-06-08 13:19:07 +01:00
parent b1ae28e500
commit 36847ff51d
No known key found for this signature in database
GPG Key ID: 422B469130441A0F
1 changed files with 18 additions and 18 deletions

View File

@ -1,7 +1,7 @@
[%- IF link && ! biblio %][% link = 0 %][% END %]
[% IF ( link ) %]
<a href="[% PROCESS biblio_a_href biblionumber => biblio.biblionumber %]" class="title">
[% END %]
[%- IF ( link ) -%]
<a href="[%- PROCESS biblio_a_href biblionumber => biblio.biblionumber -%]" class="title">
[%- END -%]
[%- IF !biblio -%]
No bibliographic record
@ -10,22 +10,22 @@
[%- ELSE -%]
<span class="biblio-title">[% biblio.title | html %]</span>
[%- END -%]
[% FOREACH subtitle IN biblio.subtitle.split(' \| ') %][% IF Koha.Preference('marcflavour')=='UNIMARC' %],[% END %]
<span class="subtitle">[% subtitle | html %]</span>
[% 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 -%]
<span class="subtitle">[%- subtitle | html -%]</span>
[%- 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 ) -%]
<span class="part-number">[% part_numbers.$i | html %]</span>
[% END %]
[% IF ( part_names.$i.defined ) %]
[%- END -%]
[%- IF ( part_names.$i.defined ) -%]
<span class="part-name">[% part_names.$i | html %]</span>
[% END %]
[% i = i + 1 %]
[% END %]
[%- END -%]
[%- i = i + 1 -%]
[%- END -%]
[% IF ( link ) %]
[%- IF ( link ) -%]
</a>
[% END %]
[%- END -%]