Skip to content

Commit

Permalink
[gn]: seems that es expect resourceEdition to be a date
Browse files Browse the repository at this point in the history
  • Loading branch information
cmangeat committed Mar 3, 2023
1 parent 8278c27 commit 2d99800
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -341,8 +341,10 @@
}</resourceIdentifier>
</xsl:for-each>

<xsl:for-each select="gmd:edition/*">
<xsl:for-each select="gmd:editionDate/*">
<xsl:if test="current() castable as xs:date or current() castable as xs:dateTime and string-length(substring-before(., '-'))=4">
<xsl:copy-of select="gn-fn-index:add-field('resourceEdition', .)"/>
</xsl:if>
</xsl:for-each>
</xsl:for-each>

Expand Down

0 comments on commit 2d99800

Please sign in to comment.