5b1ed49baa
- 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>
20 lines
635 B
PHP
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 %]
|