NIHVIVO-1665 Fix query for core:dateTimeInterval to allow for incomplete data

This commit is contained in:
rjy7 2011-01-18 02:16:14 +00:00
parent 31cb81dec6
commit 2fbc6c22ca
3 changed files with 21 additions and 12 deletions

View file

@ -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>

View file

@ -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>