[% INCLUDE 'authorities-toolbar.inc' %]
[% IF ( displayhierarchy ) %]
[% MACRO jsinclude BLOCK %]
[% INCLUDE 'authorities_js.inc' %]
[% IF ( displayhierarchy ) %]
[% Asset.js("lib/jquery/plugins/jstree/jstree-3.3.12.min.js") | $raw %]
[% END %]
[% END %]
[% INCLUDE 'intranet-bottom.inc' %]
[% PROCESS showhierarchy trees = loophierarchies %]
[% END %]
[% IF ( unknownauthid ) %]
Authority does not exist
[% ELSE %]Authority #[% authid | html %] ([% authtypetext | html %])
[% IF count %]
Used in [% count | html %] record(s)
[% ELSE %]
This authority is not used in any records.
[% END %]
[% WRAPPER tabs id= "authoritiestabs" %]
[% WRAPPER tabs_nav %]
[% FOREACH BIG_LOO IN BIG_LOOP %]
[% WRAPPER tab_item tabname= "tab${ BIG_LOO.number }XX" %]
[% BIG_LOO.number | html %]
[% END %]
[% END %]
[% END # /WRAPPER tabs_nav %]
[% WRAPPER tab_panels %]
[% FOREACH BIG_LOO IN BIG_LOOP %]
[% WRAPPER tab_panel tabname="tab${ BIG_LOO.number }XX" %]
[% FOREACH innerloo IN BIG_LOO.innerloop %]
[% IF ( innerloo.tag_number ) %]
[% innerloo.tag_number | html %]
[% IF (innerloo.defined("ind1") ) %]
[% innerloo.ind1 | html %][% innerloo.ind2 | html %]
[% END %]
[% IF (innerloo.tag_desc) %]
- [% innerloo.tag_desc | html %]
[% END %]
[% ELSE %]
[% END # /IF ( innerloo.tag_number ) %]
[% FOREACH subfiel IN innerloo.subfield %]
[% END #/FOREACH subfiel %]
[% END # /FOREACH innerloo %]
[% END # /tab_panel#tab${ BIG_LOO.number }XX %]
[% END # /FOREACH BIG_LOO %]
[% END # /WRAPPER tab_panels %]
[% END # /WRAPPER tabs %]
[% END # /IF ( unknownauthid ) %]
[% UNLESS ( subfiel.hide_marc ) %]
[% subfiel.marc_subfield | html %]
[% END %]
[% subfiel.long_desc | html %]
[% IF ( subfiel.is_url ) %]
[% subfiel.marc_value | html %]
[% ELSE %]
[% subfiel.marc_value | html %]
[% END %]