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 742-747 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
742
('TraceSubjectSubdivisions','0','1','Create searches on all subdivisions for subject tracings.','YesNo'),
742
('TraceSubjectSubdivisions','0','1','Create searches on all subdivisions for subject tracings.','YesNo'),
743
('TrackClicks','0',NULL,'Track links clicked','Integer'),
743
('TrackClicks','0',NULL,'Track links clicked','Integer'),
744
('TrackLastPatronActivity','0',NULL,'If set, the field borrowers.lastseen will be updated everytime a patron is seen','YesNo'),
744
('TrackLastPatronActivity','0',NULL,'If set, the field borrowers.lastseen will be updated everytime a patron is seen','YesNo'),
745
('TrackLastPatronActivityTriggers','',NULL,'If set, the field borrowers.lastseen will be updated everytime a patron is does a selected option','multiple'),
745
('TransfersBlockCirc','1',NULL,'Should the transfer modal block circulation staff from continuing scanning items','YesNo'),
746
('TransfersBlockCirc','1',NULL,'Should the transfer modal block circulation staff from continuing scanning items','YesNo'),
746
('TransfersMaxDaysWarning','3',NULL,'Define the days before a transfer is suspected of having a problem','Integer'),
747
('TransfersMaxDaysWarning','3',NULL,'Define the days before a transfer is suspected of having a problem','Integer'),
747
('TransferWhenCancelAllWaitingHolds','0',NULL,'Transfer items when cancelling all waiting holds','YesNo'),
748
('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 95-102 Patrons: Link Here
95
           choices:
95
           choices:
96
               1: Do
96
               1: Do
97
               0: "Don't"
97
               0: "Don't"
98
         - track last patron activity.
98
         - track last patron activity. Use TrackLastPatronActivityTriggers to select which activities should be tracked.
99
         - 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.
99
     -
100
         - 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.
101
         - pref: TrackLastPatronActivityTriggers
102
           multiple:
103
               login: "Login to OPAC"
104
               connection: "Connection to Koha via SIP or ILSDI"
105
               check_out: "Checking out an item"
106
               renewal: "Renewing an item"
107
               check_in: "Returning an item"
100
     -
108
     -
101
         - pref: AutoApprovePatronProfileSettings
109
         - pref: AutoApprovePatronProfileSettings
102
           choices:
110
           choices:
103
- 

Return to bug 15504