View | Details | Raw Unified | Return to bug 33946
Collapse All | Expand All

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/biblio-title.inc (-19 / +18 lines)
Lines 1-7 Link Here
1
[%- IF link && ! biblio %][% link = 0 %][% END %]
1
[%- IF link && ! biblio %][% link = 0 %][% END %]
2
[% IF ( link ) %]
2
[%- IF ( link ) -%]
3
    <a href="[% PROCESS biblio_a_href biblionumber => biblio.biblionumber %]" class="title">
3
    <a href="[%- PROCESS biblio_a_href biblionumber => biblio.biblionumber -%]" class="title">
4
[% END %]
4
[%- END -%]
5
5
6
[%- IF !biblio -%]
6
[%- IF !biblio -%]
7
    No bibliographic record
7
    No bibliographic record
Lines 10-31 Link Here
10
[%- ELSE -%]
10
[%- ELSE -%]
11
    <span class="biblio-title">[% biblio.title | html %]</span>
11
    <span class="biblio-title">[% biblio.title | html %]</span>
12
[%- END -%]
12
[%- END -%]
13
[% FOREACH subtitle IN biblio.subtitle.split(' \| ') %][% IF Koha.Preference('marcflavour')=='UNIMARC' %],[% END %]
13
[%- FOREACH subtitle IN biblio.subtitle.split(' \\| ') -%][%- IF Koha.Preference('marcflavour')=='UNIMARC' -%],[%- END -%]
14
    <span class="subtitle">[% subtitle | html %]</span>
14
    <span class="subtitle">[%- subtitle | html -%]</span>
15
[% END %]
15
[%- END -%]
16
[% part_numbers = biblio.part_number.split(' \\| ') %]
16
[%- part_numbers = biblio.part_number.split(' \\| ') -%]
17
[% part_names = biblio.part_name.split(' \\| ') %]
17
[%- part_names = biblio.part_name.split(' \\| ') -%]
18
[% i = 0 %]
18
[%- i = 0 -%]
19
[% WHILE ( part_numbers.$i.defined || part_names.$i.defined ) %]
19
[%- WHILE ( part_numbers.$i.defined || part_names.$i.defined ) -%]
20
    [% IF ( part_numbers.$i.defined ) %]
20
    [%- IF ( part_numbers.$i.defined ) -%]
21
        <span class="part-number">[% part_numbers.$i | html %]</span>
21
        <span class="part-number">[% part_numbers.$i | html %]</span>
22
    [% END %]
22
    [%- END -%]
23
    [% IF ( part_names.$i.defined ) %]
23
    [%- IF ( part_names.$i.defined ) -%]
24
        <span class="part-name">[% part_names.$i | html %]</span>
24
        <span class="part-name">[% part_names.$i | html %]</span>
25
    [% END %]
25
    [%- END -%]
26
    [% i = i + 1 %]
26
    [%- i = i + 1 -%]
27
[% END %]
27
[%- END -%]
28
28
29
[% IF ( link ) %]
29
[%- IF ( link ) -%]
30
    </a>
30
    </a>
31
[% END %]
31
[%- END -%]
32
- 

Return to bug 33946