Bug 13618: Add html filters to all the variables
[koha.git] / koha-tmpl / opac-tmpl / bootstrap / en / includes / opac-authorities.inc
1 [% BLOCK showhierarchy %]
2     [% FOREACH tree IN trees %]
3         [% PROCESS showtree tree = tree %]
4     [% END %]
5 [% END %]
6
7 [% BLOCK showtree %]
8     <ul class="hierarchy">
9         [% FOREACH node IN tree %]
10             <li id="hier[% node.authid | html %]" class="[% node.class | html %] authnode">
11             [% IF ( node.current_value ) %]
12                 <span class="currentauth">[% node.value | html %]</span>
13             [% ELSE %]
14                 <a href="opac-authoritiesdetail.pl?authid=[% node.authid | html %]" title="Term">[% node.value | html %]</a>
15             [% END %]
16             [% IF ( node.children && node.children.size > 0 ) %]
17                 [% PROCESS showtree tree = node.children %]
18             [% END %]
19             </li>
20         [% END %]
21     </ul>
22 [% END %]
23
24 [% BLOCK authtypelabel %]
25     [% UNLESS ( type=='seefrom' || type=='seealso' || type=='' ) %]
26         <span class="type">[% FILTER trim %][% SWITCH type %]
27         [% CASE 'earlier' %]Earlier heading
28         [% CASE 'later' %]Later heading
29         [% CASE 'acronym' %]Acronym
30         [% CASE 'musical' %]Musical composition
31         [% CASE 'broader' %]Broader heading
32         [% CASE 'narrower' %]Narrower heading
33         [% CASE %][% type | html %]
34         [% END %][% END %]</span>
35     [% END %]
36 [% END %]
37
38 [% BLOCK otherscript %]
39     [% FOREACH heading IN headings %]
40         [% IF heading.category == wantcategory %]
41             [% IF heading.direction == 'ltr' %]
42                 <div class="heading otherscript [% heading.category | html %]">
43                 <span class="[% heading.category | html %]">[% heading.term | html %]</span>
44                 </div>
45             [% ELSIF heading.direction == 'rtl' %]
46                 <div class="heading otherscript [% heading.category | html %] rtl">
47                 <span class="[% heading.category | html %]">[% heading.term | html %]</span>
48                 </div>
49             [% END %]
50         [% END %]
51     [% END %]
52 [% END %]
53
54 [% BLOCK authheadingdisplay %]
55     [% IF authid %]<a href="/cgi-bin/koha/opac-authoritiesdetail.pl?authid=[% authid | html %]">[% heading | html %]</a>
56     [% ELSIF search %]<a href="/cgi-bin/koha/opac-authorities-home.pl?op=do_search&amp;type=opac&amp;operator=contains&amp;marclist=mainentry&amp;and_or=and&amp;orderby=HeadingAsc&amp;value=[% search | html %]">[% heading | html %]</a>
57     [% ELSE %][% heading | html %]
58     [% END %]
59 [% END %]
60
61 [% BLOCK language %]
62     [% SWITCH lang %]
63         [% CASE ['en', 'eng'] %]English
64         [% CASE ['fr', 'fre'] %]French
65         [% CASE ['it', 'ita'] %]Italian
66         [% CASE ['de', 'ger', 'deu'] %]German
67         [% CASE ['es', 'spa'] %]Spanish
68         [% CASE %][% lang | html %]
69     [% END %]
70 [% END %]