Bug 11759: (follow-up) Some fixes
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / includes / authorities.inc
1 [% BLOCK showhierarchy %]
2     [% FOREACH tree IN trees %]
3         [% PROCESS showtree tree = tree %]
4     [% END %]
5 [% END %]
6 [% BLOCK showtree %]
7     <ul class="hierarchy">
8         [% FOREACH node IN tree %]
9             <li id="hier[% node.authid %]" class="[% node.class %] authnode">
10             [% IF ( node.current_value ) %]
11                 <span class='currentauth'>[% node.value | html %]</span>
12             [% ELSE %]
13                 <a href="detail.pl?authid=[% node.authid %]" title="Term">[% node.value | html %]</a>
14             [% END %]
15             [% IF ( node.children && node.children.size > 0 ) %]
16                 [% PROCESS showtree tree = node.children %]
17             [% END %]
18             </li>
19         [% END %]
20     </ul>
21 [% END %]