f91cc77a68
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>
34 lines
1.2 KiB
PHP
34 lines
1.2 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 -%]
|
|
[%- 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 -%]
|