Bug 5202: merge authorities from the authority file and reservoir
[koha.git] / koha-tmpl / intranet-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">[% label | html %]</span>[% END %]
15         <span class="heading">
16         [% IF ( linkpath && search ) %]<a href="[% link | url %][% search | url %]">[% heading | html %]</a>
17         [% ELSE %][% heading | html %][% END %]
18         </span>
19         [% UNLESS ( type=='seefrom' || type=='seealso' ) %]<span class="type">[% SWITCH type %]
20         [% CASE 'earlier' %](Earlier heading)
21         [% CASE 'later' %](Later heading)
22         [% CASE 'acronym' %](Acronym)
23         [% CASE 'musical' %](Musical composition)
24         [% CASE 'broader' %](Broader heading)
25         [% CASE 'narrower' %](Narrower heading)
26         [% CASE 'parent' %](Immediate parent body)
27         [% CASE %][% IF type %]([% type | html %])[% END %]
28         [% END %]</span>[% END %]
29     [% END %]
30 [% END %]
31 [% BLOCK authresult %]
32     [% IF ( summary.summary ) %][% summary.summary | html %]:[% END %]
33     [% UNLESS ( summary.summaryonly ) %]
34         <div class="authorizedheading">
35         [% FOREACH authorize IN summary.authorized %]
36           <span class="authorizedheading">[% authorize.heading | html %]</span>
37         [% END %]
38         </div>
39         [% IF ( marcflavour == 'UNIMARC' ) %]
40           [% IF summary.notes %]
41            <div class="authres_notes">
42            [% FOREACH note IN summary.notes %]
43              [% note.note | html %]</span>
44            [% END %]
45            </div>
46           [% END %]
47           [% IF summary.seefrom %]
48             <div class="authres_seefrom">
49             [% FOREACH see IN summary.seefrom %]
50               [% PROCESS showreference heading=see.heading label="" type=see.type search='' %]
51               [% IF ! loop.last %] ; [% END %]
52             [% END %]
53             </div>
54           [% END %]
55           [% IF summary.seealso %]
56             <div class="authres_seealso">
57             [% FOREACH see IN summary.seealso %]
58               [% PROCESS showreference heading=see.heading label="" type=see.type search='' %]
59               [% IF ! loop.last %] ; [% END %]
60             [% END %]
61             </div>
62           [% END %]
63           [% IF summary.otherscript %]
64             <div class="authres_otherscript">
65             [% FOREACH other IN summary.otherscript %]
66               [% PROCESS language lang=other.lang | trim %]:
67               [% other.term %]
68               [% IF ! loop.last %] ; [% END %]
69             [% END %]
70             </div>
71           [% END %]
72
73         [% ELSE %]
74             [% IF ( summary.seefrom ) %]
75                 [% FOREACH seefro IN summary.seefrom %]
76                     <div class="seefrom authref">
77                     [% PROCESS showreference heading=seefro.heading label="used for/see from:" type=seefro.type search='' %]
78                     </div>
79                 [% END %]
80             [% END %]
81             [% IF ( summary.seealso ) %]
82                 [% FOREACH seeals IN summary.seealso %]
83                     <div class="seealso authref">
84                     [% PROCESS showreference heading=seeals.heading label="see also:" type=seeals.type linkpath=link search=seeals.search %]
85                     </div>
86                 [% END %]
87             [% END %]
88         [% END %]
89     [% END %]
90 [% END %]
91 [% BLOCK language %]
92   [% SWITCH lang %]
93    [% CASE ['en', 'eng'] %]English
94    [% CASE ['fr', 'fre'] %]French
95    [% CASE ['it', 'ita'] %]Italian
96    [% CASE ['de', 'ger', 'deu'] %]German
97    [% CASE ['es', 'spa'] %]Spanish
98    [% CASE ['heb'] %]Hebrew
99    [% CASE ['ara'] %]Arabic
100    [% CASE ['gre'] %]Greek (modern)
101    [% CASE ['grc'] %]Greek (to 1453)
102    [% CASE %][% lang %]
103   [% END %]
104 [% END %]