[GeoNetwork-devel] Temporal extent queries

Hi

I tried both with GUI and CSW a temporal query indicating only the beign interval, the query in lucene is like:

+tempExtentBegin:{2005-01-01 TO *}

the problem is that is returning also the metadata with empty temporal extent values.

In schemas/iso19139/convert/functions.xsl seem the next template, that is use when indexing the metadata, sets the values for dates to current date if contain empty value in metadata field:

<xsl:template name=“fixNonIso”>
<xsl:param name=“value”/>

<xsl:variable name=“now” select=“date:date-time()”/>
xsl:choose
<xsl:when test=“$value=‘’ or lower-case($value)=‘unknown’ or lower-case($value)=‘current’ or lower-case($value)=‘now’”>
<xsl:variable name=“miy” select=“date:month-in-year($now)”/>
<xsl:variable name=“month”>
<xsl:call-template name=“fixSingle”>
<xsl:with-param name=“value” select=“$miy” />
</xsl:call-template>
</xsl:variable>
<xsl:variable name=“dim” select=“date:day-in-month($now)”/>
<xsl:variable name=“day”>
<xsl:call-template name=“fixSingle”>
<xsl:with-param name=“value” select=“$dim” />
</xsl:call-template>
</xsl:variable>
<xsl:value-of select=“concat(date:year($now),‘-’,$month,‘-’,$day,‘T23:59:59’)”/>
</xsl:when>
xsl:otherwise
<xsl:value-of select=“$value”/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>

Is there any reason for this? Seem to me a bug, but maybe I’m missing something?

Thanks and regards,
Jose García