Skip to content

Commit

Permalink
extending the templates of xslt
Browse files Browse the repository at this point in the history
  • Loading branch information
Shirazos7 committed Nov 8, 2024
1 parent 9ac41d9 commit 775aa99
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions xslt/software/xslt-software-OpenAire.xslt
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,40 @@ Content generated by zbMATH Open, such as reviews, classifications, software, or
</xsl:if>
</xsl:template>

<xsl:template match="description">
<xsl:if test="normalize-space(.) != '' and . != 'None'">
<dc:description xml:lang="en" descriptionType="Abstract">
<xsl:value-of select="."/>
</dc:description>
</xsl:if>
</xsl:template>

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

<xsl:template match="keywords">
<xsl:if test="normalize-space(.) != '' and . != 'None'">
<!-- Transformation of keywords -->
<datacite:subject subjectScheme="keyword">
<xsl:value-of select="."/>
</datacite:subject>
</xsl:if>
</xsl:template>


<xsl:template match="homepage">
<xsl:if test="normalize-space(.) != '' and . != 'None'">
<datacite:relatedIdentifier relatedIdentifierType="URL" relationType="IsSourceOf">
<xsl:value-of select="."/>
</datacite:relatedIdentifier>
</xsl:if>
</xsl:template>




Expand Down

0 comments on commit 775aa99

Please sign in to comment.