Allow getFormat function to accept qualified date precisions
This allows the date precision to be a fully qualified URL, like "http://vivoweb.org/ontology/core#yearPrecision", while still accepting "yearPrecision"
This commit is contained in:
parent
22658eec7b
commit
4905c10be0
1 changed files with 6 additions and 6 deletions
|
@ -159,15 +159,15 @@
|
|||
and the format type to determine how to display it. -->
|
||||
<#local format>
|
||||
<#if formatType == "long">
|
||||
<#if precision == "yearPrecision">yyyy
|
||||
<#elseif precision == "yearMonthPrecision">MMMM yyyy
|
||||
<#elseif precision == "yearMonthDayPrecision">MMMM d, yyyy
|
||||
<#if precision?ends_with("yearPrecision")>yyyy
|
||||
<#elseif precision?ends_with("yearMonthPrecision")>MMMM yyyy
|
||||
<#elseif precision?ends_with("yearMonthDayPrecision")>MMMM d, yyyy
|
||||
<#else>MMMM d, yyyy h:mm a
|
||||
</#if>
|
||||
<#else> <#-- formatType == "short" -->
|
||||
<#if precision == "yearPrecision">yyyy
|
||||
<#elseif precision == "yearMonthPrecision">M/yyyy
|
||||
<#elseif precision == "yearMonthDayPrecision">M/d/yyyy
|
||||
<#if precision?ends_with("yearPrecision")>yyyy
|
||||
<#elseif precision?ends_with("yearMonthPrecision")>M/yyyy
|
||||
<#elseif precision?ends_with("yearMonthDayPrecision")>M/d/yyyy
|
||||
<#else>M/d/yyyy h:mm a
|
||||
</#if>
|
||||
</#if>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue