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

Return to bug 15504