[% BLOCK showreference %] [%# Parameters: heading: the heading itself linkType: currently 'seefrom' or 'seealso', controls the label for the entry type: authid: if it is a linked authority, its authid %] [% SET authidurl = '/cgi-bin/koha/opac-authoritiesdetail.pl?authid=' %] [% SET searchurl = '/cgi-bin/koha/opac-authorities-home.pl?op=do_search&type=opac&operator=contains&marclist=mainentry&and_or=and&orderby=HeadingAsc&value=' %] [% IF marcflavour == 'UNIMARC' %] [% SWITCH type %] [% CASE 'broader' %] BT: [% heading | html %] [% CASE 'narrower' %] NT: [% heading | html %] [% CASE 'seefrom' %] UF: [% heading | html %] [% CASE 'seealso' %] RT: [% heading | html %] [% END %] [% ELSE %] [% IF ( linkType=='seealso' ) %] [% IF ( authid ) %] [% heading | html %] [% ELSE %] [% heading | html %] [% END %] [% ELSE %] [% heading | html %] [% END %] [% UNLESS ( type=='seefrom' || type=='seealso' ) %] [% SWITCH type %] [% CASE 'earlier' %](Earlier heading) [% CASE 'later' %](Later heading) [% CASE 'acronym' %](Acronym) [% CASE 'musical' %](Musical composition) [% CASE 'broader' %](Broader heading) [% CASE 'narrower' %](Narrower heading) [% CASE 'parent' %](Immediate parent body) [% CASE %] [% IF type %]([% type | html %])[% END %] [% END %] [% END # / UNLESS seefrom %] [% END # / IF marcflavour = 'UNIMARC' %] [% END # / BLOCK showreference %] [% BLOCK authresult %] [% IF ( summary.summary ) %][% summary.summary | html %]:[% END %]