From a70787e38083db57b3ff80922fb1c56ebbf617f3 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Wed, 28 Aug 2013 13:27:52 -0400 Subject: [PATCH] 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 --- Open-ILS/src/templates/opac/register.tt2 | 7 +++++++ 1 file changed, 7 insertions(+) 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; + %]
-- 2.11.0