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

(-)a/C4/AuthoritiesMarc.pm (+12 lines)
Lines 301-306 sub SearchAuthorities { Link Here
301
            }
301
            }
302
            my $summary = BuildSummary( $authrecord, $authid, $thisauthtypecode );
302
            my $summary = BuildSummary( $authrecord, $authid, $thisauthtypecode );
303
303
304
            if ( C4::Context->preference('ShowHeadingUse') ) {
305
                # checking valid heading use
306
                my $f008 = $authrecord->field('008');
307
                my $pos14to16 = substr( $f008->data, 14, 3 );
308
                my $main = substr( $pos14to16, 0, 1 );
309
                $newline{main} = 1 if $main eq 'a';
310
                my $subject = substr( $pos14to16, 1, 1);
311
                $newline{subject} = 1 if $subject eq 'a';
312
                my $series = substr( $pos14to16, 2, 1 );
313
                $newline{series} = 1 if $series eq 'a';
314
            }
315
304
            $newline{authtype}     = defined($thisauthtype) ?
316
            $newline{authtype}     = defined($thisauthtype) ?
305
                                        $thisauthtype->authtypetext : '';
317
                                        $thisauthtype->authtypetext : '';
306
            $newline{summary}      = $summary;
318
            $newline{summary}      = $summary;
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/searchresultlist-auth.tt (+20 lines)
Lines 1-11 Link Here
1
[% USE raw %]
1
[% USE raw %]
2
[% USE Asset %]
2
[% USE Asset %]
3
[% USE Koha %]
3
[% SET footerjs = 1 %]
4
[% SET footerjs = 1 %]
4
[% PROCESS 'authorities-search-results.inc' %]
5
[% PROCESS 'authorities-search-results.inc' %]
5
[% INCLUDE 'doc-head-open.inc' %]
6
[% INCLUDE 'doc-head-open.inc' %]
6
<title>Cataloging authority plugin &rsaquo; Koha</title>
7
<title>Cataloging authority plugin &rsaquo; Koha</title>
7
[% INCLUDE 'doc-head-close.inc' %]
8
[% INCLUDE 'doc-head-close.inc' %]
8
[% Asset.css("css/addbiblio.css") | $raw %]
9
[% Asset.css("css/addbiblio.css") | $raw %]
10
<style>
11
.usefor {
12
    padding: 0;
13
    margin: 0;
14
}
15
.usefor li {
16
    list-style-type: none;
17
}
18
</style>
9
</head>
19
</head>
10
20
11
<body id="auth_searchresultlist_auth" class="auth">
21
<body id="auth_searchresultlist_auth" class="auth">
Lines 45-50 Link Here
45
                    <th>Summary</th>
55
                    <th>Summary</th>
46
                    <th>Heading type</th>
56
                    <th>Heading type</th>
47
                    <th>Used</th>
57
                    <th>Used</th>
58
                    [% IF Koha.Preference('ShowHeadingUse') %]
59
                        <th>Heading use</th>
60
                    [% END %]
48
                    <th>Get it!</th>
61
                    <th>Get it!</th>
49
                    <th>Other action</th>
62
                    <th>Other action</th>
50
                </tr>
63
                </tr>
Lines 53-58 Link Here
53
                        <td>[% PROCESS authresult summary=resul.summary authid=resul.authid %]</td>
66
                        <td>[% PROCESS authresult summary=resul.summary authid=resul.authid %]</td>
54
                        <td>[% resul.summary.label | html %]</td>
67
                        <td>[% resul.summary.label | html %]</td>
55
                        <td>[% resul.used | html %] times</td>
68
                        <td>[% resul.used | html %] times</td>
69
                        [% IF Koha.Preference('ShowHeadingUse') %]
70
                            <td class="actions"><ul class="usefor">
71
                                <li>[% IF resul.main %]<i class="fa fa-check"></i>[% ELSE %]<i class="fa fa-times"></i>[% END %] Main/Added Entry</li>
72
                                <li>[% IF resul.subject %]<i class="fa fa-check"></i>[% ELSE %]<i class="fa fa-times"></i>[% END %] Subject</li>
73
                                <li>[% IF resul.series %]<i class="fa fa-check"></i>[% ELSE %]<i class="fa fa-times"></i>[% END %] Series Title</li>
74
                            </ul></td>
75
                        [% END %]
56
                        <td>
76
                        <td>
57
                            [% IF resul.summary && resul.summary.authorized && resul.summary.authorized.size > 1 %]
77
                            [% IF resul.summary && resul.summary.authorized && resul.summary.authorized.size > 1 %]
58
                                [% FOREACH authorized IN resul.summary.authorized %]
78
                                [% FOREACH authorized IN resul.summary.authorized %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/searchresultlist.tt (-1 / +20 lines)
Lines 1-9 Link Here
1
[% USE raw %]
1
[% USE raw %]
2
[% USE Koha %]
2
[% SET footerjs = 1 %]
3
[% SET footerjs = 1 %]
3
[% PROCESS 'authorities-search-results.inc' %]
4
[% PROCESS 'authorities-search-results.inc' %]
4
[% INCLUDE 'doc-head-open.inc' %]
5
[% INCLUDE 'doc-head-open.inc' %]
5
<title>Authority search results &rsaquo; Authorities &rsaquo; Koha</title>
6
<title>Authority search results &rsaquo; Authorities &rsaquo; Koha</title>
6
[% INCLUDE 'doc-head-close.inc' %]
7
[% INCLUDE 'doc-head-close.inc' %]
8
<style>
9
.usefor {
10
    padding: 0;
11
    margin: 0;
12
}
13
.usefor li {
14
    list-style-type: none;
15
}
16
</style>
7
</head>
17
</head>
8
18
9
<body id="auth_searchresultlist" class="auth">
19
<body id="auth_searchresultlist" class="auth">
Lines 49-54 Link Here
49
        [% UNLESS ( isEDITORS ) %]
59
        [% UNLESS ( isEDITORS ) %]
50
          <th>Used in</th>
60
          <th>Used in</th>
51
        [% END %]
61
        [% END %]
62
        [% IF Koha.Preference('ShowHeadingUse') %]
63
          <th>Heading use</th>
64
        [% END %]
52
        [% IF ( CAN_user_editauthorities ) %]
65
        [% IF ( CAN_user_editauthorities ) %]
53
          <th>&nbsp;</th>
66
          <th>&nbsp;</th>
54
        [% END %]
67
        [% END %]
Lines 66-71 Link Here
66
      [% END %]
79
      [% END %]
67
      </td>
80
      </td>
68
    [% END %]
81
    [% END %]
82
    [% IF Koha.Preference('ShowHeadingUse') %]
83
        <td class="actions"><ul class="usefor">
84
            <li>[% IF resul.main %]<i class="fa fa-check"></i>[% ELSE %]<i class="fa fa-times"></i>[% END %] Main/Added Entry</li>
85
            <li>[% IF resul.subject %]<i class="fa fa-check"></i>[% ELSE %]<i class="fa fa-times"></i>[% END %] Subject</li>
86
            <li>[% IF resul.series %]<i class="fa fa-check"></i>[% ELSE %]<i class="fa fa-times"></i>[% END %] Series Title</li>
87
        </ul></td>
88
    [% END %]
69
    [% IF ( CAN_user_editauthorities ) %]
89
    [% IF ( CAN_user_editauthorities ) %]
70
      <td>
90
      <td>
71
      <div class="btn-group dropup">
91
      <div class="btn-group dropup">
72
- 

Return to bug 29990