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

(-)a/C4/AuthoritiesMarc.pm (-4 / +9 lines)
Lines 1052-1061 sub BuildSummary { Link Here
1052
            }
1052
            }
1053
        }
1053
        }
1054
# // form
1054
# // form
1055
        foreach my $field ($record->field('7..')) {
1055
1056
            my $lang = substr($field->subfield('8'),3,3);
1056
        # Other forms
1057
            push @otherscript, { lang => $lang, term => $field->subfield('a'), direction => 'ltr', field => $field->tag() };
1057
        @otherscript = map { {
1058
        }
1058
            lang      => $_->subfield('8') || '',
1059
            term      => $_->subfield('a'),
1060
            direction => 'ltr',
1061
            field     => $_->tag,
1062
        } } $record->field('7..');
1063
1059
    } else {
1064
    } else {
1060
# construct MARC21 summary
1065
# construct MARC21 summary
1061
# FIXME - looping over 1XX is questionable
1066
# FIXME - looping over 1XX is questionable
(-)a/koha-tmpl/opac-tmpl/prog/en/css/opac.css (+4 lines)
Lines 2682-2687 ul.ui-tabs-nav li { Link Here
2682
.authstanzaheading {
2682
.authstanzaheading {
2683
    font-weight: bold;
2683
    font-weight: bold;
2684
}
2684
}
2685
div.authorizedheading {
2686
    font-weight: bold;
2687
    margin-bottom: 5px;
2688
}
2685
2689
2686
.authstanza li {
2690
.authstanza li {
2687
    margin-left: 0.5em;
2691
    margin-left: 0.5em;
(-)a/koha-tmpl/opac-tmpl/prog/en/includes/authorities-search-results.inc (-12 / +17 lines)
Lines 2-16 Link Here
2
    [% IF marcflavour == 'UNIMARC' %]
2
    [% IF marcflavour == 'UNIMARC' %]
3
        [% SWITCH type %]
3
        [% SWITCH type %]
4
        [% CASE 'broader' %]
4
        [% CASE 'broader' %]
5
            <span class="BT">[% heading | html %]</span> --
5
            <span class="BT">BT: [% heading | html %]</span>
6
        [% CASE 'narrower' %]
6
        [% CASE 'narrower' %]
7
            <span class="NT">[% heading | html %]</span> --
7
            <span class="NT">NT: [% heading | html %]</span>
8
        [% CASE 'narrower' %]
9
            <span class="NT">[% heading | html %]</span> --
10
        [% CASE 'seefrom' %]
8
        [% CASE 'seefrom' %]
11
            <span class="UF">[% heading | html %]</span> --
9
            <span class="UF">UF: [% heading | html %]</span>
12
        [% CASE 'seealso' %]
10
        [% CASE 'seealso' %]
13
            <span class="RT">[% heading | html %]</span> --
11
            <span class="RT">RT: [% heading | html %]</span>
14
        [% END %]
12
        [% END %]
15
    [% ELSE %]
13
    [% ELSE %]
16
        [% IF ( label ) %]<span class="label">[% label | html %]</span>[% END %]
14
        [% IF ( label ) %]<span class="label">[% label | html %]</span>[% END %]
Lines 33-47 Link Here
33
[% BLOCK authresult %]
31
[% BLOCK authresult %]
34
    [% IF ( summary.summary ) %][% summary.summary | html %]:[% END %]
32
    [% IF ( summary.summary ) %][% summary.summary | html %]:[% END %]
35
    [% UNLESS ( summary.summaryonly ) %]
33
    [% UNLESS ( summary.summaryonly ) %]
36
        [% FOREACH authorize IN summary.authorized %]
34
        <div class="authorizedheading">
35
          [% FOREACH authorize IN summary.authorized %]
37
            <span class="authorizedheading">[% authorize.heading | html %]</span>
36
            <span class="authorizedheading">[% authorize.heading | html %]</span>
38
        [% END %]
37
          [% END %]
38
        </div>
39
        [% IF ( marcflavour == 'UNIMARC' ) %]
39
        [% IF ( marcflavour == 'UNIMARC' ) %]
40
            [% FOREACH note IN summary.notes %]
40
            [% IF summary.notes %]
41
                <span class="note">[% note | html %]</span>
41
             <div class="notes">
42
             [% FOREACH note IN summary.notes %]
43
               <span class="note">[% note.note | html %]</span>
44
             [% END %]
45
             </div>
42
            [% END %]
46
            [% END %]
43
            [% FOREACH seefro IN summary.seefrom %]
47
            [% FOREACH see IN summary.seealso %]
44
                [% PROCESS showreference heading=seefro.heading label="" type=seefro.type search='' %]
48
               [% PROCESS showreference heading=see.heading label="" type=see.type search='' %]
49
               [% IF ! loop.last %]--[% END %]
45
            [% END %]
50
            [% END %]
46
        [% ELSE %]
51
        [% ELSE %]
47
            [% IF ( summary.seefrom ) %]
52
            [% IF ( summary.seefrom ) %]
(-)a/koha-tmpl/opac-tmpl/prog/en/modules/opac-auth-detail.tt (-6 / +19 lines)
Lines 1-4 Link Here
1
[% PROCESS 'opac-authorities.inc' %]
1
[% PROCESS 'opac-authorities.inc' %]
2
[% BLOCK language %]
3
  [% SWITCH lang %]
4
   [% CASE ['en', 'eng'] %]English
5
   [% CASE ['fr', 'fre'] %]French
6
   [% CASE ['it', 'ita'] %]Italian
7
   [% CASE ['de', 'ger', 'deu'] %]German
8
   [% CASE ['es', 'spa'] %]Spanish
9
   [% CASE %][% lang %]
10
  [% END %]
11
[% END %]
2
[% INCLUDE 'doc-head-open.inc' %][% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog &rsaquo;  Entry
12
[% INCLUDE 'doc-head-open.inc' %][% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog &rsaquo;  Entry
3
[% INCLUDE 'doc-head-close.inc' %]
13
[% INCLUDE 'doc-head-close.inc' %]
4
[% IF ( displayhierarchy ) %]
14
[% IF ( displayhierarchy ) %]
Lines 42-48 $(document).ready(function() { Link Here
42
</div>
52
</div>
43
[% END %]
53
[% END %]
44
54
45
<h1>[% summary.mainentry %][% IF authtypetext %]([% authtypetext %])[% END %]</h1>
55
<h1>[% summary.mainentry %][% IF authtypetext %] ([% authtypetext %])[% END %]</h1>
46
<div class="usedin">Used in <a href="opac-search.pl?type=opac&amp;q=[% authid %]&amp;idx=an,phr">[% count %] records</a></div>
56
<div class="usedin">Used in <a href="opac-search.pl?type=opac&amp;q=[% authid %]&amp;idx=an,phr">[% count %] records</a></div>
47
<div class="authstanza">
57
<div class="authstanza">
48
[% FOREACH authorize IN summary.authorized %]
58
[% FOREACH authorize IN summary.authorized %]
Lines 76-88 $(document).ready(function() { Link Here
76
    </div>
86
    </div>
77
[% END %]
87
[% END %]
78
[% IF marcflavour == 'UNIMARC' && summary.otherscript %]
88
[% IF marcflavour == 'UNIMARC' && summary.otherscript %]
79
    <div class="authstanza">
89
  <div class="authstanza">
90
    <div class="authstanzaheading">Other forms:</div>
91
    <ul>
80
    [% FOREACH otherscrip IN summary.otherscript %]
92
    [% FOREACH otherscrip IN summary.otherscript %]
81
        <div class="heading otherscript auth[% otherscrip.field %]"><span class="label">See also[% PROCESS language lang=otherscript.lang | trim %] term:</span>
93
      <li>
94
        [% PROCESS language lang=otherscrip.lang | trim %]:
82
        <span class="otherscript">[% otherscrip.term %]</span>
95
        <span class="otherscript">[% otherscrip.term %]</span>
83
        </div>
96
      </li>
84
    [% END %]
97
    [% END %]
85
    </div>
98
    </ul>
99
  </div>
86
[% END %]
100
[% END %]
87
<div id="authdescriptions" class="toptabs">
101
<div id="authdescriptions" class="toptabs">
88
<ul>
102
<ul>
89
- 

Return to bug 8870