Bug 11529: (follow-up) Fix QA issues
[koha.git] / koha-tmpl / opac-tmpl / bootstrap / en / includes / biblio-title.inc
1 [% IF ( biblio.title ) %]
2     <span class="biblio-title">[% biblio.title | html %]</span>
3 [% ELSE %]
4     No title
5 [% END %]
6 [% FOREACH subtitle IN biblio.subtitle.split(' \| ') %][% IF Koha.Preference('marcflavour')=='UNIMARC' %],[% END %]
7     <span class="subtitle">[% subtitle | html %]</span>
8 [% END %]
9 [% part_numbers = biblio.part_number.split(' \\| ') %]
10 [% part_names = biblio.part_name.split(' \\| ') %]
11 [% i = 0 %]
12 [% WHILE ( part_numbers.$i.defined || part_names.$i.defined ) %]
13     [% IF ( part_numbers.$i.defined ) %]
14         <span class="part-number">[% part_numbers.$i | html %]</span>
15     [% END %]
16     [% IF ( part_names.$i.defined ) %]
17         <span class="part-name">[% part_names.$i | html %]</span>
18     [% END %]
19     [% i = i + 1 %]
20 [% END %]