INSERT INTO config.org_unit_setting_type
(name, grp, label, description, datatype)
VALUES (
- 'circ.prewarn_expire_setting',
+ 'circ.patron_expires_soon_warning',
'circ',
oils_i18n_gettext(
- 'circ.prewarn_expire_setting',
- 'Pre-warning for patron expiration',
+ 'circ.patron_expires_soon_warning',
+ 'Warn when patron account is about to expire',
'coust',
'label'
),
oils_i18n_gettext(
- 'circ.prewarn_expire_setting',
- 'Pre-warning for patron expiration. This setting defines the number of days before patron expiration to display a message suggesting it is time to renew the patron account. Value is in number of days, for example: 3 for 3 days.',
+ 'circ.patron_expires_soon_warning',
+ 'Warn when patron account is about to expire. If set, the staff client displays a warning this many days before the expiry of a patron account. Value is in number of days, for example: 3 for 3 days.',
'coust',
'description'
),
INSERT INTO config.org_unit_setting_type
(name, grp, label, description, datatype)
VALUES (
- 'circ.prewarn_expire_setting',
+ 'circ.patron_expires_soon_warning',
'circ',
oils_i18n_gettext(
- 'circ.prewarn_expire_setting',
- 'Pre-warning for patron expiration',
+ 'circ.patron_expires_soon_warning',
+ 'Warn when patron account is about to expire',
'coust',
'label'
),
oils_i18n_gettext(
- 'circ.prewarn_expire_setting',
- 'Pre-warning for patron expiration. This setting defines the number of days before patron expiration to display a message suggesting it is time to renew the patron account. Value is in number of days, for example: 3 for 3 days.',
+ 'circ.patron_expires_soon_warning',
+ 'Warn when patron account is about to expire. If set, the staff client displays a warning this many days before the expiry of a patron account. Value is in number of days, for example: 3 for 3 days.',
'coust',
'description'
),
var preexpire = new Date();
var preexpire_value;
- if (obj.OpenILS.data.hash.aous['circ.prewarn_expire_setting']) {
- if (typeof obj.OpenILS.data.hash.aous['circ.prewarn_expire_setting'] == "string") {
- preexpire_value = parseInt(obj.OpenILS.data.hash.aous['circ.prewarn_expire_setting']);
+ var preexpire_setting = obj.OpenILS.data.hash.aous['circ.patron_expires_soon_warning'];
+ if (preexpire_setting) {
+ if (typeof preexpire_setting == "string") {
+ preexpire_value = parseInt(preexpire_setting);
} else {
- preexpire_value = obj.OpenILS.data.hash.aous['circ.prewarn_expire_setting'];
+ preexpire_value = preexpire_setting;
}
preexpire.setDate(preexpire.getDate() + preexpire_value);
}
if (expire < now) {
msg += $("patronStrings").getString('staff.patron.display.init.network_request.account_expired');
obj.stop_checkouts = true;
- } else if (expire < preexpire && obj.OpenILS.data.hash.aous['circ.prewarn_expire_setting']) {
+ } else if (expire < preexpire && preexpire_setting) {
msg += $("patronStrings").getString('staff.patron.display.init.network_request.account_expire_soon');
}
}
--- /dev/null
+New feature: "Warn patrons when their account is about to expire"
+=================================================================
+To give staff the ability to warn patrons when their account is about to
+expire, the staff client can display an alert message on the patron information
+window. A new library setting, `Warn patrons when their account is about to
+expire` in the *Circulation* section of the *Library Settings Editor*,
+determines how many days in advance of a patron's account expiry date the alert
+should be displayed. By default, warnings about upcoming patron account expiry
+dates are not displayed.