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 [% 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.seefrom %]
69 <div class="authres_seefrom">
70 [% FOREACH see IN summary.seefrom %]
71 [% PROCESS showreference heading=see.heading linkType="" type=see.type search='' %]
72 [% IF ! loop.last %] ; [% END %]
76 [% IF summary.seealso %]
77 <div class="authres_seealso">
78 [% FOREACH see IN summary.seealso %]
79 [% PROCESS showreference heading=see.heading linkType="" type=see.type search='' %]
80 [% IF ! loop.last %] ; [% END %]
84 [% IF summary.otherscript %]
85 <div class="authres_otherscript">
86 [% FOREACH other IN summary.otherscript %]
87 [% PROCESS language lang=other.lang | trim %]:
89 [% IF ! loop.last %] ; [% END %]
94 [% IF ( summary.seefrom.size >= 1 ) %]
96 <span class="seefrom">used for/see from:</span>
97 [% FOREACH seefro IN summary.seefrom %]
99 [% PROCESS showreference
100 heading=seefro.heading
109 [% IF ( summary.seealso.size >= 1 ) %]
110 <div class="seealso">
111 <span class="seealso">see also:</span>
112 [% FOREACH seeals IN summary.seealso %]
113 <div class="authref">
114 [% PROCESS showreference
115 heading=seeals.heading
129 [% CASE ['en', 'eng'] %]English
130 [% CASE ['fr', 'fre'] %]French
131 [% CASE ['it', 'ita'] %]Italian
132 [% CASE ['de', 'ger', 'deu'] %]German
133 [% CASE ['es', 'spa'] %]Spanish
134 [% CASE ['heb'] %]Hebrew
135 [% CASE ['ara'] %]Arabic
136 [% CASE ['gre'] %]Greek (modern)
137 [% CASE ['grc'] %]Greek (to 1453)