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

(-)a/C4/Auth.pm (+1 lines)
Lines 498-503 sub get_template_and_user { Link Here
498
            IntranetmainUserblock        => C4::Context->preference("IntranetmainUserblock"),
498
            IntranetmainUserblock        => C4::Context->preference("IntranetmainUserblock"),
499
            IntranetNav                  => C4::Context->preference("IntranetNav"),
499
            IntranetNav                  => C4::Context->preference("IntranetNav"),
500
            intranetreadinghistory       => C4::Context->preference("intranetreadinghistory"),
500
            intranetreadinghistory       => C4::Context->preference("intranetreadinghistory"),
501
            IntranetReadingHistoryHolds  => C4::Context->preference("IntranetReadingHistoryHolds"),
501
            intranetstylesheet           => C4::Context->preference("intranetstylesheet"),
502
            intranetstylesheet           => C4::Context->preference("intranetstylesheet"),
502
            IntranetUserCSS              => C4::Context->preference("IntranetUserCSS"),
503
            IntranetUserCSS              => C4::Context->preference("IntranetUserCSS"),
503
            IntranetUserJS               => C4::Context->preference("IntranetUserJS"),
504
            IntranetUserJS               => C4::Context->preference("IntranetUserJS"),
(-)a/installer/data/mysql/atomicupdate/bug_31357.pl (+17 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(
10
            q{
11
            INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) SELECT
12
            'IntranetReadingHistoryHolds', value, '', 'If ON, Holds history is enabled for all patrons', 'YesNo'
13
            FROM systempreferences WHERE variable = 'intranetreadinghistory';
14
        }
15
        );
16
    },
17
    }
(-)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 44-50 Link Here
44
[% INCLUDE 'members-toolbar.inc' %]
44
[% INCLUDE 'members-toolbar.inc' %]
45
<h1>Holds history</h1>
45
<h1>Holds history</h1>
46
46
47
[% UNLESS Koha.Preference('intranetreadinghistory') %]
47
[% UNLESS Koha.Preference('IntranetReadingHistoryHolds') %]
48
    <div class="dialog alert">Staff members are not allowed to access patron's holds history</div>
48
    <div class="dialog alert">Staff members are not allowed to access patron's holds history</div>
49
[% ELSIF is_anonymous %]
49
[% ELSIF is_anonymous %]
50
    <div class="dialog alert">This is the anonymous patron, so no holds history is displayed.</div>
50
    <div class="dialog alert">This is the anonymous patron, so no holds history is displayed.</div>
51
- 

Return to bug 31357