Mark email addresses and phone numbers invalid user/senator/invalidate_email_and_phone_revised
authorLebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Tue, 27 Dec 2011 23:02:38 +0000 (18:02 -0500)
committerLebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Tue, 10 Jan 2012 22:09:51 +0000 (17:09 -0500)
commitecb9af28303c45024356ff24ef633c59a1c3967d
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>
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