Skip to content

Commit

Permalink
[gn]: avoid es to expect resourceEdition to be a date
Browse files Browse the repository at this point in the history
  • Loading branch information
cmangeat committed Nov 20, 2023
1 parent e364da5 commit ad9bc70
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,12 @@
<xsl:for-each select="gmd:edition/*">
<xsl:copy-of select="gn-fn-index:add-field('resourceEdition', .)"/>
</xsl:for-each>

<xsl:for-each select="gmd:editionDate/*">
<xsl:if test="current() castable as xs:date or current() castable as xs:dateTime">
<xsl:copy-of select="gn-fn-index:add-field('resourceEditionDate', .)"/>
</xsl:if>
</xsl:for-each>
</xsl:for-each>

<xsl:copy-of select="gn-fn-index:add-multilingual-field('resourceAbstract', gmd:abstract, $allLanguages)"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1994,6 +1994,11 @@
}
}
}
"resourceEdition": {
"type": "text"
},
"standardVersion": {
"type": "text"
}
}
}
Expand Down

0 comments on commit ad9bc70

Please sign in to comment.