Comment 1 for bug 1361266

Revision history for this message
Michael Peters (mrpeters) wrote :

Hi Terran,

I've submitted a patch to the working repo at http://git.evergreen-ils.org/?p=working/Evergreen.git;a=shortlog;h=refs/heads/user/mrpeters/lp1361266_opac_registration_date_validation to help alleviate some of the annoyance of not having any validation at all on the field.

This adds some simple JavaScript to make sure the input in the stgu.dob text field is in ISO 8601 format upon submitting. If not, the user receives a warning about an invalid date or format and is asked to correct it.

I know this may not be able to be accepted into Evergreen "master" because the popup message is not i18n friendly, but I'm submitting it anyways as lots of implementations are English-speaking organizations and this can benefit them. Hopefully someone can implement a more i18n friendly solution in the future, or maybe even add that date picker, but I wanted to at least resolve the problem you proposed with a little bit of data format validation.

This should cherry-pick cleanly into any version of Evergreen that supports patron self registration (assuming you have enabled the YAOUS to allow it) and is available from http://hostname.tld/eg/opac/register which can be linked from your website or OPAC.