[% 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 %]
[% FOREACH repet IN summary.repets %] [% repet | html %] [% UNLESS loop.last %] | [% END %] [% END %]
[% UNLESS ( summary.summaryonly ) %]
[% FOREACH authorize IN summary.authorized %] [% authorize.heading | html %] [% UNLESS loop.last %] | [% END %] [% END %]
[% IF ( marcflavour == 'UNIMARC' ) %] [% IF summary.notes %]
[% FOREACH note IN summary.notes %] [% note.note | html %] [% END %]
[% END %] [% IF summary.seealso %]
[% FOREACH see IN summary.seealso %] [% PROCESS showreference heading=see.heading linkType="" type=see.type search='' %] [% IF ! loop.last %] ; [% END %] [% END %]
[% END %] [% IF summary.otherscript %]
[% FOREACH other IN summary.otherscript %] [% PROCESS language lang=other.lang | trim %]: [% other.term %] [% IF ! loop.last %] ; [% END %] [% END %]
[% END %] [% ELSE %] [% IF ( summary.seefrom.size >= 1 ) %] used for/see from: [% FOREACH seefro IN summary.seefrom %]
[% PROCESS showreference heading=seefro.heading linkType='seefrom' type=seefro.type %]
[% END %] [% END %] [% IF ( summary.seealso.size >= 1 ) %] see also: [% FOREACH seeals IN summary.seealso %]
[% PROCESS showreference heading=seeals.heading linkType='seealso' type=seeals.type authid=seeals.authid %]
[% END %] [% END %] [% END # / IF marcflavour = 'UNIMARC' %] [% END # / UNLESS summary.summaryonly %] [% END # / BLOCK authresult %]