From: Bill Erickson Date: Wed, 28 Aug 2013 17:27:52 +0000 (-0400) Subject: LP#1218597 TPAC self-reg DoB date format example message X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=a70787e38083db57b3ff80922fb1c56ebbf617f3;p=evergreen%2Fpines.git LP#1218597 TPAC self-reg DoB date format example message Provide an example DoB date format message. Since the message may need translating, it is provided as a template string and not an org unit setting. Note, however, that the Dojo widget inside the patron registration UI, where self-reg data ultimately goes, requires incoming/default date values to be in ISO8601 format. It will not accept locale-shaped dates. Signed-off-by: Bill Erickson Signed-off-by: Chris Sharp --- diff --git a/Open-ILS/src/templates/opac/register.tt2 b/Open-ILS/src/templates/opac/register.tt2 index a1c7b0e0e1..f307b7f5a4 100644 --- a/Open-ILS/src/templates/opac/register.tt2 +++ b/Open-ILS/src/templates/opac/register.tt2 @@ -34,6 +34,13 @@ register_fields = [ {class => 'stgu', name = 'email', label => l('Email Address')} {class => 'stgu', name = 'usrname', label => l('Requested Username')} ]; + +# The dojo date widget in the patron edit UI only accepts default +# values in ISO8601 format. It will not accept locale-shaped dates. +IF !ctx.register.settings.stgu.dob.example; + ctx.register.settings.stgu.dob.example = l('YYYY-MM-DD'); +END; + %]