Koha/members
Juhani Seppälä ab1fd8a556 Bug 5685: Validation of email address field
This patch adds server-side & client-side validation for email
form fields in the members/memberentry -view and in the
opac/memberentry-view (bootstrap).

I recently added simple validation for phone number and email address fields
for our in-house koha and saw this old bug: I'm open to any ideas on how
to do this better. Validation for phone numbers would be easy to add on
top of this but I left it out since this bug is only about the email
fields.

To test:
1) Select a member and go to any of the edit forms with email fields
(Primary info, "Library use", "Alternate address", "Alternative
contact").
2) Disable javascript in the browser in order to test server-side
validation and try to input invalid emails in each of the email form
fields.
3) Confirm that an invalid address is catched from any of the email
fields, an alert shown for each invalid address and that the member's
information was not updated with invalid data.
4) Enable javascript in the browser.
5) Confirm that the jquery validation plugin caches invalid addresses
from any of the email fields and that you cannot send the form before
correcting the problem.
6) Perform the same tests for the opac-memberentry-view.

Note: as the jQuery validation plugin doesn't exist in the bootstrap
folder, I just copied it over from the staff-client folder -how to deal
with this?

Signed-off-by: Owen Leonard <oleonard@myacpl.org>

I have undone the changes to opac.css so that they can be submitted as a
separate patch. I have some other follow-ups to make as well.

Signed-off-by: Nicole Engard <nengard@bywatersolutions.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2015-07-24 13:47:32 -03:00
..
boraccount.pl Bug 11804: Remove references to circ-menu.tt 2015-06-22 16:57:12 -03:00
default_messageprefs.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
deletemem.pl Bug 13910: Prevent delete of one's own patron account 2015-05-14 11:45:40 -03:00
discharge.pl Bug 14280: Add branches fields to discharges letters 2015-06-11 13:12:32 -03:00
discharges.pl Bug 8007: Discharge management 2015-04-30 12:33:56 -03:00
files.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
guarantor_search.pl Bug 13891: DataTables server-side processing - Fix regressions 2015-04-13 10:55:30 -03:00
mancredit.pl Bug 4041: Third step - Display address on patron's pages using the system preference 2015-04-29 11:25:11 -03:00
maninvoice.pl Bug 4041: Third step - Display address on patron's pages using the system preference 2015-04-29 11:25:11 -03:00
member-flags.pl Bug 11944: use CGI( -utf8 ) everywhere 2015-01-13 13:07:21 -03:00
member-password.pl Bug 11944: use CGI( -utf8 ) everywhere 2015-01-13 13:07:21 -03:00
member.pl Bug 7380: Rename filter to avoid confusion 2015-05-19 10:10:31 -03:00
memberentry.pl Bug 5685: Validation of email address field 2015-07-24 13:47:32 -03:00
members-home.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
members-update-do.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
members-update.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
mod_debarment.pl Bug 11944: use CGI( -utf8 ) everywhere 2015-01-13 13:07:21 -03:00
moremember.pl Bug 14324: Display "Add Child" for Organisations on circ/circulation.pl 2015-06-23 10:19:35 -03:00
nl-search.pl Bug 14038: Make nl-search.pl not using C4::Members::Search 2015-05-15 15:37:09 -03:00
notices.pl Bug 4041: Third step - Display address on patron's pages using the system preference 2015-04-29 11:25:11 -03:00
patronimage.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
pay.pl Bug 11804: Remove references to circ-menu.tt 2015-06-22 16:57:12 -03:00
paycollect.pl Bug 11804: Remove references to circ-menu.tt 2015-06-22 16:57:12 -03:00
printfeercpt.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
printinvoice.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
printslip.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
purchase-suggestions.pl Bug 4041: Third step - Display address on patron's pages using the system preference 2015-04-29 11:25:11 -03:00
readingrec.pl Bug 4041: Third step - Display address on patron's pages using the system preference 2015-04-29 11:25:11 -03:00
routing-lists.pl Bug 4041: Third step - Display address on patron's pages using the system preference 2015-04-29 11:25:11 -03:00
setstatus.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
statistics.pl Bug 4041: Third step - Display address on patron's pages using the system preference 2015-04-29 11:25:11 -03:00
summary-print.pl Bug 10423: Show date due with time if it's a hourly loan 2015-04-24 20:15:50 -03:00
update-child.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00