Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions installer/data.sql
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ INSERT INTO `settings` VALUES ('','BatchGuestPassPasswordLabel','Computer Guest
INSERT INTO `settings` VALUES ('','BatchGuestPassTemplate','<html>\n <head>\n <style type=\"text/css\">[% batch_guest_pass_custom_css %]</style>\n </head>\n <body>\n [% FOREACH g IN guests %]\n <p class=\"guest-pass\">\n <p class=\"guest-pass-username\">\n <span class=\"guest-pass-username-label\">[% batch_guest_pass_username_label %]</span><span class=\"guest-pass-username-content\">[% g.username %]</span>\n </p>\n <p class=\"guest-pass-password\">\n <span class=\"guest-pass-password-label\">[% batch_guest_pass_password_label %]</span><span class=\"guest-pass-password-content\">[%g. password %]</span>\n </p>\n </p>\n <br/>\n [% END %]\n </body>\n</html>');
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','');
Expand Down
1 change: 1 addition & 0 deletions installer/versions/5/2.3_setdefaultwarningfrequency.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
INSERT IGNORE INTO settings ( name, value ) VALUES ('ClientTimeWarningFrequency', '1');
1 change: 1 addition & 0 deletions lib/Libki/Controller/API/Client/v1_0.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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},

Expand Down
12 changes: 11 additions & 1 deletion root/dynamic/templates/administration/settings/index.tt
Original file line number Diff line number Diff line change
Expand Up @@ -227,9 +227,19 @@
<span class="input-group-text">[% c.loc("Minutes") %]</span>
</div>
</div>
<small class="form-text text-muted">[% 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.") %]</small>
<small class="form-text text-muted">[% 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.") %]</small>
</div>

<div class="form-group">
<label for="ClientTimeWarningFrequency"> [% c.loc("Time notification frequency after threshold") %]</label>
<div class="input-group">
<input type="text" class="form-control" id="ClientTimeWarningFrequency" name="ClientTimeWarningFrequency" value="[% ClientTimeWarningFrequency %]">
<div class="input-group-append">
<span class="input-group-text">[% c.loc("Minutes") %]</span>
</div>
</div>
<small class="form-text text-muted">[% 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.") %]</small>
</div>
</fieldset>

<fieldset>
Expand Down
Loading