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

(-)a/C4/Auth.pm (+1 lines)
Lines 485-490 sub get_template_and_user { Link Here
485
            intranetcolorstylesheet                                                    => C4::Context->preference("intranetcolorstylesheet"),
485
            intranetcolorstylesheet                                                    => C4::Context->preference("intranetcolorstylesheet"),
486
            IntranetFavicon                                                            => C4::Context->preference("IntranetFavicon"),
486
            IntranetFavicon                                                            => C4::Context->preference("IntranetFavicon"),
487
            intranetreadinghistory                                                     => C4::Context->preference("intranetreadinghistory"),
487
            intranetreadinghistory                                                     => C4::Context->preference("intranetreadinghistory"),
488
            intranetReadingHistoryHolds                                                => C4::Context->preference("intranetReadingHistoryHolds"),
488
            intranetstylesheet                                                         => C4::Context->preference("intranetstylesheet"),
489
            intranetstylesheet                                                         => C4::Context->preference("intranetstylesheet"),
489
            IntranetUserCSS                                                            => C4::Context->preference("IntranetUserCSS"),
490
            IntranetUserCSS                                                            => C4::Context->preference("IntranetUserCSS"),
490
            IntranetUserJS                                                             => C4::Context->preference("IntranetUserJS"),
491
            IntranetUserJS                                                             => C4::Context->preference("IntranetUserJS"),
(-)a/installer/data/mysql/atomicupdate/bug_31357.pl (+15 lines)
Line 0 Link Here
1
use Modern::Perl;
2
3
return {
4
    bug_number => "31357",
5
    description => "Add new system preference intranetReadingHistoryHolds",
6
    up => sub {
7
        my ($args) = @_;
8
        my ($dbh, $out) = @$args{qw(dbh out)};
9
        $dbh->do(q{
10
            INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) SELECT
11
            'intranetReadingHistoryHolds', value, '', 'If ON, Holds history is enabled for all patrons', 'YesNo'
12
            FROM systempreferences WHERE variable = 'intranetreadinghistory';
13
        });
14
    },
15
}
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc (-1 / +1 lines)
Lines 151-157 Link Here
151
        [% END %]
151
        [% END %]
152
    [% END %]
152
    [% END %]
153
    [% IF CAN_user_borrowers_edit_borrowers %]
153
    [% IF CAN_user_borrowers_edit_borrowers %]
154
        [% IF ( intranetreadinghistory ) %]
154
        [% IF ( intranetReadingHistoryHolds ) %]
155
            [% IF ( holdshistoryview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/holdshistory.pl?borrowernumber=[% patron.borrowernumber | uri %]">Holds history</a></li>
155
            [% IF ( holdshistoryview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/holdshistory.pl?borrowernumber=[% patron.borrowernumber | uri %]">Holds history</a></li>
156
        [% END %]
156
        [% END %]
157
    [% END %]
157
    [% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/patrons.pref (-1 / +7 lines)
Lines 26-32 Patrons: Link Here
26
           choices:
26
           choices:
27
               1: "Allow"
27
               1: "Allow"
28
               0: "Don't allow"
28
               0: "Don't allow"
29
         - "staff to access a patron's checkout and hold history (checkout history is still stored, regardless of staff being allowed access or not)."
29
         - "staff to access a patron's checkout (checkout history is still stored, regardless of staff being allowed access or not)."
30
     -
31
         - pref: intranetReadingHistoryHolds
32
           choices:
33
               1: "Allow"
34
               0: "Don't allow"
35
         - "staff to access a patron's hold history (hold history is still stored, regardless of staff being allowed access or not)."
30
     -
36
     -
31
         - "When deleting a patron who owns public or shared lists,"
37
         - "When deleting a patron who owns public or shared lists,"
32
         - pref: ListOwnershipUponPatronDeletion
38
         - pref: ListOwnershipUponPatronDeletion
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/holdshistory.tt (-2 / +1 lines)
Lines 39-45 Link Here
39
[% INCLUDE 'members-toolbar.inc' %]
39
[% INCLUDE 'members-toolbar.inc' %]
40
<h1>Holds history</h1>
40
<h1>Holds history</h1>
41
41
42
[% UNLESS Koha.Preference('intranetreadinghistory') %]
42
[% UNLESS Koha.Preference('intranetReadingHistoryHolds') %]
43
    <div class="dialog alert">Staff members are not allowed to access patron's holds history</div>
43
    <div class="dialog alert">Staff members are not allowed to access patron's holds history</div>
44
[% ELSIF is_anonymous %]
44
[% ELSIF is_anonymous %]
45
    <div class="dialog alert">This is the anonymous patron, so no holds history is displayed.</div>
45
    <div class="dialog alert">This is the anonymous patron, so no holds history is displayed.</div>
46
- 

Return to bug 31357