Bug 15504: Add new syspref TrackLastPatronActivityTriggers
This patch adds a new syspref TrackLastPatronActivityTriggers to determine which actions should update borrowers.lastseen Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
parent
a36e05904a
commit
b694c85edf
3 changed files with 27 additions and 2 deletions
|
@ -0,0 +1,16 @@
|
|||
use Modern::Perl;
|
||||
|
||||
return {
|
||||
bug_number => "15504",
|
||||
description => "Adds a new system preference - TrackLastPatronActivityTriggers",
|
||||
up => sub {
|
||||
my ($args) = @_;
|
||||
my ( $dbh, $out ) = @$args{qw(dbh out)};
|
||||
|
||||
$dbh->do(
|
||||
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') }
|
||||
);
|
||||
|
||||
say $out "Added system preference 'TrackLastPatronActivityTriggers'";
|
||||
},
|
||||
};
|
|
@ -754,6 +754,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `
|
|||
('TraceSubjectSubdivisions','0','1','Create searches on all subdivisions for subject tracings.','YesNo'),
|
||||
('TrackClicks','0',NULL,'Track links clicked','Integer'),
|
||||
('TrackLastPatronActivity','0',NULL,'If set, the field borrowers.lastseen will be updated everytime a patron is seen','YesNo'),
|
||||
('TrackLastPatronActivityTriggers','',NULL,'If set, the field borrowers.lastseen will be updated everytime a patron is does a selected option','multiple'),
|
||||
('TransfersBlockCirc','1',NULL,'Should the transfer modal block circulation staff from continuing scanning items','YesNo'),
|
||||
('TransfersMaxDaysWarning','3',NULL,'Define the days before a transfer is suspected of having a problem','Integer'),
|
||||
('TransferWhenCancelAllWaitingHolds','0',NULL,'Transfer items when cancelling all waiting holds','YesNo'),
|
||||
|
|
|
@ -103,8 +103,16 @@ Patrons:
|
|||
choices:
|
||||
1: Do
|
||||
0: "Don't"
|
||||
- track last patron activity.
|
||||
- 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.
|
||||
- track last patron activity. Use TrackLastPatronActivityTriggers to select which activities should be tracked.
|
||||
-
|
||||
- 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.
|
||||
- pref: TrackLastPatronActivityTriggers
|
||||
multiple:
|
||||
login: "Login to OPAC"
|
||||
connection: "Connection to Koha via SIP or ILSDI"
|
||||
check_out: "Checking out an item"
|
||||
renewal: "Renewing an item"
|
||||
check_in: "Returning an item"
|
||||
-
|
||||
- pref: AutoApprovePatronProfileSettings
|
||||
choices:
|
||||
|
|
Loading…
Reference in a new issue