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>
25 [% IF ( linkType=='seefrom' ) %]
27 [% ELSIF ( linkType=='seealso' ) %]
31 <span class="heading">
32 [% IF ( linkType=='seealso' ) %]
34 <a href="[% authidurl | url %][% authid | url %]">[% heading | html %]</a>
36 <a href="[% searchurl | url %][% heading | html %]">[% heading | html %]</a>
42 [% UNLESS ( type=='seefrom' || type=='seealso' ) %]
45 [% CASE 'earlier' %](Earlier heading)
46 [% CASE 'later' %](Later heading)
47 [% CASE 'acronym' %](Acronym)
48 [% CASE 'musical' %](Musical composition)
49 [% CASE 'broader' %](Broader heading)
50 [% CASE 'narrower' %](Narrower heading)
51 [% CASE 'parent' %](Immediate parent body)
52 [% CASE %][% IF type %]([% type | html %])
59 [% BLOCK authresult %]
60 [% IF ( summary.summary ) %][% summary.summary | html %]:[% END %]
61 [% UNLESS ( summary.summaryonly ) %]
62 <div class="authorizedheading">
63 [% FOREACH authorize IN summary.authorized %]
64 <span class="authorizedheading">[% authorize.heading | html %]</span>
67 [% IF ( marcflavour == 'UNIMARC' ) %]
68 [% IF summary.notes %]
69 <div class="authres_notes">
70 [% FOREACH note IN summary.notes %]
71 [% 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 ) %]
102 [% FOREACH seefro IN summary.seefrom %]
103 <div class="seefrom authref">
104 [% PROCESS showreference
105 heading=seefro.heading
113 [% IF ( summary.seealso ) %]
114 [% FOREACH seeals IN summary.seealso %]
115 <div class="seealso authref">
116 [% PROCESS showreference
117 heading=seeals.heading
130 [% CASE ['en', 'eng'] %]English
131 [% CASE ['fr', 'fre'] %]French
132 [% CASE ['it', 'ita'] %]Italian
133 [% CASE ['de', 'ger', 'deu'] %]German
134 [% CASE ['es', 'spa'] %]Spanish
135 [% CASE ['heb'] %]Hebrew
136 [% CASE ['ara'] %]Arabic
137 [% CASE ['gre'] %]Greek (modern)
138 [% CASE ['grc'] %]Greek (to 1453)