unless defined $shash->{stgu}{usrname}{show};
$ctx->{register}{settings} = $shash;
+
+ # laod the page timeout setting
+ $shash->{refresh_timeout} =
+ $ctx->{get_org_setting}->($ctx_org, 'opac.self_register.timeout');
}
# inspects each value and determines, based on org unit settings,
);
-
-
INSERT into config.org_unit_setting_type
(name, grp, label, description, datatype)
VALUES (
TRUE
);
+INSERT INTO config.org_unit_setting_type
+ (name, grp, datatype, label, description)
+VALUES (
+ 'opac.self_register.timeout',
+ 'opac',
+ 'integer',
+ oils_i18n_gettext(
+ 'opac.self_register.timeout',
+ 'Patron Self-Reg. Display Timeout',
+ 'coust',
+ 'label'
+ ),
+ oils_i18n_gettext(
+ 'opac.self_register.timeout',
+ 'Number of seconds to wait before reloading the patron self-'||
+ 'registration interface to clear sensitive data',
+ 'coust',
+ 'description'
+ )
+);
+
--- /dev/null
+BEGIN;
+
+INSERT INTO config.org_unit_setting_type
+ (name, grp, datatype, label, description)
+VALUES (
+ 'opac.self_register.timeout',
+ 'opac',
+ 'integer',
+ oils_i18n_gettext(
+ 'opac.self_register.timeout',
+ 'Patron Self-Reg. Display Timeout',
+ 'coust',
+ 'label'
+ ),
+ oils_i18n_gettext(
+ 'opac.self_register.timeout',
+ 'Number of seconds to wait before reloading the patron self-'||
+ 'registration interface to clear sensitive data',
+ 'coust',
+ 'description'
+ )
+);
+
+COMMIT;
INCLUDE "opac/parts/topnav.tt2";
ctx.page_title = l("Request Library Card");
+# for privacy, reload the page after (default) 5 minutes
+refresh_time = ctx.register.settings.refresh_timeout || 300;
+ctx.refresh = refresh_time _ '; ' _ ctx.opac_root _ '/home';
+
# some useful variables and MACROs for display,
# field validation, and added info display