Koha/koha-tmpl/opac-tmpl/bootstrap/en/includes/biblio-title.inc
Katrin Fischer 7eabb2350b
Bug 33946: (QA follow-up) Add spans and classes for styling and translatability
Adds back the spans around No title and more spans for
'No bibliographic record' with individual classes for each
to allow for styling later.

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit f91cc77a68)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2023-07-18 12:33:55 +01:00

31 lines
1.1 KiB
PHP

[%- IF link && ! biblio %][% link = 0 %][% END %]
[%- IF ( link ) -%]
<a href="[%- PROCESS biblio_a_href biblionumber => biblio.biblionumber -%]" class="title">
[%- END -%]
[%- IF !biblio -%]
<span class="biblio-no-record">No bibliographic record</span>
[%- ELSIF !biblio.title -%]
<span class="biblio-no-title">No title</span>
[%- 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 ) -%]
<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 -%]