Bug 9257 - Add "groups" to normal search pulldown
[koha_fer] / 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">[% 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.seealso %]
48               <div class="authres_seealso">
49               [% FOREACH see IN summary.seealso %]
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.otherscript %]
56               <div class="authres_otherscript">
57               [% FOREACH other IN summary.otherscript %]
58                 [% PROCESS language lang=other.lang | trim %]:
59                 [% other.term %]
60                 [% IF ! loop.last %] ; [% END %]
61               [% END %]
62               </div>
63             [% END %]
64         [% ELSE %]
65             [% IF ( summary.seefrom ) %]
66                 [% FOREACH seefro IN summary.seefrom %]
67                     <div class="seefrom authref">
68                     [% PROCESS showreference heading=seefro.heading label="used for/see from:" type=seefro.type search='' %]
69                     </div>
70                 [% END %]
71             [% END %]
72             [% IF ( summary.seealso ) %]
73                 [% FOREACH seeals IN summary.seealso %]
74                     <div class="seealso authref">
75                     [% PROCESS showreference heading=seeals.heading label="see also:" type=seeals.type linkpath=link search=seeals.search %]
76                     </div>
77                 [% END %]
78             [% END %]
79         [% END %]
80     [% END %]
81 [% END %]