Skip to content

Commit

Permalink
update parsing of Metadata_Last_Revision in dif-to-mmd
Browse files Browse the repository at this point in the history
  • Loading branch information
ferrighi committed Jan 17, 2024
1 parent 3ea49c6 commit 3842b0f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion xslt/dif-to-mmd.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,8 @@ Added more support for DIF 10 Øystein Godøy, METNO/FOU, 2023-04-24
<xsl:variable name="datetimestr">
<xsl:value-of select="dif:Metadata_Last_Revision" />
</xsl:variable>
<xsl:if test="string-length($datetimestr) = 8 and translate($datetimestr,'0123456789','') = ''">
<!--DIF 10 supports also a DateEnum vocabulary that is not datetime type-->
<xsl:if test="$datetimestr != 'Not provided' and $datetimestr !='unknown' and $datetimestr !='present' and $datetimestr !='unbounded' and $datetimestr !='future' and translate($datetimestr, '1234567890', '') != $datetimestr">
<xsl:element name="mmd:update">
<xsl:element name="mmd:datetime">
<xsl:value-of select="dif:Metadata_Last_Revision" />
Expand Down

0 comments on commit 3842b0f

Please sign in to comment.