Bug 29602: (follow-up) Fix TT tags broken due to missing %
[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 marc = marc %]
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 | uri %]&marc=[% marc | uri %]" title="Term">[% node.value | html %]</a>
15             [% END %]
16             [% IF ( node.children && node.children.size > 0 ) %]
17                 [% PROCESS showtree tree = node.children marc = marc %]
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' %]<span>Earlier heading</span>
28         [% CASE 'later' %]<span>Later heading</span>
29         [% CASE 'acronym' %]<span>Acronym</span>
30         [% CASE 'musical' %]<span>Musical composition</span>
31         [% CASE 'broader' %]<span>Broader heading</span>
32         [% CASE 'narrower' %]<span>Narrower heading</span>
33         [% CASE %]<span>[% type | html %]</span>
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 | uri %]">[% 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 | uri %]">[% heading | html %]</a>
57     [% ELSE %][% heading | html %]
58     [% END %]
59 [% END %]
60
61 [% BLOCK language %]
62     [% SWITCH lang %]
63         [% CASE ['en', 'eng'] %]<span>English</span>
64         [% CASE ['fr', 'fre'] %]<span>French</span>
65         [% CASE ['it', 'ita'] %]<span>Italian</span>
66         [% CASE ['de', 'ger', 'deu'] %]<span>German</span>
67         [% CASE ['es', 'spa'] %]<span>Spanish</span>
68         [% CASE %]<span>[% lang | html %]</span>
69     [% END %]
70 [% END %]