]> git.evergreen-ils.org Git - working/Evergreen.git/commit
Mark email addresses and phone numbers invalid
authorLebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Tue, 27 Dec 2011 23:02:38 +0000 (18:02 -0500)
committerBill Erickson <berick@esilibrary.com>
Wed, 11 Jan 2012 15:04:29 +0000 (10:04 -0500)
commitb9e531a162bd7582cd8daf50eb218b60398fbc98
tree76649d537cf8b74c1d6cb584c506c0765d99eb01
parent096ce41b7877fc9440930c5199a83d4f4dc55a90
Mark email addresses and phone numbers invalid

This comes from an idea from Jeff Godin.  For staff to indicate an
email address or phone number "invalid," for whatever definition of
"invalid" has meaning at the institution (as in invalid addresses
today), there is now a UI control in the patron editor.

This UI control invokes a middle layer method that will clear the email
(or phone) field from actor.usr, and create a corresponding standing penalty
against the user, for staff to notice next time they bring up said patron in
the staff client.  Such penalties will be archived whenever that patron's
email address or phone number is updated again.

The middle layer method is a wrapper around a method that may take
different parameters (like an email address instead of a patron ID) to
potentially support future uses such as invalidating email addresses
automatically in batch.

Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Signed-off-by: Bill Erickson <berick@esilibrary.com>
14 files changed:
Open-ILS/src/perlmods/lib/OpenILS/Application/Actor.pm
Open-ILS/src/perlmods/lib/OpenILS/Utils/BadContact.pm [new file with mode: 0644]
Open-ILS/src/sql/Pg/002.schema.config.sql
Open-ILS/src/sql/Pg/upgrade/XXXX.data.mark-email-and-phone-invalid.sql [new file with mode: 0644]
Open-ILS/src/templates/actor/user/register.tt2
Open-ILS/web/js/dojo/openils/Util.js
Open-ILS/web/js/dojo/openils/actor/nls/register.js
Open-ILS/web/js/ui/default/actor/user/register.js
Open-ILS/web/opac/locale/en-US/lang.dtd
Open-ILS/xul/staff_client/server/patron/display_horiz_overlay.xul
Open-ILS/xul/staff_client/server/patron/display_overlay.xul
Open-ILS/xul/staff_client/server/patron/standing_penalties.js
Open-ILS/xul/staff_client/server/patron/util.js
Open-ILS/xul/staff_client/server/skin/patron_display.css