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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/authorities-search-results.inc (-34 / +62 lines)
Lines 1-4 Link Here
1
[% BLOCK showreference %]
1
[% BLOCK showreference %]
2
    [% SET authidurl = '/cgi-bin/koha/authorities/detail.pl?authid=' %]
3
    [% SET searchurl = '/cgi-bin/koha/authorities/authorities-home.pl?op=do_search&type=intranet&marclist=any&operator=contains&orderby=HeadingAsc&value=' %]
4
2
    [% IF marcflavour == 'UNIMARC' %]
5
    [% IF marcflavour == 'UNIMARC' %]
3
        [% SWITCH type %]
6
        [% SWITCH type %]
4
        [% CASE 'broader' %]
7
        [% CASE 'broader' %]
Lines 11-40 Link Here
11
            <span class="RT">RT: [% heading | html %]</span>
14
            <span class="RT">RT: [% heading | html %]</span>
12
        [% END %]
15
        [% END %]
13
    [% ELSE %]
16
    [% ELSE %]
14
        [% IF ( label ) %]<span class="label">[% label | html %]</span>[% END %]
17
        <span class="label">
18
        [% IF ( type=='seefrom' ) %]
19
            used for/see from:
20
        [% ELSIF  ( type=='seealso' ) %]
21
            see also:
22
        [% END %]
23
        </span>
15
        <span class="heading">
24
        <span class="heading">
16
        [% IF ( linkpath && search ) %]<a href="[% link | url %][% search | url %]">[% heading | html %]</a>
25
        [% IF ( type=='seealso' ) %]
17
        [% ELSE %][% heading | html %][% END %]
26
            [% IF ( authid ) %]
27
            <a href="[% authidurl | url %][% authid | url %]">[% heading | html %]</a>
28
            [% ELSE %]
29
            <a href="[% searchurl | url %][% heading | html %]">[% heading | html %]</a>
30
            [% END %]
31
        [% ELSE %]
32
            [% heading | html %]
33
        [% END %]
18
        </span>
34
        </span>
19
        [% UNLESS ( type=='seefrom' || type=='seealso' ) %]<span class="type">[% SWITCH type %]
35
        [% UNLESS ( type=='seefrom' || type=='seealso' ) %]
20
        [% CASE 'earlier' %](Earlier heading)
36
        <span class="type">
21
        [% CASE 'later' %](Later heading)
37
            [% SWITCH type %]
22
        [% CASE 'acronym' %](Acronym)
38
            [% CASE 'earlier' %](Earlier heading)
23
        [% CASE 'musical' %](Musical composition)
39
            [% CASE 'later' %](Later heading)
24
        [% CASE 'broader' %](Broader heading)
40
            [% CASE 'acronym' %](Acronym)
25
        [% CASE 'narrower' %](Narrower heading)
41
            [% CASE 'musical' %](Musical composition)
26
        [% CASE 'parent' %](Immediate parent body)
42
            [% CASE 'broader' %](Broader heading)
27
        [% CASE %][% IF type %]([% type | html %])[% END %]
43
            [% CASE 'narrower' %](Narrower heading)
28
        [% END %]</span>[% END %]
44
            [% CASE 'parent' %](Immediate parent body)
45
            [% CASE %][% IF type %]([% type | html %])
46
            [% END %]
47
        [% END %]
48
        </span>
49
        [% END %]
29
    [% END %]
50
    [% END %]
30
[% END %]
51
[% END %]
31
[% BLOCK authresult %]
52
[% BLOCK authresult %]
32
    [% IF ( summary.summary ) %][% summary.summary | html %]:[% END %]
53
    [% IF ( summary.summary ) %][% summary.summary | html %]:[% END %]
33
    [% UNLESS ( summary.summaryonly ) %]
54
    [% UNLESS ( summary.summaryonly ) %]
34
        <div class="authorizedheading">
55
        <div class="authorizedheading">
35
        [% FOREACH authorize IN summary.authorized %]
56
          [% FOREACH authorize IN summary.authorized %]
36
          <span class="authorizedheading">[% authorize.heading | html %]</span>
57
            <span class="authorizedheading">[% authorize.heading | html %]</span>
37
        [% END %]
58
          [% END %]
38
        </div>
59
        </div>
39
        [% IF ( marcflavour == 'UNIMARC' ) %]
60
        [% IF ( marcflavour == 'UNIMARC' ) %]
40
          [% IF summary.notes %]
61
          [% IF summary.notes %]
Lines 52-87 Link Here
52
            [% END %]
73
            [% END %]
53
            </div>
74
            </div>
54
          [% END %]
75
          [% END %]
55
          [% IF summary.seealso %]
76
            [% IF summary.seealso %]
56
            <div class="authres_seealso">
77
              <div class="authres_seealso">
57
            [% FOREACH see IN summary.seealso %]
78
              [% FOREACH see IN summary.seealso %]
58
              [% PROCESS showreference heading=see.heading label="" type=see.type search='' %]
79
                 [% PROCESS showreference heading=see.heading label="" type=see.type search='' %]
59
              [% IF ! loop.last %] ; [% END %]
80
                 [% IF ! loop.last %] ; [% END %]
81
              [% END %]
82
              </div>
60
            [% END %]
83
            [% END %]
61
            </div>
84
            [% IF summary.otherscript %]
62
          [% END %]
85
              <div class="authres_otherscript">
63
          [% IF summary.otherscript %]
86
              [% FOREACH other IN summary.otherscript %]
64
            <div class="authres_otherscript">
87
                [% PROCESS language lang=other.lang | trim %]:
65
            [% FOREACH other IN summary.otherscript %]
88
                [% other.term %]
66
              [% PROCESS language lang=other.lang | trim %]:
89
                [% IF ! loop.last %] ; [% END %]
67
              [% other.term %]
90
              [% END %]
68
              [% IF ! loop.last %] ; [% END %]
91
              </div>
69
            [% END %]
92
            [% END %]
70
            </div>
71
          [% END %]
72
73
        [% ELSE %]
93
        [% ELSE %]
74
            [% IF ( summary.seefrom ) %]
94
            [% IF ( summary.seefrom ) %]
75
                [% FOREACH seefro IN summary.seefrom %]
95
                [% FOREACH seefro IN summary.seefrom %]
76
                    <div class="seefrom authref">
96
                    <div class="seefrom authref">
77
                    [% PROCESS showreference heading=seefro.heading label="used for/see from:" type=seefro.type search='' %]
97
                    [% PROCESS showreference
98
                        heading=seefro.heading
99
                        type=seefro.type
100
                        authid=seefro.authid
101
                    %]
78
                    </div>
102
                    </div>
79
                [% END %]
103
                [% END %]
80
            [% END %]
104
            [% END %]
81
            [% IF ( summary.seealso ) %]
105
            [% IF ( summary.seealso ) %]
82
                [% FOREACH seeals IN summary.seealso %]
106
                [% FOREACH seeals IN summary.seealso %]
83
                    <div class="seealso authref">
107
                    <div class="seealso authref">
84
                    [% PROCESS showreference heading=seeals.heading label="see also:" type=seeals.type linkpath=link search=seeals.search %]
108
                    [% PROCESS showreference
109
                        heading=seeals.heading
110
                        type=seeals.type
111
                        authid=seeals.authid
112
                    %]
85
                    </div>
113
                    </div>
86
                [% END %]
114
                [% END %]
87
            [% END %]
115
            [% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/searchresultlist.tt (-2 / +1 lines)
Lines 80-86 function searchauthority() { Link Here
80
    [% ELSE %]
80
    [% ELSE %]
81
    <tr data-authid="[% resul.authid %]">
81
    <tr data-authid="[% resul.authid %]">
82
    [% END %]
82
    [% END %]
83
      <td>[% PROCESS authresult summary=resul.summary link="/cgi-bin/koha/authorities/authorities-home.pl?op=do_search&type=intranet&marclist=any&operator=contains&orderby=HeadingAsc&value=" %]</td>
83
      <td>[% PROCESS authresult summary=resul.summary %]</td>
84
      <td><a href="detail.pl?authid=[% resul.authid %]">Details</a></td>
84
      <td><a href="detail.pl?authid=[% resul.authid %]">Details</a></td>
85
  [% UNLESS ( resul.isEDITORS ) %]
85
  [% UNLESS ( resul.isEDITORS ) %]
86
      <td>
86
      <td>
87
- 

Return to bug 10691