Koha/koha-tmpl/intranet-tmpl/prog/en/includes/biblio-title.inc
Martin Renvoize dfb658a48f Bug 31028: Update patron and biblio includes to remove whitespace
These includes used lots of [% %] blocks instead of [%- -%] and as such
the produced markup contains superflous spacing.  This is OK in the
browser, but for some reason does affect rendering in HTML email.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Helen Oliver <HOliver@tavi-port.ac.uk>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2023-03-06 11:23:17 -03:00

31 lines
1.1 KiB
PHP

[%- IF ( link ) -%]
<a href="[%- PROCESS biblio_a_href biblionumber => biblio.biblionumber -%]" class="title">
[%- END -%]
[%- IF ( biblio.title ) -%]
<span class="biblio-title">[%- biblio.title | html -%]</span>
[%- ELSE -%]
<span>No title</span>
[%- END -%]
[%- IF ( biblio.medium ) -%]
<span class="biblio-medium">[%- biblio.medium | 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 ) -%]
<span class="part-number">[%- part_numbers.$i | html -%]</span>
[%- END -%]
[%- IF ( part_names.$i.defined ) -%]
<span class="part-name">[%- part_names.$i | html -%]</span>
[%- END -%]
[%- i = i + 1 -%]
[%- END -%]
[%- IF ( link ) -%]
</a>
[%- END -%]