Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 21 additions & 10 deletions xslt/software/xslt-software-OpenAire.xslt
Original file line number Diff line number Diff line change
Expand Up @@ -62,16 +62,21 @@ Content generated by zbMATH Open, such as reviews, classifications, software, or
<dc:language>eng</dc:language>
<xsl:apply-templates select="root/standard_articles/source"/>
<xsl:apply-templates select="root/standard_articles/title"/>
<datacite:date dateType="Issued">
<xsl:choose>
<xsl:when test="root/standard_articles/year[normalize-space(.) != '' and . != 'None']">
<xsl:value-of select="root/standard_articles/year[not(. > ../../standard_articles/year)]"/>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="root/references_year_alt[1]"/>
</xsl:otherwise>
</xsl:choose>
</datacite:date>
<datacite:date dateType="Issued">
<xsl:choose>
<xsl:when test="root/standard_articles/year[normalize-space(.) != '' and . != 'None']">
<xsl:value-of select="root/standard_articles/year[not(. > ../../standard_articles/year)]"/>
</xsl:when>
<xsl:when test="root/references_year_alt[1] and not(starts-with(root/references_year_alt[1], '0'))">
<xsl:apply-templates select="root/references_year_alt[1]"/>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="root/source_year"/>
</xsl:otherwise>
</xsl:choose>
</datacite:date>



</resource>

Expand Down Expand Up @@ -185,5 +190,11 @@ Content generated by zbMATH Open, such as reviews, classifications, software, or
</xsl:if>
</xsl:template>

<xsl:template match="source_year">
<xsl:if test="normalize-space(.) != '' and . != 'None'">
<xsl:value-of select="."/>
</xsl:if>
</xsl:template>


</xsl:stylesheet>
Loading