metadata101 / iso19139.ca.HNAP

ISO Harmonized North American Profile (HNAP)
GNU General Public License v2.0
4 stars 19 forks source link

Email address format validation #312

Closed wangf1122 closed 1 year ago

wangf1122 commented 1 year ago

This feature is to validate for all email formatting based on existing schematron validation logic for schematron-rules-multilingual.sch and schematron-rules-non-multilingual.sch

image

ianwallen commented 1 year ago

@wangf1122

I just tested with empty emails and I see the following. As we already have an error for an empty email - there is no need to also show the invalid email. - I would expect this to only show the missing required email messages in this case.

image

wangf1122 commented 1 year ago

I did some extra fix to have the validation with allowEmptyEmail option. So in this case, the shematron validation logic wont be duplicated. Here is the test result

image