No Jira issue. Added a check in the event there are datatypes defined for other than xsd.

This commit is contained in:
Tim Worrall 2015-04-08 15:51:10 -04:00
parent 6cc12c239e
commit e442dbd7cc

View file

@ -8,6 +8,8 @@
<#import "lib-datetime.ftl" as dt>
<#if property.rangeDatatypeURI?? && property.rangeDatatypeURI?contains("#")>
<#assign datatype = property.rangeDatatypeURI?substring(property.rangeDatatypeURI?last_index_of("#")+1) />
<#else>
<#assign datatype = "none" />
</#if>
<@showStatement statement datatype />
@ -39,7 +41,7 @@
<#assign theValue = "2000" + theValue?substring(1) + "-01T00:00:00" />
${dt.formatXsdDateTimeLong(theValue, "monthPrecision")}
<#else>
${theValue} <@validateFormat theValue datatype/>
${theValue} <#if !datatype?contains("none")> <@validateFormat theValue datatype/> </#if>
</#if>
</#macro>
<#macro validateFormat value datatype >