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.summary ) %][% summary.summary | html %]:[% END %]
54 [% UNLESS ( summary.summaryonly ) %]
55 <div class="authorizedheading">
56 [% FOREACH authorize IN summary.authorized %]
57 <span class="authorizedheading">[% authorize.heading | html %]</span>
60 [% IF ( marcflavour == 'UNIMARC' ) %]
61 [% IF summary.notes %]
62 <div class="authres_notes">
63 [% FOREACH note IN summary.notes %]
64 [% note.note | html %]</span>
68 [% IF summary.seealso %]
69 <div class="authres_seealso">
70 [% FOREACH see IN summary.seealso %]
71 [% PROCESS showreference heading=see.heading linkType="" type=see.type search='' %]
72 [% IF ! loop.last %] ; [% END %]
76 [% IF summary.otherscript %]
77 <div class="authres_otherscript">
78 [% FOREACH other IN summary.otherscript %]
79 [% PROCESS language lang=other.lang | trim %]:
81 [% IF ! loop.last %] ; [% END %]
86 [% IF ( summary.seefrom.size >= 1 ) %]
87 <span class="seefrom">used for/see from:</span>
88 [% FOREACH seefro IN summary.seefrom %]
89 <div class="seefrom authref">
90 [% PROCESS showreference
91 heading=seefro.heading
98 [% IF ( summary.seealso.size >= 1 ) %]
99 <span class="seealso">see also:</span>
100 [% FOREACH seeals IN summary.seealso %]
101 <div class="seealso authref">
102 [% PROCESS showreference
103 heading=seeals.heading
111 [% END # / IF marcflavour = 'UNIMARC' %]
112 [% END # / UNLESS summary.summaryonly %]
113 [% END # / BLOCK authresult %]