[% BLOCK showreference %]
[% 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 ( label ) %][% label | html %][% END %]
[% IF ( linkpath && search ) %][% heading | html %]
[% 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 %]
[% END %]
[% END %]
[% BLOCK authresult %]
[% IF ( summary.summary ) %][% summary.summary | html %]:[% END %]
[% UNLESS ( summary.summaryonly ) %]
[% FOREACH authorize IN summary.authorized %]
[% authorize.heading | html %]
[% 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 label="" 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 ) %]
[% FOREACH seefro IN summary.seefrom %]
[% PROCESS showreference heading=seefro.heading label="used for/see from:" type=seefro.type search='' %]
[% END %]
[% END %]
[% IF ( summary.seealso ) %]
[% FOREACH seeals IN summary.seealso %]
[% PROCESS showreference heading=seeals.heading label="see also:" type=seeals.type linkpath=link search=seeals.search %]
[% END %]
[% END %]
[% END %]
[% END %]
[% END %]
[% BLOCK language %]
[% SWITCH lang %]
[% CASE ['en', 'eng'] %]English
[% CASE ['fr', 'fre'] %]French
[% CASE ['it', 'ita'] %]Italian
[% CASE ['de', 'ger', 'deu'] %]German
[% CASE ['es', 'spa'] %]Spanish
[% CASE %][% lang %]
[% END %]
[% END %]