Bug 38714: biblio-title.inc [opac]
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit df00647882)
This commit is contained in:
parent
ae818c0ca8
commit
afbf1ea56c
|
|
@ -1,8 +1,10 @@
|
|||
[%- IF link && ! biblio %][% link = 0 %][% END %]
|
||||
[%- IF ( link ) -%]
|
||||
<a href="[%- PROCESS biblio_a_href biblionumber => biblio.biblionumber -%]" class="title">
|
||||
<a href="[%- PROCESS biblio_a_href biblionumber => biblio.biblionumber -%]" class="title">[% PROCESS 'show-biblio-title' %]</a>
|
||||
[%- ELSE -%]
|
||||
[%- PROCESS 'show-biblio-title' -%]
|
||||
[%- END -%]
|
||||
|
||||
[%- BLOCK 'show-biblio-title' -%]
|
||||
[%- IF !biblio -%]
|
||||
<span class="biblio-no-record">No bibliographic record</span>
|
||||
[%- ELSIF !biblio.title -%]
|
||||
|
|
@ -10,7 +12,11 @@
|
|||
[%- ELSE -%]
|
||||
<span class="biblio-title">[% biblio.title | html %]</span>
|
||||
[%- END -%]
|
||||
[%- FOREACH subtitle IN biblio.subtitle.split(' \\| ') -%][%- IF Koha.Preference('marcflavour')=='UNIMARC' -%],[%- END -%]
|
||||
[%- IF ( biblio.medium ) -%]
|
||||
<span class="biblio-medium">[%- biblio.medium | html -%]</span>
|
||||
[%- END -%]
|
||||
[%- SET subtitles = biblio.subtitle.split(' \\| ') -%]
|
||||
[%- FOREACH subtitle IN subtitles -%][%- IF Koha.Preference('marcflavour')=='UNIMARC' -%],[%- END -%]
|
||||
<span class="subtitle">[%- subtitle | html -%]</span>
|
||||
[%- END -%]
|
||||
[%- part_numbers = biblio.part_number.split(' \\| ') -%]
|
||||
|
|
@ -18,14 +24,11 @@
|
|||
[%- 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>
|
||||
<span class="part-number">[%- part_numbers.$i | html -%]</span>
|
||||
[%- END -%]
|
||||
[%- IF ( part_names.$i.defined ) -%]
|
||||
<span class="part-name">[% part_names.$i | html %]</span>
|
||||
<span class="part-name">[%- part_names.$i | html -%]</span>
|
||||
[%- END -%]
|
||||
[%- i = i + 1 -%]
|
||||
[%- END -%]
|
||||
|
||||
[%- IF ( link ) -%]
|
||||
</a>
|
||||
[%- END -%]
|
||||
|
|
|
|||
Loading…
Reference in New Issue