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

(-)a/installer/data/mysql/atomicupdate/bug_15504-add-tracklastpatronactivityoptions.pl (+16 lines)
Line 0 Link Here
1
use Modern::Perl;
2
3
return {
4
    bug_number  => "15504",
5
    description => "Adds a new system preference - TrackLastPatronActivityTriggers",
6
    up          => sub {
7
        my ($args) = @_;
8
        my ( $dbh, $out ) = @$args{qw(dbh out)};
9
10
        $dbh->do(
11
            q{INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type) VALUES ('TrackLastPatronActivityTriggers','',NULL,'If set, the field borrowers.lastseen will be updated every time a patron is does a selected option','multiple') }
12
        );
13
14
        say $out "Added system preference 'TrackLastPatronActivityTriggers'";
15
    },
16
};
(-)a/installer/data/mysql/mandatory/sysprefs.sql (+1 lines)
Lines 739-744 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
739
('TraceSubjectSubdivisions','0','1','Create searches on all subdivisions for subject tracings.','YesNo'),
739
('TraceSubjectSubdivisions','0','1','Create searches on all subdivisions for subject tracings.','YesNo'),
740
('TrackClicks','0',NULL,'Track links clicked','Integer'),
740
('TrackClicks','0',NULL,'Track links clicked','Integer'),
741
('TrackLastPatronActivity','0',NULL,'If set, the field borrowers.lastseen will be updated everytime a patron is seen','YesNo'),
741
('TrackLastPatronActivity','0',NULL,'If set, the field borrowers.lastseen will be updated everytime a patron is seen','YesNo'),
742
('TrackLastPatronActivityTriggers','',NULL,'If set, the field borrowers.lastseen will be updated everytime a patron is does a selected option','multiple'),
742
('TransfersBlockCirc','1',NULL,'Should the transfer modal block circulation staff from continuing scanning items','YesNo'),
743
('TransfersBlockCirc','1',NULL,'Should the transfer modal block circulation staff from continuing scanning items','YesNo'),
743
('TransfersMaxDaysWarning','3',NULL,'Define the days before a transfer is suspected of having a problem','Integer'),
744
('TransfersMaxDaysWarning','3',NULL,'Define the days before a transfer is suspected of having a problem','Integer'),
744
('TransferWhenCancelAllWaitingHolds','0',NULL,'Transfer items when cancelling all waiting holds','YesNo'),
745
('TransferWhenCancelAllWaitingHolds','0',NULL,'Transfer items when cancelling all waiting holds','YesNo'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/patrons.pref (-3 / +10 lines)
Lines 89-96 Patrons: Link Here
89
           choices:
89
           choices:
90
               1: Do
90
               1: Do
91
               0: "Don't"
91
               0: "Don't"
92
         - track last patron activity.
92
         - track last patron activity. Use TrackLastPatronActivityTriggers to select which activities should be tracked.
93
         - The first time each day that a patron logs into the OPAC, connects to Koha via SIP or ILS-DI, or checks an item out the borrowers.lastseen will update with the current date and time.
93
     -
94
         - Select which activities should be tracked. The first time each day that one of these activities occurs, borrowers.lastseen will update with the current date and time.
95
         - pref: TrackLastPatronActivityTriggers
96
           multiple:
97
               login: "Login to OPAC"
98
               connection: "Connection to Koha via SIP or ILSDI"
99
               check_out: "Checking out an item"
100
               renewal: "Renewing an item"
101
               check_in: "Returning an item"
94
     -
102
     -
95
         - pref: AutoApprovePatronProfileSettings
103
         - pref: AutoApprovePatronProfileSettings
96
           choices:
104
           choices:
97
- 

Return to bug 15504