Lines 1-4
Link Here
|
1 |
[% BLOCK showreference %] |
1 |
[% BLOCK showreference %] |
|
|
2 |
<!-- |
3 |
Parameters: |
4 |
heading: the heading itself |
5 |
linkType: currently 'seefrom' or 'seealso', controls the label for the entry |
6 |
type: |
7 |
authid: if it is a linked authority, its authid |
8 |
--> |
9 |
[% SET authidurl = '/cgi-bin/koha/opac-authoritiesdetail.pl?authid=' %] |
10 |
[% SET searchurl = '/cgi-bin/koha/opac-authorities-home.pl?op=do_search&type=opac&operator=contains&marclist=mainentry&and_or=and&orderby=HeadingAsc&value=' %] |
2 |
[% IF marcflavour == 'UNIMARC' %] |
11 |
[% IF marcflavour == 'UNIMARC' %] |
3 |
[% SWITCH type %] |
12 |
[% SWITCH type %] |
4 |
[% CASE 'broader' %] |
13 |
[% CASE 'broader' %] |
Lines 11-20
Link Here
|
11 |
<span class="RT">RT: [% heading | html %]</span> |
20 |
<span class="RT">RT: [% heading | html %]</span> |
12 |
[% END %] |
21 |
[% END %] |
13 |
[% ELSE %] |
22 |
[% ELSE %] |
14 |
[% IF ( label ) %]<span class="label">[% label | html %]</span>[% END %] |
23 |
<span class="label"> |
|
|
24 |
[% IF ( linkType=='seefrom' ) %] |
25 |
used for/see from: |
26 |
[% ELSIF ( linkType=='seealso' ) %] |
27 |
see also: |
28 |
[% END %] |
15 |
<span class="heading"> |
29 |
<span class="heading"> |
16 |
[% IF ( linkpath && search ) %]<a href="[% link | url %][% search | url %]">[% heading | html %]</a> |
30 |
[% IF ( linkType=='seealso' ) %] |
17 |
[% ELSE %][% heading | html %][% END %] |
31 |
[% IF ( authid ) %] |
|
|
32 |
<a href="[% authidurl | url %][% authid | url %]">[% heading | html %]</a> |
33 |
[% ELSE %] |
34 |
<a href="[% searchurl | url %][% heading | html %]">[% heading | html %]</a> |
35 |
[% END %] |
36 |
[% ELSE %] |
37 |
[% heading | html %] |
38 |
[% END %] |
18 |
</span> |
39 |
</span> |
19 |
[% UNLESS ( type=='seefrom' || type=='seealso' ) %] |
40 |
[% UNLESS ( type=='seefrom' || type=='seealso' ) %] |
20 |
<span class="type"> |
41 |
<span class="type"> |
Lines 53-59
Link Here
|
53 |
[% IF summary.seealso %] |
74 |
[% IF summary.seealso %] |
54 |
<div class="authres_seealso"> |
75 |
<div class="authres_seealso"> |
55 |
[% FOREACH see IN summary.seealso %] |
76 |
[% FOREACH see IN summary.seealso %] |
56 |
[% PROCESS showreference heading=see.heading label="" type=see.type search='' %] |
77 |
[% PROCESS showreference heading=see.heading linkType="" type=see.type search='' %] |
57 |
[% IF ! loop.last %] ; [% END %] |
78 |
[% IF ! loop.last %] ; [% END %] |
58 |
[% END %] |
79 |
[% END %] |
59 |
</div> |
80 |
</div> |
Lines 71-84
Link Here
|
71 |
[% IF ( summary.seefrom ) %] |
92 |
[% IF ( summary.seefrom ) %] |
72 |
[% FOREACH seefro IN summary.seefrom %] |
93 |
[% FOREACH seefro IN summary.seefrom %] |
73 |
<div class="seefrom authref"> |
94 |
<div class="seefrom authref"> |
74 |
[% PROCESS showreference heading=seefro.heading label="used for/see from:" type=seefro.type search='' %] |
95 |
[% PROCESS showreference |
|
|
96 |
heading=seefro.heading |
97 |
linkType='seefrom' |
98 |
type=seefro.type |
99 |
%] |
75 |
</div> |
100 |
</div> |
76 |
[% END %] |
101 |
[% END %] |
77 |
[% END %] |
102 |
[% END %] |
78 |
[% IF ( summary.seealso ) %] |
103 |
[% IF ( summary.seealso ) %] |
79 |
[% FOREACH seeals IN summary.seealso %] |
104 |
[% FOREACH seeals IN summary.seealso %] |
80 |
<div class="seealso authref"> |
105 |
<div class="seealso authref"> |
81 |
[% PROCESS showreference heading=seeals.heading label="see also:" type=seeals.type linkpath=link search=seeals.search %] |
106 |
[% PROCESS showreference |
|
|
107 |
heading=seeals.heading |
108 |
linkType='seealso' |
109 |
type=seeals.type |
110 |
authid=seeals.authid |
111 |
%] |
82 |
</div> |
112 |
</div> |
83 |
[% END %] |
113 |
[% END %] |
84 |
[% END %] |
114 |
[% END %] |