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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/authority-information.inc (-41 / +66 lines)
Lines 1-3 Link Here
1
[% USE raw %]
2
[% USE Koha %]
3
[% PROCESS 'i18n.inc' %]
1
[% FOREACH info IN information %]
4
[% FOREACH info IN information %]
2
    [% SWITCH info_type %]
5
    [% SWITCH info_type %]
3
    [% CASE 'identifiers' %]
6
    [% CASE 'identifiers' %]
Lines 41-117 Link Here
41
    [% CASE 'activity' %]
44
    [% CASE 'activity' %]
42
        [% IF info.field_of_activity %]
45
        [% IF info.field_of_activity %]
43
            <li>
46
            <li>
44
                <span>
47
                <span>Field of activity: </span>
45
                    Field of activity: [% info.field_of_activity | html %]
48
                [% info.field_of_activity | html %]
46
                    [% IF info.start_period || info.end_period %]
49
                [% IF info.start_period || info.end_period %]
47
                        ( [%~ IF info.start_period %]from: [% info.start_period | html %][% END %]
50
                    (
48
                        [% IF info.end_period %]until: [% info.end_period | html %][% END ~%]
51
                    [%~ IF info.start_period %]
49
                        )
52
                        [% tp('A period starting from', 'From: ') | html %]
53
                        [% info.start_period | html %]
50
                    [% END %]
54
                    [% END %]
51
                </span>
55
                    [% IF info.end_period %]
56
                        [% tp('A period ending', 'Until: ') | html %]
57
                        [% info.end_period | html %]
58
                    [% END ~%]
59
                    )
60
                [% END %]
52
            </li>
61
            </li>
53
        [% END %]
62
        [% END %]
54
    [% CASE 'address' %]
63
    [% CASE 'address' %]
55
        [% IF info.address %]
64
        [% IF info.address %]
56
            <li>
65
            <li>
57
                <span>Address: [% info.address | html %] [% info.postal_code | html %] [% info.city | html %] [% info.country | html %]</span>
66
                <span>Address: </span>
67
                [% info.address | html %] [% info.postal_code | html %] [% info.city | html %] [% info.country | html %]
58
            </li>
68
            </li>
59
        [% END %]
69
        [% END %]
60
    [% CASE 'associated_group' %]
70
    [% CASE 'associated_group' %]
61
        [% IF info.associated_group %]
71
        [% IF info.associated_group %]
62
            <li>
72
            <li>
63
                <span>
73
                <span>Associated group:</span>
64
                    Associated group: [% info.associated_group | html %]
74
                [% info.associated_group | html %]
65
                    [% IF info.start_period || info.end_period %]
75
                [% IF info.start_period || info.end_period %]
66
                        ( [%~ IF info.start_period %]from: [% info.start_period | html %][% END %]
76
                    (
67
                        [% IF info.end_period %]until: [% info.end_period | html %][% END ~%]
77
                    [%~ IF info.start_period %]
68
                        )
78
                        [% tp('A period starting from', 'From: ') | html %]
79
                        [% info.start_period | html %]
69
                    [% END %]
80
                    [% END %]
70
                    [% IF info.uri %]<p style="margin-bottom: 0;">URI: [% info.uri | html %]</p>[% END %]
81
                    [% IF info.end_period %]
71
                    [% IF info.source_of_information %]<p style="margin-bottom: 0;">Source of information: [% info.source_of_information | html %]</p>[% END %]
82
                        [% tp('A period ending', 'Until: ') | html %]
72
                    [% IF info.authority_record_number %]<p style="margin-bottom: 0;">Authority record control number or standard number: [% info.authority_record_number | html %]</p>[% END %]
83
                        [% info.end_period | html %]
73
                </span>
84
                    [% END %]
85
                    )
86
                [% END %]
87
                [% IF info.uri %]
88
                    <p style="margin-bottom: 0;"><span>URI: </span>[% info.uri | html %]</p>
89
                [% END %]
90
                [% IF info.source_of_information %]
91
                    <p style="margin-bottom: 0;"><span>Source of information: </span>[% info.source_of_information | html %]</p>
92
                [% END %]
93
                [% IF info.authority_record_number %]
94
                    <p style="margin-bottom: 0;"><span>Authority record control number or standard number: </span>[% info.authority_record_number | html %]</p>
95
                [% END %]
74
            </li>
96
            </li>
75
        [% END %]
97
        [% END %]
76
    [% CASE 'email_address' %]
98
    [% CASE 'email_address' %]
77
        [% IF info.email_address %]
99
        [% IF info.email_address %]
78
            <li>
100
            <li> <span>Email address: </span> [% info.email_address | html %] </li>
79
                <span> Email address: [% info.email_address | html %] </span>
80
            </li>
81
        [% END %]
101
        [% END %]
82
    [% CASE 'occupation' %]
102
    [% CASE 'occupation' %]
83
        [% IF info.occupation %]
103
        [% IF info.occupation %]
84
            <li>
104
            <li>
85
                <span>
105
                <span>Occupation: </span>
86
                    Occupation: [% info.occupation | html %]
106
                [% info.occupation | html %]
87
                    [% IF info.start_period || info.end_period %]
107
                [% IF info.start_period || info.end_period %]
88
                        ( [%~ IF info.start_period %]from: [% info.start_period | html %][% END %]
108
                    (
89
                        [% IF info.end_period %]until: [% info.end_period | html %][% END ~%]
109
                    [%~ IF info.start_period %]
90
                        )
110
                        [% tp('A period starting from', 'From: ') | html %]
111
                        [% info.start_period | html %]
91
                    [% END %]
112
                    [% END %]
92
                    [% IF info.uri %]<p style="margin-bottom: 0;">URI: [% info.uri | html %]</p>[% END %]
113
                    [% IF info.end_period %]
93
                    [% IF info.source_of_information %]<p style="margin-bottom: 0;">Source of information: [% info.source_of_information | html %]</p>[% END %]
114
                        [% tp('A period ending', 'Until: ') | html %]
94
                    [% IF info.authority_record_number %]<p style="margin-bottom: 0;">Authority record control number or standard number: [% info.authority_record_number | html %]</p>[% END %]
115
                        [% info.end_period | html %]
95
                </span>
116
                    [% END ~%]
117
                    )
118
                [% END %]
119
                [% IF info.uri %]
120
                    <p style="margin-bottom: 0;"><span>URI: </span>[% info.uri | html %]</p>
121
                [% END %]
122
                [% IF info.source_of_information %]
123
                    <p style="margin-bottom: 0;"><span>Source of information: </span>[% info.source_of_information | html %]</p>
124
                [% END %]
125
                [% IF info.authority_record_number %]
126
                    <p style="margin-bottom: 0;"><span>Authority record control number or standard number: </span>[% info.authority_record_number | html %]</p>
127
                [% END %]
96
            </li>
128
            </li>
97
        [% END %]
129
        [% END %]
98
    [% CASE 'place_of_birth' %]
130
    [% CASE 'place_of_birth' %]
99
        [% IF info.place_of_birth %]
131
        [% IF info.place_of_birth %]
100
            <li>
132
            <li> <span>Place of birth: </span>[% info.place_of_birth | html %] </li>
101
                <span> Place of birth: [% info.place_of_birth | html %] </span>
102
            </li>
103
        [% END %]
133
        [% END %]
104
    [% CASE 'place_of_death' %]
134
    [% CASE 'place_of_death' %]
105
        [% IF info.place_of_death %]
135
        [% IF info.place_of_death %]
106
            <li>
136
            <li> <span>Place of death: </span>[% info.place_of_death | html %] </li>
107
                <span> Place of death: [% info.place_of_death | html %] </span>
108
            </li>
109
        [% END %]
137
        [% END %]
110
    [% CASE 'uri' %]
138
    [% CASE 'uri' %]
111
        [% IF info.uri %]
139
        [% IF info.uri %]
112
            <li>
140
            <li> <span>URI: </span>[% info.uri | $raw | html %] </li>
113
                <span> URI: [% info.uri | $raw | html %] </span>
114
            </li>
115
        [% END %]
141
        [% END %]
116
    [% END %]
142
    [% END %]
117
[% END %]
143
[% END %]
118
- 

Return to bug 40598