NIHVIVO-1665 Fix query for core:dateTimeInterval to allow for incomplete data
This commit is contained in:
parent
31cb81dec6
commit
2fbc6c22ca
3 changed files with 21 additions and 12 deletions
|
@ -4,5 +4,9 @@
|
|||
|
||||
<#import "lib-datetime.ftl" as dt>
|
||||
|
||||
${dt.dateTimeIntervalLong("${statement.dateTimeStart!}", "${statement.precisionStart!}",
|
||||
"${statement.dateTimeEnd!}", "${statement.precisionEnd!}")}
|
||||
<#if ! statement.valueStart?? && ! statement.valueEnd??>
|
||||
<a href="${profileUrl(statement.dateTimeInterval)}">${statement.intervalName}</a> (incomplete date/time interval data)
|
||||
<#else>
|
||||
${dt.dateTimeIntervalLong("${statement.dateTimeStart!}", "${statement.precisionStart!}",
|
||||
"${statement.dateTimeEnd!}", "${statement.precisionEnd!}")}
|
||||
</#if>
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
<#-- No core:dateTime data property assigned. Display a link to the core:DateTimeValue object -->
|
||||
<#if ! statement.dateTime??>
|
||||
<a href="${profileUrl(statement.dateTimeValue)}">${localName(statement.dateTimeValue)}</a> (incomplete data)
|
||||
<a href="${profileUrl(statement.dateTimeValue)}">${dateTimeValueName}</a> (incomplete date/time data)
|
||||
<#else>
|
||||
${dt.formatXsdDateTimeLong(statement.dateTime, statement.precision!)}
|
||||
</#if>
|
Loading…
Add table
Add a link
Reference in a new issue