Revision 58843
Added by Alessia Bardi almost 4 years ago
modules/dnet-openaireplus-profiles/trunk/src/main/resources/eu/dnetlib/test/profiles/TransformationRuleDSResources/TransformationRuleDSResourceType/datacite_rules.xml | ||
---|---|---|
106 | 106 |
<xsl:value-of select="$varCobjCategory"/> |
107 | 107 |
</dr:CobjCategory> |
108 | 108 |
|
109 |
<xsl:variable name='issueDate' select="TransformationFunction:convertString($tf, normalize-space(//*[local-name()='date'][@dateType='Issued']), 'DateISO8601')"/> |
|
110 |
|
|
109 | 111 |
<oaf:dateAccepted> |
110 |
<xsl:value-of select="TransformationFunction:convertString($tf, normalize-space(//*[local-name()='publicationYear']), 'DateISO8601')"/> |
|
112 |
<xsl:choose> |
|
113 |
<xsl:when test="string-length($issueDate) > 0"> |
|
114 |
<xsl:value-of select="$issueDate"/> |
|
115 |
</xsl:when> |
|
116 |
<xsl:otherwise> |
|
117 |
<xsl:value-of select="TransformationFunction:convertString($tf, normalize-space(//*[local-name()='publicationYear']), 'DateISO8601')"/> |
|
118 |
</xsl:otherwise> |
|
119 |
</xsl:choose> |
|
111 | 120 |
</oaf:dateAccepted> |
112 | 121 |
|
113 | 122 |
|
Also available in: Unified diff
#5672: fixed oaf:dateofacceptance for Datacite