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

(-)a/installer/data/mysql/atomicupdate/bug_25673.pl (+18 lines)
Line 0 Link Here
1
use Modern::Perl;
2
use Koha::Installer::Output qw(say_warning say_success say_info);
3
4
return {
5
    bug_number  => "25673",
6
    description => "Add preference BorrowersViewLog",
7
    up          => sub {
8
        my ($args) = @_;
9
        my ( $dbh, $out ) = @$args{qw(dbh out)};
10
11
        $dbh->do(
12
            q{INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type) VALUES ('BorrowersViewLog','0',NULL,'If enabled, log when patron data is viewed','YesNo')}
13
        );
14
15
        say_success( $out, "Added new system preference 'BorrowersViewLog'" );
16
17
    },
18
};
(-)a/installer/data/mysql/mandatory/sysprefs.sql (+1 lines)
Lines 132-137 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
132
('BorrowerRenewalPeriodBase','now','dateexpiry|now|combination','Set whether the borrower renewal date should be counted from the dateexpiry, from the current date or by combination: if the dateexpiry is in future use dateexpiry, else use current date ','Choice'),
132
('BorrowerRenewalPeriodBase','now','dateexpiry|now|combination','Set whether the borrower renewal date should be counted from the dateexpiry, from the current date or by combination: if the dateexpiry is in future use dateexpiry, else use current date ','Choice'),
133
('BorrowersLog','1',NULL,'If ON, log edit/create/delete actions on patron data','YesNo'),
133
('BorrowersLog','1',NULL,'If ON, log edit/create/delete actions on patron data','YesNo'),
134
('BorrowersTitles','Mr|Mrs|Miss|Ms',NULL,'Define appropriate Titles for patrons','free'),
134
('BorrowersTitles','Mr|Mrs|Miss|Ms',NULL,'Define appropriate Titles for patrons','free'),
135
('BorrowersViewLog','0',NULL,'If enabled, log when patron data is viewed','YesNo'),
135
('BorrowerUnwantedField','',NULL,'Name the fields you don\'t need to store for a patron\'s account','free'),
136
('BorrowerUnwantedField','',NULL,'Name the fields you don\'t need to store for a patron\'s account','free'),
136
('BranchTransferLimitsType','ccode','itemtype|ccode','When using branch transfer limits, choose whether to limit by itemtype or collection code.','Choice'),
137
('BranchTransferLimitsType','ccode','itemtype|ccode','When using branch transfer limits, choose whether to limit by itemtype or collection code.','Choice'),
137
('BrowseResultSelection','0',NULL,'Enable/Disable browsing search results fromt the bibliographic record detail page in staff interface','YesNo'),
138
('BrowseResultSelection','0',NULL,'Enable/Disable browsing search results fromt the bibliographic record detail page in staff interface','YesNo'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/logs.pref (-1 / +6 lines)
Lines 12-17 Logging: Link Here
12
                  1: Log
12
                  1: Log
13
                  0: "Don't log"
13
                  0: "Don't log"
14
            - changes to patron records and patron restrictions.
14
            - changes to patron records and patron restrictions.
15
        -
16
            - pref: BorrowersViewLog
17
              choices:
18
                  1: Log
19
                  0: "Don't log"
20
            - when patron data is viewed.
15
        -
21
        -
16
            - pref: CardnumberLog
22
            - pref: CardnumberLog
17
              choices:
23
              choices:
18
- 

Return to bug 25673