Lines 1-19
Link Here
|
1 |
[% BLOCK showhierarchy %] |
1 |
[% BLOCK showhierarchy %] |
2 |
[% FOREACH tree IN trees %] |
2 |
[% FOREACH tree IN trees %] |
|
|
3 |
[% PROCESS showtree tree = tree %] |
4 |
[% END %] |
5 |
[% END %] |
6 |
[% BLOCK showtree %] |
3 |
<ul class="hierarchy"> |
7 |
<ul class="hierarchy"> |
4 |
[% FOREACH node IN tree %] |
8 |
[% FOREACH node IN tree %] |
5 |
<li id="hier[% node.authid %]" class="[% node.class %] authnode"> |
9 |
<li id="hier[% node.authid %]" class="[% node.class %] authnode"> |
6 |
[% IF ( node.current_value ) %] |
10 |
[% IF ( node.current_value ) %] |
7 |
<span id='currentauth'>[% node.value %]</span> |
11 |
<span id='currentauth'>[% node.value | html %]</span> |
8 |
[% ELSE %] |
12 |
[% ELSE %] |
9 |
<a href="detail.pl?authid=[% node.authid %]" title="Term">[% node.value %]</a> |
13 |
<a href="detail.pl?authid=[% node.authid %]" title="Term">[% node.value | html %]</a> |
10 |
[% END %] |
14 |
[% END %] |
11 |
[% IF ( node.children.size > 0 ) %] |
15 |
[% IF ( node.children.size > 0 ) %] |
12 |
[% PROCESS showhierarchy trees = [ node.children ] %] |
16 |
[% PROCESS showtree tree = node.children %] |
13 |
[% END %] |
17 |
[% END %] |
14 |
</li> |
18 |
</li> |
15 |
[% END %] |
19 |
[% END %] |
16 |
</ul> |
20 |
</ul> |
17 |
[% END %] |
|
|
18 |
[% END %] |
21 |
[% END %] |
19 |
|
22 |
|