[Koha-bugs] [Bug 14620] Contact information validations

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Aug 12 14:17:40 CEST 2015


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14620

--- Comment #1 from Lari Taskula <larit at student.uef.fi> ---
Created attachment 41461
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=41461&action=edit
Bug 14620 - Contact information validations

I'm thinking we should centralize all patron's contact information validators
into one module. Currently we only have validations for e-mail addresses, using
the Email::Valid module. In our local library we also want to validate phone
numbers with a regex that only recognizes phone numbers from my country. So I
suggest we create a phone number validation as well, with an option to easily
create custom regex for your local use.

If a library does not wish to use validations, we should give them an option to
turn them off. If more local validators are implemented, we should also give
the library an option to select which validator they wish to use.

With this method we could implement phone number validators from around the
world and add them into our module. Then we would make the validations simply
by calling our validator. The validator would know by system preference which
one of the implemented phone number validators it should use.

Validations should be both client and server side.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list