No Jira issue. Added a check in the event there are datatypes defined for other than xsd.
This commit is contained in:
parent
6cc12c239e
commit
e442dbd7cc
1 changed files with 3 additions and 1 deletions
|
@ -8,6 +8,8 @@
|
||||||
<#import "lib-datetime.ftl" as dt>
|
<#import "lib-datetime.ftl" as dt>
|
||||||
<#if property.rangeDatatypeURI?? && property.rangeDatatypeURI?contains("#")>
|
<#if property.rangeDatatypeURI?? && property.rangeDatatypeURI?contains("#")>
|
||||||
<#assign datatype = property.rangeDatatypeURI?substring(property.rangeDatatypeURI?last_index_of("#")+1) />
|
<#assign datatype = property.rangeDatatypeURI?substring(property.rangeDatatypeURI?last_index_of("#")+1) />
|
||||||
|
<#else>
|
||||||
|
<#assign datatype = "none" />
|
||||||
</#if>
|
</#if>
|
||||||
<@showStatement statement datatype />
|
<@showStatement statement datatype />
|
||||||
|
|
||||||
|
@ -39,7 +41,7 @@
|
||||||
<#assign theValue = "2000" + theValue?substring(1) + "-01T00:00:00" />
|
<#assign theValue = "2000" + theValue?substring(1) + "-01T00:00:00" />
|
||||||
${dt.formatXsdDateTimeLong(theValue, "monthPrecision")}
|
${dt.formatXsdDateTimeLong(theValue, "monthPrecision")}
|
||||||
<#else>
|
<#else>
|
||||||
${theValue} <@validateFormat theValue datatype/>
|
${theValue} <#if !datatype?contains("none")> <@validateFormat theValue datatype/> </#if>
|
||||||
</#if>
|
</#if>
|
||||||
</#macro>
|
</#macro>
|
||||||
<#macro validateFormat value datatype >
|
<#macro validateFormat value datatype >
|
||||||
|
|
Loading…
Add table
Reference in a new issue