Bug 10948: make reference labels translatable in OPAC auth results
[koha.git] / koha-tmpl / opac-tmpl / prog / en / includes / authorities-search-results.inc
1 [% BLOCK showreference %]
2     [% IF marcflavour == 'UNIMARC' %]
3         [% SWITCH type %]
4         [% CASE 'broader' %]
5             <span class="BT">BT: [% heading | html %]</span>
6         [% CASE 'narrower' %]
7             <span class="NT">NT: [% heading | html %]</span>
8         [% CASE 'seefrom' %]
9             <span class="UF">UF: [% heading | html %]</span>
10         [% CASE 'seealso' %]
11             <span class="RT">RT: [% heading | html %]</span>
12         [% END %]
13     [% ELSE %]
14         [% IF ( label ) %]<span class="label">[% SWITCH label %]
15         [% CASE 'see also:' %]see also:
16         [% CASE 'used for/see from:' %]used for/see from:
17         [% END %]</span>[% END %]
18         <span class="heading">
19         [% IF ( linkpath && search ) %]<a href="[% link | url %][% search | url %]">[% heading | html %]</a>
20         [% ELSE %][% heading | html %][% END %]
21         </span>
22         [% UNLESS ( type=='seefrom' || type=='seealso' ) %]<span class="type">[% SWITCH type %]
23         [% CASE 'earlier' %](Earlier heading)
24         [% CASE 'later' %](Later heading)
25         [% CASE 'acronym' %](Acronym)
26         [% CASE 'musical' %](Musical composition)
27         [% CASE 'broader' %](Broader heading)
28         [% CASE 'narrower' %](Narrower heading)
29         [% CASE 'parent' %](Immediate parent body)
30         [% CASE %][% IF type %]([% type | html %])[% END %]
31         [% END %]</span>[% END %]
32     [% END %]
33 [% END %]
34 [% BLOCK authresult %]
35     [% IF ( summary.summary ) %][% summary.summary | html %]:[% END %]
36     [% UNLESS ( summary.summaryonly ) %]
37         <div class="authorizedheading">
38           [% FOREACH authorize IN summary.authorized %]
39             <span class="authorizedheading">[% authorize.heading | html %]</span>
40           [% END %]
41         </div>
42         [% IF ( marcflavour == 'UNIMARC' ) %]
43             [% IF summary.notes %]
44              <div class="authres_notes">
45              [% FOREACH note IN summary.notes %]
46                [% note.note | html %]</span>
47              [% END %]
48              </div>
49             [% END %]
50             [% IF summary.seealso %]
51               <div class="authres_seealso">
52               [% FOREACH see IN summary.seealso %]
53                  [% PROCESS showreference heading=see.heading label="" type=see.type search='' %]
54                  [% IF ! loop.last %] ; [% END %]
55               [% END %]
56               </div>
57             [% END %]
58             [% IF summary.otherscript %]
59               <div class="authres_otherscript">
60               [% FOREACH other IN summary.otherscript %]
61                 [% PROCESS language lang=other.lang | trim %]:
62                 [% other.term %]
63                 [% IF ! loop.last %] ; [% END %]
64               [% END %]
65               </div>
66             [% END %]
67         [% ELSE %]
68             [% IF ( summary.seefrom ) %]
69                 [% FOREACH seefro IN summary.seefrom %]
70                     <div class="seefrom authref">
71                     [% PROCESS showreference heading=seefro.heading label="used for/see from:" type=seefro.type search='' %]
72                     </div>
73                 [% END %]
74             [% END %]
75             [% IF ( summary.seealso ) %]
76                 [% FOREACH seeals IN summary.seealso %]
77                     <div class="seealso authref">
78                     [% PROCESS showreference heading=seeals.heading label="see also:" type=seeals.type linkpath=link search=seeals.search %]
79                     </div>
80                 [% END %]
81             [% END %]
82         [% END %]
83     [% END %]
84 [% END %]