Koha/koha-tmpl/opac-tmpl/bootstrap/en/includes/biblio-title-head.inc
Ere Maijala 5b1ed49baa
Bug 11529: (follow-up) Fix QA issues
- Remove SplitKohaField
- Avoid using Stash in templates
- Improved display of part fields

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2019-08-05 15:03:19 +01:00

20 lines
635 B
PHP

[% IF ( biblio.title ) %]
[% biblio.title | html %]
[% ELSE %]
No title
[% 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 ) %]
[% part_numbers.$i | html %]
[% END %]
[% IF ( part_names.$i.defined ) %]
[% part_names.$i | html %]
[% END %]
[% i = i + 1 %]
[% END %]