Add username suggestion based on patron name user/jeff/lp1246867_suggest_username
authorJeff Godin <jgodin@tadl.org>
Wed, 30 Oct 2013 20:52:19 +0000 (16:52 -0400)
committerJeff Godin <jgodin@tadl.org>
Sat, 28 Dec 2013 21:02:11 +0000 (16:02 -0500)
commit6f635b8fbce5e3b64540ebd6fd12d640bc70f7ce
tree73663d3b326f486ef3512dc31ec8c9a630fb3d45
parent5e373d30ab716a94de7521409e12c1fdabcee5a9
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