Merge remote-tracking branch 'origin/new/bug_7412'
[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">[% heading | html %]</span> --
6         [% CASE 'narrower' %]
7             <span class="NT">[% heading | html %]</span> --
8         [% CASE 'narrower' %]
9             <span class="NT">[% heading | html %]</span> --
10         [% CASE 'seefrom' %]
11             <span class="UF">[% heading | html %]</span> --
12         [% CASE 'seealso' %]
13             <span class="RT">[% heading | html %]</span> --
14         [% END %]
15     [% ELSE %]
16         [% IF ( label ) %]<span class="label">[% label | html %]</span>[% END %]
17         <span class="heading">
18         [% IF ( linkpath && search ) %]<a href="[% link | url %][% search | url %]">[% heading | html %]</a>
19         [% ELSE %][% heading | html %][% END %]
20         </span>
21         [% UNLESS ( type=='seefrom' || type=='seealso' ) %]<span class="type">[% 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 %][% IF type %]([% type | html %])[% END %]
30         [% END %]</span>[% END %]
31     [% END %]
32 [% END %]
33 [% BLOCK authresult %]
34     [% IF ( summary.summary ) %][% summary.summary | html %]:[% END %]
35     [% UNLESS ( summary.summaryonly ) %]
36         [% FOREACH authorize IN summary.authorized %]
37             <span class="authorizedheading">[% authorize.heading | html %]</span>
38         [% END %]
39         [% IF ( marcflavour == 'UNIMARC' ) %]
40             [% FOREACH note IN summary.notes %]
41                 <span class="note">[% note | html %]</span>
42             [% END %]
43             [% FOREACH seefro IN summary.seefrom %]
44                 [% PROCESS showreference heading=seefro.heading label="" type=seefro.type search='' %]
45             [% END %]
46         [% ELSE %]
47             [% IF ( summary.seefrom ) %]
48                 [% FOREACH seefro IN summary.seefrom %]
49                     <div class="seefrom authref">
50                     [% PROCESS showreference heading=seefro.heading label="used for/see from:" type=seefro.type search='' %]
51                     </div>
52                 [% END %]
53             [% END %]
54             [% IF ( summary.seealso ) %]
55                 [% FOREACH seeals IN summary.seealso %]
56                     <div class="seealso authref">
57                     [% PROCESS showreference heading=seeals.heading label="see also:" type=seeals.type linkpath=link search=seeals.search %]
58                     </div>
59                 [% END %]
60             [% END %]
61         [% END %]
62     [% END %]
63 [% END %]