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>
Thu, 26 Dec 2013 19:10:23 +0000 (14:10 -0500)
commita1bb7ee5b992b80d9848f35dae8a819d33dfb292
tree334c5f6ef68b2620e06b875c72bf6c9c13f97242
parent44851383072d3ebbf2d8652ede6c84b67e64ac28
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