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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/authorities-search-results.inc (-41 / +69 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-79 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
        [% ELSIF  ( type=='seealso' ) %]
32
            [% heading | html %]
33
        [% END %]
34
        </span>
35
        [% UNLESS ( type=='seefrom' || type=='seealso' ) %]
36
        <span class="type">
37
            [% SWITCH type %]
38
            [% CASE 'earlier' %](Earlier heading)
39
            [% CASE 'later' %](Later heading)
40
            [% CASE 'acronym' %](Acronym)
41
            [% CASE 'musical' %](Musical composition)
42
            [% CASE 'broader' %](Broader heading)
43
            [% CASE 'narrower' %](Narrower heading)
44
            [% CASE 'parent' %](Immediate parent body)
45
            [% CASE %][% IF type %]([% type | html %])
46
            [% END %]
47
        [% END %]
18
        </span>
48
        </span>
19
        [% UNLESS ( type=='seefrom' || type=='seealso' ) %]<span class="type">[% SWITCH type %]
49
        [% END %]
20
        [% CASE 'earlier' %](Earlier heading)
21
        [% CASE 'later' %](Later heading)
22
        [% CASE 'acronym' %](Acronym)
23
        [% CASE 'musical' %](Musical composition)
24
        [% CASE 'broader' %](Broader heading)
25
        [% CASE 'narrower' %](Narrower heading)
26
        [% CASE 'parent' %](Immediate parent body)
27
        [% CASE %][% IF type %]([% type | html %])[% END %]
28
        [% END %]</span>[% 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 %]
41
           <div class="authres_notes">
62
             <div class="authres_notes">
42
           [% FOREACH note IN summary.notes %]
63
             [% FOREACH note IN summary.notes %]
43
             [% note.note | html %]</span>
64
               [% note.note | html %]</span>
44
           [% END %]
65
             [% END %]
45
           </div>
66
             </div>
46
          [% END %]
47
          [% IF summary.seealso %]
48
            <div class="authres_seealso">
49
            [% FOREACH see IN summary.seealso %]
50
              [% PROCESS showreference heading=see.heading label="" type=see.type search='' %]
51
              [% IF ! loop.last %] ; [% END %]
52
            [% END %]
67
            [% END %]
53
            </div>
68
            [% IF summary.seealso %]
54
          [% END %]
69
              <div class="authres_seealso">
55
          [% IF summary.otherscript %]
70
              [% FOREACH see IN summary.seealso %]
56
            <div class="authres_otherscript">
71
                 [% PROCESS showreference heading=see.heading label="" type=see.type search='' %]
57
            [% FOREACH other IN summary.otherscript %]
72
                 [% IF ! loop.last %] ; [% END %]
58
              [% PROCESS language lang=other.lang | trim %]:
73
              [% END %]
59
              [% other.term %]
74
              </div>
60
              [% IF ! loop.last %] ; [% END %]
75
            [% END %]
76
            [% IF summary.otherscript %]
77
              <div class="authres_otherscript">
78
              [% FOREACH other IN summary.otherscript %]
79
                [% PROCESS language lang=other.lang | trim %]:
80
                [% other.term %]
81
                [% IF ! loop.last %] ; [% END %]
82
              [% END %]
83
              </div>
61
            [% END %]
84
            [% END %]
62
            </div>
63
          [% END %]
64
65
        [% ELSE %]
85
        [% ELSE %]
66
            [% IF ( summary.seefrom ) %]
86
            [% IF ( summary.seefrom ) %]
67
                [% FOREACH seefro IN summary.seefrom %]
87
                [% FOREACH seefro IN summary.seefrom %]
68
                    <div class="seefrom authref">
88
                    <div class="seefrom authref">
69
                    [% PROCESS showreference heading=seefro.heading label="used for/see from:" type=seefro.type search='' %]
89
                    [% PROCESS showreference
90
                        heading=seefro.heading
91
                        type=seefro.type
92
                        authid=seefro.authid
93
                    %]
70
                    </div>
94
                    </div>
71
                [% END %]
95
                [% END %]
72
            [% END %]
96
            [% END %]
73
            [% IF ( summary.seealso ) %]
97
            [% IF ( summary.seealso ) %]
74
                [% FOREACH seeals IN summary.seealso %]
98
                [% FOREACH seeals IN summary.seealso %]
75
                    <div class="seealso authref">
99
                    <div class="seealso authref">
76
                    [% PROCESS showreference heading=seeals.heading label="see also:" type=seeals.type linkpath=link search=seeals.search %]
100
                    [% PROCESS showreference
101
                        heading=seeals.heading
102
                        type=seeals.type
103
                        authid=seeals.authid
104
                    %]
77
                    </div>
105
                    </div>
78
                [% END %]
106
                [% END %]
79
            [% END %]
107
            [% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/searchresultlist.tt (-2 / +1 lines)
Lines 77-83 function searchauthority() { Link Here
77
    [% ELSE %]
77
    [% ELSE %]
78
    <tr>
78
    <tr>
79
    [% END %]
79
    [% END %]
80
      <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>
80
      <td>[% PROCESS authresult summary=resul.summary %]</td>
81
      <td><a href="detail.pl?authid=[% resul.authid %]">Details</a></td>
81
      <td><a href="detail.pl?authid=[% resul.authid %]">Details</a></td>
82
  [% UNLESS ( resul.isEDITORS ) %]
82
  [% UNLESS ( resul.isEDITORS ) %]
83
      <td>
83
      <td>
84
- 

Return to bug 10691