diff --git a/installer/data.sql b/installer/data.sql index 7e3f9c6e..fc9431cf 100644 --- a/installer/data.sql +++ b/installer/data.sql @@ -159,6 +159,7 @@ INSERT INTO `settings` VALUES ('','BatchGuestPassPasswordLabel','Computer Guest INSERT INTO `settings` VALUES ('','BatchGuestPassTemplate','\n \n \n \n \n [% FOREACH g IN guests %]\n

\n

\n [% batch_guest_pass_username_label %][% g.username %]\n

\n

\n [% batch_guest_pass_password_label %][%g. password %]\n

\n

\n
\n [% END %]\n \n'); INSERT INTO `settings` VALUES ('','BatchGuestPassUsernameLabel','Your Library Username= '); INSERT INTO `settings` VALUES ('','ClientBehavior','FCFS+RES'); +INSERT INTO `settings` VALUES ('','ClientTimeWarningFrequency','1'); INSERT INTO `settings` VALUES ('','CurrentGuestNumber','1'); INSERT INTO `settings` VALUES ('','CustomJsAdministration',''); INSERT INTO `settings` VALUES ('','CustomJsPublic',''); diff --git a/installer/versions/5/2.3_setdefaultwarningfrequency.sql b/installer/versions/5/2.3_setdefaultwarningfrequency.sql new file mode 100644 index 00000000..02fca846 --- /dev/null +++ b/installer/versions/5/2.3_setdefaultwarningfrequency.sql @@ -0,0 +1 @@ +INSERT IGNORE INTO settings ( name, value ) VALUES ('ClientTimeWarningFrequency', '1'); diff --git a/lib/Libki/Controller/API/Client/v1_0.pm b/lib/Libki/Controller/API/Client/v1_0.pm index d42038a7..a2a7cc49 100644 --- a/lib/Libki/Controller/API/Client/v1_0.pm +++ b/lib/Libki/Controller/API/Client/v1_0.pm @@ -166,6 +166,7 @@ sub index : Path : Args(0) { ClientTimeNotificationFrequency => $c->stash->{Settings}->{ClientTimeNotificationFrequency} || 5, ClientTimeWarningThreshold => $c->stash->{Settings}->{ClientTimeWarningThreshold} || 5, + ClientTimeWarningFrequency => $c->stash->{Settings}->{ClientTimeWarningFrequency} || 1, ClientStyleSheet => $c->stash->{Settings}->{ClientStyleSheet}, diff --git a/root/dynamic/templates/administration/settings/index.tt b/root/dynamic/templates/administration/settings/index.tt index b7f77227..cffcd475 100644 --- a/root/dynamic/templates/administration/settings/index.tt +++ b/root/dynamic/templates/administration/settings/index.tt @@ -227,9 +227,19 @@ [% c.loc("Minutes") %] - [% c.loc("When the user's remaining remaining time drops below the threshold, Libki will request the OS display the user's remaining time in a warning message once per minute.") %] + [% c.loc("When the user's remaining time drops below the threshold, Libki will request the OS display the user's remaining time in a warning message.") %] +
+ +
+ +
+ [% c.loc("Minutes") %] +
+
+ [% c.loc("Frequency in minutes with which to request the host OS display a message with the user's remaining time after the warning threshold is reached. Defaults to 1.") %] +