Add username suggestion based on patron name
authorJeff Godin <jgodin@tadl.org>
Wed, 30 Oct 2013 20:52:19 +0000 (16:52 -0400)
committerJeff Godin <jgodin@tadl.org>
Tue, 7 Apr 2015 15:22:32 +0000 (11:22 -0400)
commit21efc60a03946564efea31dd2fa1180d87b64d45
tree0dbe1b0f2dfdefd706a01760d90ab2f2deb91c6f
parent2e12483c03f88e6132aa6ca416b8919328fa1f6e
Add username suggestion based on patron name

Add support for suggesting a username based on the patron's first
and last name.

Currently, the scheme for suggestion is a lowercased first initial +
last name, with any characters other than [a-z] removed.

No effort is made to suggest an available username, but if the
suggested username is already in use, the standard "username in use"
message is displayed next to the username field.

Staff can initiate the username suggestion by clicking the new
button next to the username field, and usernames are automatically
suggested when loading a staged user.

Signed-off-by: Jeff Godin <jgodin@tadl.org>
Open-ILS/web/js/ui/default/actor/user/register.js