diff --git a/webapp/src/main/webapp/templates/freemarker/body/partials/individual/propStatement-dataDefault.ftl b/webapp/src/main/webapp/templates/freemarker/body/partials/individual/propStatement-dataDefault.ftl new file mode 100644 index 00000000..7891a72e --- /dev/null +++ b/webapp/src/main/webapp/templates/freemarker/body/partials/individual/propStatement-dataDefault.ftl @@ -0,0 +1,106 @@ +<#-- $This file is distributed under the terms of the license in /doc/license.txt$ --> + +<#-- VIVO-specific default data property statement template. + + This template must be self-contained and not rely on other variables set for the individual page, because it + is also used to generate the property statement during a deletion. + --> +<#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" /> + +<@showStatement statement datatype /> + +<#macro showStatement statement datatype> + <#assign theValue = statement.value /> + + <#if theValue?contains("