Lines 1-3
Link Here
|
|
|
1 |
[% USE Math %] |
1 |
[% BLOCK showhierarchy %] |
2 |
[% BLOCK showhierarchy %] |
2 |
[% FOREACH tree IN trees %] |
3 |
[% FOREACH tree IN trees %] |
3 |
[% PROCESS showtree tree = tree marc = marc %] |
4 |
[% PROCESS showtree tree = tree marc = marc %] |
Lines 7-13
Link Here
|
7 |
[% BLOCK showtree %] |
8 |
[% BLOCK showtree %] |
8 |
<ul class="hierarchy"> |
9 |
<ul class="hierarchy"> |
9 |
[% FOREACH node IN tree %] |
10 |
[% FOREACH node IN tree %] |
10 |
<li id="hier[% node.authid | html %]" class="[% node.class | html %] authnode"> |
11 |
<li id="hier[% node.authid | html %]_[% Math.rand( 1 ).remove( '\.' ) | html %]" class="[% node.class | html %] authnode"> |
11 |
[% IF ( node.current_value ) %] |
12 |
[% IF ( node.current_value ) %] |
12 |
<span class="currentauth">[% node.value | html %]</span> |
13 |
<span class="currentauth">[% node.value | html %]</span> |
13 |
[% ELSE %] |
14 |
[% ELSE %] |
14 |
- |
|
|