|
Lines 1-4
Link Here
|
| 1 |
[% BLOCK showreference %] |
1 |
[% BLOCK showreference %] |
|
|
2 |
[% SET authidurl = '/cgi-bin/koha/opac-authoritiesdetail.pl?authid=' %] |
| 3 |
[% SET searchurl = '/cgi-bin/koha/opac-authorities-home.pl?op=do_search&type=opac&operatorc=contains&marclistc=mainentry&and_orc=and&orderby=HeadingAsc&value=' %] |
| 2 |
[% IF marcflavour == 'UNIMARC' %] |
4 |
[% IF marcflavour == 'UNIMARC' %] |
| 3 |
[% SWITCH type %] |
5 |
[% SWITCH type %] |
| 4 |
[% CASE 'broader' %] |
6 |
[% CASE 'broader' %] |
|
Lines 11-34
Link Here
|
| 11 |
<span class="RT">RT: [% heading | html %]</span> |
13 |
<span class="RT">RT: [% heading | html %]</span> |
| 12 |
[% END %] |
14 |
[% END %] |
| 13 |
[% ELSE %] |
15 |
[% ELSE %] |
| 14 |
[% IF ( label ) %]<span class="label">[% SWITCH label %] |
16 |
<span class="label"> |
| 15 |
[% CASE 'see also:' %]see also: |
17 |
[% IF ( type=='seefrom' ) %] |
| 16 |
[% CASE 'used for/see from:' %]used for/see from: |
18 |
used for/see from: |
| 17 |
[% END %]</span>[% END %] |
19 |
[% ELSIF ( type=='seealso' ) %] |
|
|
20 |
see also: |
| 21 |
[% END %] |
| 22 |
</span> |
| 18 |
<span class="heading"> |
23 |
<span class="heading"> |
| 19 |
[% IF ( linkpath && search ) %]<a href="[% link | url %][% search | url %]">[% heading | html %]</a> |
24 |
[% IF ( type=='seealso' ) %] |
| 20 |
[% ELSE %][% heading | html %][% END %] |
25 |
[% IF ( authid ) %] |
|
|
26 |
<a href="[% authidurl | url %][% authid | url %]">[% heading | html %]</a> |
| 27 |
[% ELSE %] |
| 28 |
<a href="[% searchurl | url %][% heading | html %]">[% heading | html %]</a> |
| 29 |
[% END %] |
| 30 |
[% ELSE %] |
| 31 |
[% heading | html %] |
| 32 |
[% END %] |
| 21 |
</span> |
33 |
</span> |
| 22 |
[% UNLESS ( type=='seefrom' || type=='seealso' ) %]<span class="type">[% SWITCH type %] |
34 |
[% UNLESS ( type=='seefrom' || type=='seealso' ) %] |
| 23 |
[% CASE 'earlier' %](Earlier heading) |
35 |
<span class="type"> |
| 24 |
[% CASE 'later' %](Later heading) |
36 |
[% SWITCH type %] |
| 25 |
[% CASE 'acronym' %](Acronym) |
37 |
[% CASE 'earlier' %](Earlier heading) |
| 26 |
[% CASE 'musical' %](Musical composition) |
38 |
[% CASE 'later' %](Later heading) |
| 27 |
[% CASE 'broader' %](Broader heading) |
39 |
[% CASE 'acronym' %](Acronym) |
| 28 |
[% CASE 'narrower' %](Narrower heading) |
40 |
[% CASE 'musical' %](Musical composition) |
| 29 |
[% CASE 'parent' %](Immediate parent body) |
41 |
[% CASE 'broader' %](Broader heading) |
| 30 |
[% CASE %][% IF type %]([% type | html %])[% END %] |
42 |
[% CASE 'narrower' %](Narrower heading) |
| 31 |
[% END %]</span>[% END %] |
43 |
[% CASE 'parent' %](Immediate parent body) |
|
|
44 |
[% CASE %][% IF type %]([% type | html %]) |
| 45 |
[% END %] |
| 46 |
[% END %] |
| 47 |
</span> |
| 48 |
[% END %] |
| 32 |
[% END %] |
49 |
[% END %] |
| 33 |
[% END %] |
50 |
[% END %] |
| 34 |
[% BLOCK authresult %] |
51 |
[% BLOCK authresult %] |
|
Lines 76-89
Link Here
|
| 76 |
[% IF ( summary.seefrom ) %] |
93 |
[% IF ( summary.seefrom ) %] |
| 77 |
[% FOREACH seefro IN summary.seefrom %] |
94 |
[% FOREACH seefro IN summary.seefrom %] |
| 78 |
<div class="seefrom authref"> |
95 |
<div class="seefrom authref"> |
| 79 |
[% PROCESS showreference heading=seefro.heading label="used for/see from:" type=seefro.type search='' %] |
96 |
[% PROCESS showreference |
|
|
97 |
heading=seefro.heading |
| 98 |
type=seefro.type |
| 99 |
%] |
| 80 |
</div> |
100 |
</div> |
| 81 |
[% END %] |
101 |
[% END %] |
| 82 |
[% END %] |
102 |
[% END %] |
| 83 |
[% IF ( summary.seealso ) %] |
103 |
[% IF ( summary.seealso ) %] |
| 84 |
[% FOREACH seeals IN summary.seealso %] |
104 |
[% FOREACH seeals IN summary.seealso %] |
| 85 |
<div class="seealso authref"> |
105 |
<div class="seealso authref"> |
| 86 |
[% PROCESS showreference heading=seeals.heading label="see also:" type=seeals.type linkpath=link search=seeals.search %] |
106 |
[% PROCESS showreference |
|
|
107 |
heading=seeals.heading |
| 108 |
type=seeals.type |
| 109 |
authid=seeals.authid |
| 110 |
%] |
| 87 |
</div> |
111 |
</div> |
| 88 |
[% END %] |
112 |
[% END %] |
| 89 |
[% END %] |
113 |
[% END %] |