[% BLOCK showhierarchy %]
[% FOREACH tree IN trees %]
[% PROCESS showtree tree = tree marc = marc %]
[% END %]
[% END %]
[% BLOCK showtree %]
[% FOREACH node IN tree %]
-
[% IF ( node.current_value ) %]
[% node.value | html %]
[% ELSE %]
[% node.value | html %]
[% END %]
[% IF ( node.children && node.children.size > 0 ) %]
[% PROCESS showtree tree = node.children marc = marc %]
[% END %]
[% END %]
[% END %]
[% BLOCK authtypelabel %]
[% UNLESS ( type=='seefrom' || type=='seealso' || type=='' ) %]
[% FILTER trim %][% 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 %][% type | html %]
[% END %][% END %]
[% END %]
[% END %]
[% BLOCK otherscript %]
[% FOREACH heading IN headings %]
[% IF heading.category == wantcategory %]
[% IF heading.direction == 'ltr' %]
[% heading.term | html %]
[% ELSIF heading.direction == 'rtl' %]
[% heading.term | html %]
[% END %]
[% END %]
[% END %]
[% END %]
[% BLOCK authheadingdisplay %]
[% IF authid %][% heading | html %]
[% ELSIF search %][% heading | html %]
[% ELSE %][% heading | html %]
[% 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 | html %]
[% END %]
[% END %]