2 [% BLOCK showreference %]
4 [%# heading: the heading itself %]
5 [%# linkType: currently 'seefrom' or 'seealso', controls the label for the entry type: %]
6 [%# authid: if it is a linked authority, its authid %]
8 [% SET authidurl = '/cgi-bin/koha/authorities/detail.pl?authid=' %]
9 [% SET searchurl = '/cgi-bin/koha/authorities/authorities-home.pl?op=do_search&type=intranet&marclist=any&operator=contains&orderby=HeadingAsc&value=' %]
11 [% IF marcflavour == 'UNIMARC' %]
13 [% link = BLOCK %]<a href="[% authidurl _ authid | url %]">[% heading | html %]</a>[% END %]
15 [% link = BLOCK %][% heading | html %][% END %]
19 <span class="BT"><abbr title="Broader Term">BT</abbr>: [% link | $raw %]</span>
21 <span class="NT"><abbr title="Narrower Term">NT</abbr>: [% link | $raw %]</span>
23 <span class="UF"><abbr title="Used For">UF</abbr>: [% link | $raw %]</span>
25 <span class="RT"><abbr title="Related Term">RT</abbr>: [% link | $raw %]</span>
28 <span class="heading">
29 [% IF ( linkType=='seealso' ) %]
31 <a href="[% authidurl | url %][% authid | uri %]">[% heading | html %]</a>
33 <a href="[% searchurl | url %][% heading | uri %]">[% heading | html %]</a>
39 [% UNLESS ( type=='seefrom' || type=='seealso' ) %]
42 [% CASE 'earlier' %](Earlier heading)
43 [% CASE 'later' %](Later heading)
44 [% CASE 'acronym' %](Acronym)
45 [% CASE 'musical' %](Musical composition)
46 [% CASE 'broader' %](Broader heading)
47 [% CASE 'narrower' %](Narrower heading)
48 [% CASE 'parent' %](Immediate parent body)
49 [% CASE %][% IF type %]([% type | html %])
56 [% BLOCK authresult %]
57 [% IF ( summary.label ) %][% summary.label | html %]:[% END %]
58 [% IF summary.summary %]
59 <div class="authority-summary">
60 [% summary.summary | html %]
63 [% UNLESS ( summary.summaryonly ) %]
64 <div class="authorizedheading">
65 [% FOREACH authorize IN summary.authorized %]
66 <span class="authorizedheading">[% authorize.heading | html %]</span>
67 [% UNLESS loop.last %] | [% END %]
70 [% IF ( marcflavour == 'UNIMARC' ) %]
71 [% IF summary.notes %]
72 <div class="authres_notes">
73 [% FOREACH note IN summary.notes %]
74 <span>[% note.note | html %]</span>
78 [% IF summary.seefrom %]
79 <div class="authres_seefrom">
80 [% FOREACH see IN summary.seefrom %]
81 [% PROCESS showreference heading=see.heading linkType="" type=see.type authid=see.authid %]
82 [% IF ! loop.last %] ; [% END %]
86 [% IF summary.seealso %]
87 <div class="authres_seealso">
88 [% FOREACH see IN summary.seealso %]
89 [% PROCESS showreference heading=see.heading linkType="" type=see.type authid=see.authid %]
90 [% IF ! loop.last %] ; [% END %]
94 [% IF summary.otherscript %]
95 <div class="authres_otherscript">
96 [% FOREACH other IN summary.otherscript %]
97 [% PROCESS language lang=other.lang | trim %]:
98 [% other.term | html %]
99 [% IF ! loop.last %] ; [% END %]
104 [% IF ( summary.seefrom.size >= 1 ) %]
105 <div class="seefrom">
106 <span class="seefrom">used for/see from:</span>
107 [% FOREACH seefro IN summary.seefrom %]
108 <div class="authref">
109 [%# Following on one line for translatability %]
110 [% PROCESS showreference heading=seefro.heading linkType='seefrom' type=seefro.type authid=seefro.authid %]
115 [% IF ( summary.seealso.size >= 1 ) %]
116 <div class="seealso">
117 <span class="seealso">see also:</span>
118 [% FOREACH seeals IN summary.seealso %]
119 <div class="authref">
120 [%# Following on one line for translatability %]
121 [% PROCESS showreference heading=seeals.heading linkType='seealso' type=seeals.type authid=seeals.authid %]
131 [% CASE ['en', 'eng'] %]English
132 [% CASE ['fr', 'fre'] %]French
133 [% CASE ['it', 'ita'] %]Italian
134 [% CASE ['de', 'ger', 'deu'] %]German
135 [% CASE ['es', 'spa'] %]Spanish
136 [% CASE ['heb'] %]Hebrew
137 [% CASE ['ara'] %]Arabic
138 [% CASE ['gre'] %]Greek (modern)
139 [% CASE ['grc'] %]Greek (to 1453)
140 [% CASE %][% lang | html %]