Bug 7688: Change subscription numbering pattern and frequencies
[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.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
65         [% ELSE %]
66             [% IF ( summary.seefrom ) %]
67                 [% FOREACH seefro IN summary.seefrom %]
68                     <div class="seefrom authref">
69                     [% PROCESS showreference heading=seefro.heading label="used for/see from:" type=seefro.type search='' %]
70                     </div>
71                 [% END %]
72             [% END %]
73             [% IF ( summary.seealso ) %]
74                 [% FOREACH seeals IN summary.seealso %]
75                     <div class="seealso authref">
76                     [% PROCESS showreference heading=seeals.heading label="see also:" type=seeals.type linkpath=link search=seeals.search %]
77                     </div>
78                 [% END %]
79             [% END %]
80         [% END %]
81     [% END %]
82 [% END %]
83 [% BLOCK language %]
84   [% SWITCH lang %]
85    [% CASE ['en', 'eng'] %]English
86    [% CASE ['fr', 'fre'] %]French
87    [% CASE ['it', 'ita'] %]Italian
88    [% CASE ['de', 'ger', 'deu'] %]German
89    [% CASE ['es', 'spa'] %]Spanish
90    [% CASE %][% lang %]
91   [% END %]
92 [% END %]