View | Details | Raw Unified | Return to bug 10691
Collapse All | Expand All

(-)a/koha-tmpl/opac-tmpl/prog/en/includes/authorities-search-results.inc (-18 / +42 lines)
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 68-81 Link Here
68
            [% IF ( summary.seefrom ) %]
85
            [% IF ( summary.seefrom ) %]
69
                [% FOREACH seefro IN summary.seefrom %]
86
                [% FOREACH seefro IN summary.seefrom %]
70
                    <div class="seefrom authref">
87
                    <div class="seefrom authref">
71
                    [% PROCESS showreference heading=seefro.heading label="used for/see from:" type=seefro.type search='' %]
88
                    [% PROCESS showreference
89
                        heading=seefro.heading
90
                        type=seefro.type
91
                    %]
72
                    </div>
92
                    </div>
73
                [% END %]
93
                [% END %]
74
            [% END %]
94
            [% END %]
75
            [% IF ( summary.seealso ) %]
95
            [% IF ( summary.seealso ) %]
76
                [% FOREACH seeals IN summary.seealso %]
96
                [% FOREACH seeals IN summary.seealso %]
77
                    <div class="seealso authref">
97
                    <div class="seealso authref">
78
                    [% PROCESS showreference heading=seeals.heading label="see also:" type=seeals.type linkpath=link search=seeals.search %]
98
                    [% PROCESS showreference
99
                        heading=seeals.heading
100
                        type=seeals.type
101
                        authid=seeals.authid
102
                    %]
79
                    </div>
103
                    </div>
80
                [% END %]
104
                [% END %]
81
            [% END %]
105
            [% END %]
(-)a/koha-tmpl/opac-tmpl/prog/en/modules/opac-authoritiessearchresultlist.tt (-30 / +29 lines)
Lines 44-78 Link Here
44
44
45
			[% IF ( total ) %]
45
			[% IF ( total ) %]
46
<div class="searchresults">
46
<div class="searchresults">
47
		<table>
47
    <table>
48
			<tr>
48
        <tr>
49
                <th>Authorized headings</th>
49
            <th>Authorized headings</th>
50
                <th>Type of heading</th>
50
            <th>Type of heading</th>
51
				[% UNLESS ( isEDITORS ) %]
51
        [% UNLESS ( isEDITORS ) %]
52
                    <th>Biblio records</th>
52
            <th>Biblio records</th>
53
				[% END %]
53
        [% END %]
54
                <th>Full heading</th>
54
            <th>Full heading</th>
55
			</tr>
55
        </tr>
56
			[% FOREACH resul IN result %]
56
[% FOREACH resul IN result %]
57
            [% UNLESS ( loop.odd ) %]
57
    [% UNLESS ( loop.odd ) %]
58
                <tr class="highlight">
58
        <tr class="highlight">
59
            [% ELSE %]
59
    [% ELSE %]
60
                <tr>
60
        <tr>
61
            [% END %]
61
    [% END %]
62
                    <td>[% PROCESS authresult summary=resul.summary link="/cgi-bin/koha/opac-authorities-home.pl?op=do_search&type=opac&operatorc=contains&marclistc=mainentry&and_orc=and&orderby=HeadingAsc&valuec=" %]</td>
62
            <td>[% PROCESS authresult summary=resul.summary %]</td>
63
                    <td>[% resul.authtype %]</td>
63
            <td>[% resul.authtype %]</td>
64
					[% UNLESS ( resul.isEDITORS ) %]
64
        [% UNLESS ( resul.isEDITORS ) %]
65
						<td>
65
            <td>
66
							 <a href="/cgi-bin/koha/opac-search.pl?type=opac&amp;op=do_search&amp;q=an=[% resul.authid %]">[% resul.used %] biblios</a>
66
                <a href="/cgi-bin/koha/opac-search.pl?type=opac&amp;op=do_search&amp;q=an=[% resul.authid %]">[% resul.used %] biblios</a>
67
						</td>
67
            </td>
68
					[% END %]
68
        [% END %]
69
						<td>
69
            <td>
70
                            <a href="opac-authoritiesdetail.pl?authid=[% resul.authid %]">View full heading</a>
70
                <a href="opac-authoritiesdetail.pl?authid=[% resul.authid %]">View full heading</a>
71
						</td>
71
            </td>
72
				</tr>
72
        </tr>
73
			[% END %]
73
[% END %]
74
		</table>
74
    </table>
75
	</div>
75
</div>
76
	<div id="resultnumber">
76
	<div id="resultnumber">
77
			[% IF ( displayprev ) %]
77
			[% IF ( displayprev ) %]
78
				<a href="opac-authorities-home.pl?startfrom=[% startfromprev %]&amp;[% FOREACH searchdat IN searchdata %][% searchdat.term %]=[% searchdat.val |url %]&amp;[% END %]resultsperpage=[% resultsperpage %]&amp;type=opac&amp;op=do_search&amp;authtypecode=[% authtypecode %]&amp;orderby=[% orderby %]">&lt;&lt;</a>
78
				<a href="opac-authorities-home.pl?startfrom=[% startfromprev %]&amp;[% FOREACH searchdat IN searchdata %][% searchdat.term %]=[% searchdat.val |url %]&amp;[% END %]resultsperpage=[% resultsperpage %]&amp;type=opac&amp;op=do_search&amp;authtypecode=[% authtypecode %]&amp;orderby=[% orderby %]">&lt;&lt;</a>
79
- 

Return to bug 10691