Merge branch 'bootstrap-opac'
[koha.git] / koha-tmpl / opac-tmpl / bootstrap / 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' ) %]
20             <span class="type">
21                 [% SWITCH type %]
22                     [% CASE 'earlier' %](Earlier heading)
23                     [% CASE 'later' %](Later heading)
24                     [% CASE 'acronym' %](Acronym)
25                     [% CASE 'musical' %](Musical composition)
26                     [% CASE 'broader' %](Broader heading)
27                     [% CASE 'narrower' %](Narrower heading)
28                     [% CASE 'parent' %](Immediate parent body)
29                     [% CASE %]
30                         [% IF type %]([% type | html %])[% END %]
31                     [% END %]
32                 </span>
33         [% END # / UNLESS seefrom %]
34     [% END # / IF marcflavour = 'UNIMARC' %]
35 [% END # / BLOCK showreference %]
36
37 [% BLOCK authresult %]
38     [% IF ( summary.summary ) %][% summary.summary | html %]:[% END %]
39     [% UNLESS ( summary.summaryonly ) %]
40         <div class="authorizedheading">
41             [% FOREACH authorize IN summary.authorized %]
42                 <span class="authorizedheading">[% authorize.heading | html %]</span>
43             [% END %]
44         </div>
45         [% IF ( marcflavour == 'UNIMARC' ) %]
46             [% IF summary.notes %]
47                 <div class="authres_notes">
48                     [% FOREACH note IN summary.notes %]
49                         [% note.note | html %]</span>
50                     [% END %]
51                 </div>
52             [% END %]
53             [% IF summary.seealso %]
54                 <div class="authres_seealso">
55                     [% FOREACH see IN summary.seealso %]
56                         [% PROCESS showreference heading=see.heading label="" type=see.type search='' %]
57                         [% IF ! loop.last %] ; [% END %]
58                     [% END %]
59                 </div>
60             [% END %]
61             [% IF summary.otherscript %]
62                 <div class="authres_otherscript">
63                     [% FOREACH other IN summary.otherscript %]
64                         [% PROCESS language lang=other.lang | trim %]:
65                         [% other.term %]
66                         [% IF ! loop.last %] ; [% END %]
67                     [% END %]
68                 </div>
69             [% END %]
70         [% ELSE %]
71             [% IF ( summary.seefrom ) %]
72                 [% FOREACH seefro IN summary.seefrom %]
73                     <div class="seefrom authref">
74                     [% PROCESS showreference heading=seefro.heading label="used for/see from:" type=seefro.type search='' %]
75                     </div>
76                 [% END %]
77             [% END %]
78             [% IF ( summary.seealso ) %]
79                 [% FOREACH seeals IN summary.seealso %]
80                     <div class="seealso authref">
81                     [% PROCESS showreference heading=seeals.heading label="see also:" type=seeals.type linkpath=link search=seeals.search %]
82                     </div>
83                 [% END %]
84             [% END %]
85         [% END # / IF marcflavour = 'UNIMARC' %]
86     [% END # / UNLESS summary.summaryonly %]
87 [% END # / BLOCK authresult %]