Koha/koha-tmpl/intranet-tmpl/prog/en/includes/authorities.inc
Jonathan Druart 5825026448 Bug 21526: uri escape TT variables when used in 'a href'
This patch has been generated with the script provided on bug 21576.
It only affects variable used in the href attribute of a link *when*
href it the first attribute of the node (grep "a href")

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
2018-10-26 17:09:57 +00:00

21 lines
773 B
HTML

[% BLOCK showhierarchy %]
[% FOREACH tree IN trees %]
[% PROCESS showtree tree = tree %]
[% END %]
[% END %]
[% BLOCK showtree %]
<ul class="hierarchy">
[% FOREACH node IN tree %]
<li id="hier[% node.authid | html %]" class="[% node.class | html %] authnode">
[% IF ( node.current_value ) %]
<span class='currentauth'>[% node.value | html %]</span>
[% ELSE %]
<a href="detail.pl?authid=[% node.authid | uri %]" title="Term">[% node.value | html %]</a>
[% END %]
[% IF ( node.children && node.children.size > 0 ) %]
[% PROCESS showtree tree = node.children %]
[% END %]
</li>
[% END %]
</ul>
[% END %]