- composer updates

- embargo date optional in oai datacite and dc - cmpare unix timestamps
This commit is contained in:
Arno Kaimbacher 2020-06-08 16:04:32 +02:00
parent c0e381ba3a
commit a52d029ac8
4 changed files with 50 additions and 33 deletions

View file

@ -124,7 +124,7 @@
<xsl:template name="RdrDate2" mode="oai_datacite"
xmlns="http://datacite.org/schema/kernel-4">
<xsl:if test="EmbargoDate">
<xsl:if test="EmbargoDate and ($unixTimestamp &lt; EmbargoDate/@UnixTimestamp)">
<date>
<xsl:attribute name="dateType">Available</xsl:attribute>
<xsl:variable name="embargoDate" select="concat(