]> git.evergreen-ils.org Git - Evergreen.git/commit
Prevent future dates of birth in patron editor
authorLebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Fri, 3 Jun 2011 19:17:48 +0000 (15:17 -0400)
committerDan Scott <dan@coffeecode.net>
Tue, 7 Jun 2011 15:41:50 +0000 (11:41 -0400)
commitec80ae0f14d4454fbc39c7724e7e0b61dccce7fa
treeb7d302a7b7ec00b79fc172d8fee705e55db04168
parent62967e611d91e8246a88b69f98b259a8258f01b9
Prevent future dates of birth in patron editor

The patron editor form allowed staff to enter a date of birth that takes
place in the future. While it is theoretically conceivable (hah) that
a library might register patrons that have yet to be born, it is
unlikely enough that we will not even assign this behavior to an
org-unit setting, but we will take the bold move of using a regular
expression to prevent a future dates of birth at all.

Note that if a library system travels into the past, this will cause all
sorts of problems in the patron editor interface (not to mention
overdues). Please do not mix Evergreen and time travel.

Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Signed-off-by: Dan Scott <dan@coffeecode.net>
Open-ILS/web/js/ui/default/actor/user/register.js