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 / +66 lines)
Lines 11-79 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 %]
32
    [% IF ( summary.summary ) %][% summary.summary | html %]:[% END %]
46
    [% IF ( summary.summary ) %][% summary.summary | html %]:[% END %]
33
    [% UNLESS ( summary.summaryonly ) %]
47
    [% UNLESS ( summary.summaryonly ) %]
34
        <div class="authorizedheading">
48
        <div class="authorizedheading">
35
        [% FOREACH authorize IN summary.authorized %]
49
          [% FOREACH authorize IN summary.authorized %]
36
          <span class="authorizedheading">[% authorize.heading | html %]</span>
50
            <span class="authorizedheading">[% authorize.heading | html %]</span>
37
        [% END %]
51
          [% END %]
38
        </div>
52
        </div>
39
        [% IF ( marcflavour == 'UNIMARC' ) %]
53
        [% IF ( marcflavour == 'UNIMARC' ) %]
40
          [% IF summary.notes %]
54
            [% IF summary.notes %]
41
           <div class="authres_notes">
55
             <div class="authres_notes">
42
           [% FOREACH note IN summary.notes %]
56
             [% FOREACH note IN summary.notes %]
43
             [% note.note | html %]</span>
57
               [% note.note | html %]</span>
44
           [% END %]
58
             [% END %]
45
           </div>
59
             </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 %]
60
            [% END %]
53
            </div>
61
            [% IF summary.seealso %]
54
          [% END %]
62
              <div class="authres_seealso">
55
          [% IF summary.otherscript %]
63
              [% FOREACH see IN summary.seealso %]
56
            <div class="authres_otherscript">
64
                 [% PROCESS showreference heading=see.heading label="" type=see.type search='' %]
57
            [% FOREACH other IN summary.otherscript %]
65
                 [% IF ! loop.last %] ; [% END %]
58
              [% PROCESS language lang=other.lang | trim %]:
66
              [% END %]
59
              [% other.term %]
67
              </div>
60
              [% IF ! loop.last %] ; [% END %]
68
            [% END %]
69
            [% IF summary.otherscript %]
70
              <div class="authres_otherscript">
71
              [% FOREACH other IN summary.otherscript %]
72
                [% PROCESS language lang=other.lang | trim %]:
73
                [% other.term %]
74
                [% IF ! loop.last %] ; [% END %]
75
              [% END %]
76
              </div>
61
            [% END %]
77
            [% END %]
62
            </div>
63
          [% END %]
64
65
        [% ELSE %]
78
        [% ELSE %]
66
            [% IF ( summary.seefrom ) %]
79
            [% IF ( summary.seefrom ) %]
67
                [% FOREACH seefro IN summary.seefrom %]
80
                [% FOREACH seefro IN summary.seefrom %]
68
                    <div class="seefrom authref">
81
                    <div class="seefrom authref">
69
                    [% 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
                    %]
70
                    </div>
88
                    </div>
71
                [% END %]
89
                [% END %]
72
            [% END %]
90
            [% END %]
73
            [% IF ( summary.seealso ) %]
91
            [% IF ( summary.seealso ) %]
74
                [% FOREACH seeals IN summary.seealso %]
92
                [% FOREACH seeals IN summary.seealso %]
75
                    <div class="seealso authref">
93
                    <div class="seealso authref">
76
                    [% 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
                    %]
77
                    </div>
101
                    </div>
78
                [% END %]
102
                [% END %]
79
            [% END %]
103
            [% END %]
Lines 90-92 Link Here
90
   [% CASE %][% lang %]
114
   [% CASE %][% lang %]
91
  [% END %]
115
  [% END %]
92
[% END %]
116
[% END %]
117
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/searchresultlist.tt (-2 / +4 lines)
Lines 75-81 function searchauthority() { Link Here
75
    [% ELSE %]
75
    [% ELSE %]
76
    <tr>
76
    <tr>
77
    [% END %]
77
    [% END %]
78
      <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>
78
      <td>[% PROCESS authresult
79
                summary=resul.summary
80
                link="/cgi-bin/koha/authorities/detail.pl?authid="
81
          %]</td>
79
      <td><a href="detail.pl?authid=[% resul.authid %]">Details</a></td>
82
      <td><a href="detail.pl?authid=[% resul.authid %]">Details</a></td>
80
  [% UNLESS ( resul.isEDITORS ) %]
83
  [% UNLESS ( resul.isEDITORS ) %]
81
      <td>
84
      <td>
82
- 

Return to bug 10691