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

(-)a/koha-tmpl/opac-tmpl/prog/en/includes/authorities-search-results.inc (-15 / +40 lines)
Lines 11-31 Link Here
11
            <span class="RT">RT: [% heading | html %]</span>
11
            <span class="RT">RT: [% heading | html %]</span>
12
        [% END %]
12
        [% END %]
13
    [% ELSE %]
13
    [% ELSE %]
14
        [% IF ( label ) %]<span class="label">[% label | html %]</span>[% END %]
14
        <span class="label">
15
        [% IF ( type=='seefrom' ) %]
16
            used for/see from:
17
        [% ELSIF  ( type=='seealso' ) %]
18
            see also:
19
        [% END %]
20
        </span>
15
        <span class="heading">
21
        <span class="heading">
16
        [% IF ( linkpath && search ) %]<a href="[% link | url %][% search | url %]">[% heading | html %]</a>
22
        [% IF ( linkpath && search ) %]
17
        [% ELSE %][% heading | html %][% END %]
23
            <a href="[% link | url %][% authid | url %]">[% heading | html %]</a>
24
        [% ELSE %]
25
            [% heading | html %]
26
        [% END %]
18
        </span>
27
        </span>
19
        [% UNLESS ( type=='seefrom' || type=='seealso' ) %]<span class="type">[% SWITCH type %]
28
        [% UNLESS ( type=='seefrom' || type=='seealso' ) %]
20
        [% CASE 'earlier' %](Earlier heading)
29
        <span class="type">
21
        [% CASE 'later' %](Later heading)
30
            [% SWITCH type %]
22
        [% CASE 'acronym' %](Acronym)
31
            [% CASE 'earlier' %](Earlier heading)
23
        [% CASE 'musical' %](Musical composition)
32
            [% CASE 'later' %](Later heading)
24
        [% CASE 'broader' %](Broader heading)
33
            [% CASE 'acronym' %](Acronym)
25
        [% CASE 'narrower' %](Narrower heading)
34
            [% CASE 'musical' %](Musical composition)
26
        [% CASE 'parent' %](Immediate parent body)
35
            [% CASE 'broader' %](Broader heading)
27
        [% CASE %][% IF type %]([% type | html %])[% END %]
36
            [% CASE 'narrower' %](Narrower heading)
28
        [% END %]</span>[% END %]
37
            [% CASE 'parent' %](Immediate parent body)
38
            [% CASE %][% IF type %]([% type | html %])
39
            [% END %]
40
        [% END %]
41
        </span>
42
        [% END %]
29
    [% END %]
43
    [% END %]
30
[% END %]
44
[% END %]
31
[% BLOCK authresult %]
45
[% BLOCK authresult %]
Lines 65-78 Link Here
65
            [% IF ( summary.seefrom ) %]
79
            [% IF ( summary.seefrom ) %]
66
                [% FOREACH seefro IN summary.seefrom %]
80
                [% FOREACH seefro IN summary.seefrom %]
67
                    <div class="seefrom authref">
81
                    <div class="seefrom authref">
68
                    [% PROCESS showreference heading=seefro.heading label="used for/see from:" type=seefro.type search='' %]
82
                    [% PROCESS showreference
83
                        heading=seefro.heading
84
                        type=seefro.type
85
                        search=''
86
                        authid=seefro.authid
87
                    %]
69
                    </div>
88
                    </div>
70
                [% END %]
89
                [% END %]
71
            [% END %]
90
            [% END %]
72
            [% IF ( summary.seealso ) %]
91
            [% IF ( summary.seealso ) %]
73
                [% FOREACH seeals IN summary.seealso %]
92
                [% FOREACH seeals IN summary.seealso %]
74
                    <div class="seealso authref">
93
                    <div class="seealso authref">
75
                    [% PROCESS showreference heading=seeals.heading label="see also:" type=seeals.type linkpath=link search=seeals.search %]
94
                    [% PROCESS showreference
95
                        heading=seeals.heading
96
                        type=seeals.type
97
                        linkpath=link
98
                        search=seeals.search
99
                        authid=seeals.authid
100
                    %]
76
                    </div>
101
                    </div>
77
                [% END %]
102
                [% END %]
78
            [% END %]
103
            [% END %]
(-)a/koha-tmpl/opac-tmpl/prog/en/modules/opac-authoritiessearchresultlist.tt (-30 / +32 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
63
                    <td>[% resul.authtype %]</td>
63
                    summary=resul.summary
64
					[% UNLESS ( resul.isEDITORS ) %]
64
                    link="/cgi-bin/koha/opac-authoritiesdetail.pl?authid="
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
            <td>[% resul.authtype %]</td>
67
						</td>
67
        [% UNLESS ( resul.isEDITORS ) %]
68
					[% END %]
68
            <td>
69
						<td>
69
                <a href="/cgi-bin/koha/opac-search.pl?type=opac&amp;op=do_search&amp;q=an=[% resul.authid %]">[% resul.used %] biblios</a>
70
                            <a href="opac-authoritiesdetail.pl?authid=[% resul.authid %]">View full heading</a>
70
            </td>
71
						</td>
71
        [% END %]
72
				</tr>
72
            <td>
73
			[% END %]
73
                <a href="opac-authoritiesdetail.pl?authid=[% resul.authid %]">View full heading</a>
74
		</table>
74
            </td>
75
	</div>
75
        </tr>
76
[% END %]
77
    </table>
78
</div>
76
	<div id="resultnumber">
79
	<div id="resultnumber">
77
			[% IF ( displayprev ) %]
80
			[% 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>
81
				<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