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/opac-authoritiesdetail.pl?authid=' %]
10 [% SET searchurl = '/cgi-bin/koha/opac-authorities-home.pl?op=do_search&type=opac&operator=contains&marclist=mainentry&and_or=and&orderby=HeadingAsc&value=' %]
11 [% IF marcflavour == 'UNIMARC' %]
14 <span class="BT">BT: [% heading | html %]</span>
16 <span class="NT">NT: [% heading | html %]</span>
18 <span class="UF">UF: [% heading | html %]</span>
20 <span class="RT">RT: [% heading | html %]</span>
23 <span class="heading">
24 [% IF ( linkType=='seealso' ) %]
26 <a href="[% authidurl | url %][% authid | url %]">[% heading | html %]</a>
28 <a href="[% searchurl | url %][% heading | html %]">[% heading | html %]</a>
34 [% UNLESS ( type=='seefrom' || type=='seealso' ) %]
37 [% CASE 'earlier' %](Earlier heading)
38 [% CASE 'later' %](Later heading)
39 [% CASE 'acronym' %](Acronym)
40 [% CASE 'musical' %](Musical composition)
41 [% CASE 'broader' %](Broader heading)
42 [% CASE 'narrower' %](Narrower heading)
43 [% CASE 'parent' %](Immediate parent body)
45 [% IF type %]([% type | html %])[% END %]
48 [% END # / UNLESS seefrom %]
49 [% END # / IF marcflavour = 'UNIMARC' %]
50 [% END # / BLOCK showreference %]
52 [% BLOCK authresult %]
53 [% IF ( summary.label ) %][% summary.label | html %]:[% END %]
54 [% IF summary.summary %]
55 <div class="authority-summary">
59 [% UNLESS ( summary.summaryonly ) %]
60 <div class="authorizedheading">
61 [% FOREACH authorize IN summary.authorized %]
62 <span class="authorizedheading">[% authorize.heading | html %]</span>
63 [% UNLESS loop.last %] | [% END %]
66 [% IF ( marcflavour == 'UNIMARC' ) %]
67 [% IF summary.notes %]
68 <div class="authres_notes">
69 [% FOREACH note IN summary.notes %]
70 <span>[% note.note | html %]</span>
74 [% IF summary.seealso %]
75 <div class="authres_seealso">
76 [% FOREACH see IN summary.seealso %]
77 [% PROCESS showreference heading=see.heading linkType="" type=see.type search='' %]
78 [% IF ! loop.last %] ; [% END %]
82 [% IF summary.otherscript %]
83 <div class="authres_otherscript">
84 [% FOREACH other IN summary.otherscript %]
85 [% PROCESS language lang=other.lang | trim %]:
87 [% IF ! loop.last %] ; [% END %]
92 [% IF ( summary.seefrom.size >= 1 ) %]
93 <span class="seefrom">used for/see from:</span>
94 [% FOREACH seefro IN summary.seefrom %]
95 <div class="seefrom authref">
96 [% PROCESS showreference
97 heading=seefro.heading
104 [% IF ( summary.seealso.size >= 1 ) %]
105 <span class="seealso">see also:</span>
106 [% FOREACH seeals IN summary.seealso %]
107 <div class="seealso authref">
108 [% PROCESS showreference
109 heading=seeals.heading
117 [% END # / IF marcflavour = 'UNIMARC' %]
118 [% END # / UNLESS summary.summaryonly %]
119 [% END # / BLOCK authresult %]