1 [% BLOCK showreference %]
4 heading: the heading itself
5 linkType: currently 'seefrom' or 'seealso', controls the label for the entry
7 authid: if it is a linked authority, its authid
9 [% SET authidurl = '/cgi-bin/koha/authorities/detail.pl?authid=' %]
10 [% SET searchurl = '/cgi-bin/koha/authorities/authorities-home.pl?op=do_search&type=intranet&marclist=any&operator=contains&orderby=HeadingAsc&value=' %]
12 [% IF marcflavour == 'UNIMARC' %]
15 <span class="BT">BT: [% heading | html %]</span>
17 <span class="NT">NT: [% heading | html %]</span>
19 <span class="UF">UF: [% heading | html %]</span>
21 <span class="RT">RT: [% heading | html %]</span>
24 <span class="heading">
25 [% IF ( linkType=='seealso' ) %]
27 <a href="[% authidurl | url %][% authid | url %]">[% heading | html %]</a>
29 <a href="[% searchurl | url %][% heading | html %]">[% heading | html %]</a>
35 [% UNLESS ( type=='seefrom' || type=='seealso' ) %]
38 [% CASE 'earlier' %](Earlier heading)
39 [% CASE 'later' %](Later heading)
40 [% CASE 'acronym' %](Acronym)
41 [% CASE 'musical' %](Musical composition)
42 [% CASE 'broader' %](Broader heading)
43 [% CASE 'narrower' %](Narrower heading)
44 [% CASE 'parent' %](Immediate parent body)
45 [% CASE %][% IF type %]([% type | html %])
52 [% BLOCK authresult %]
53 [% IF ( summary.summary ) %][% summary.summary | html %]:[% END %]
54 <div class="authres_repet">
55 [% FOREACH repet IN summary.repets %]
56 <span>[% repet | html %]</span>
57 [% UNLESS loop.last %] | [% END %]
60 [% UNLESS ( summary.summaryonly ) %]
61 <div class="authorizedheading">
62 [% FOREACH authorize IN summary.authorized %]
63 <span class="authorizedheading">[% authorize.heading | html %]</span>
64 [% UNLESS loop.last %] | [% END %]
67 [% IF ( marcflavour == 'UNIMARC' ) %]
68 [% IF summary.notes %]
69 <div class="authres_notes">
70 [% FOREACH note IN summary.notes %]
71 <span>[% note.note | html %]</span>
75 [% IF summary.seefrom %]
76 <div class="authres_seefrom">
77 [% FOREACH see IN summary.seefrom %]
78 [% PROCESS showreference heading=see.heading linkType="" type=see.type search='' %]
79 [% IF ! loop.last %] ; [% END %]
83 [% IF summary.seealso %]
84 <div class="authres_seealso">
85 [% FOREACH see IN summary.seealso %]
86 [% PROCESS showreference heading=see.heading linkType="" type=see.type search='' %]
87 [% IF ! loop.last %] ; [% END %]
91 [% IF summary.otherscript %]
92 <div class="authres_otherscript">
93 [% FOREACH other IN summary.otherscript %]
94 [% PROCESS language lang=other.lang | trim %]:
96 [% IF ! loop.last %] ; [% END %]
101 [% IF ( summary.seefrom.size >= 1 ) %]
102 <div class="seefrom">
103 <span class="seefrom">used for/see from:</span>
104 [% FOREACH seefro IN summary.seefrom %]
105 <div class="authref">
106 [% PROCESS showreference
107 heading=seefro.heading
116 [% IF ( summary.seealso.size >= 1 ) %]
117 <div class="seealso">
118 <span class="seealso">see also:</span>
119 [% FOREACH seeals IN summary.seealso %]
120 <div class="authref">
121 [% PROCESS showreference
122 heading=seeals.heading
136 [% CASE ['en', 'eng'] %]English
137 [% CASE ['fr', 'fre'] %]French
138 [% CASE ['it', 'ita'] %]Italian
139 [% CASE ['de', 'ger', 'deu'] %]German
140 [% CASE ['es', 'spa'] %]Spanish
141 [% CASE ['heb'] %]Hebrew
142 [% CASE ['ara'] %]Arabic
143 [% CASE ['gre'] %]Greek (modern)
144 [% CASE ['grc'] %]Greek (to 1453)