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>
Sun, 22 May 2016 03:50:26 +0000 (23:50 -0400)
commit588dc85a3dfca4fd74e27736957b360894303215
tree02febc34b82f286c6dec9aa3eeb64aea6cd290c9
parentea8e52779ab6890d0261894429c91103c2a81236
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