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
29 changes: 19 additions & 10 deletions xslt/software/xslt-software-datacite.xslt
Original file line number Diff line number Diff line change
Expand Up @@ -91,23 +91,23 @@
<creator>
<creatorName nameType="Personal">
<xsl:choose>
<xsl:when test="normalize-space(.) = '' or . = 'None' or . = 'none'">:unav</xsl:when>
<xsl:when test="normalize-space(.) = '' or . = 'None' or . = 'none' or contains(., 'zbMATH Open Web Interface contents unavailable due to conflicting licenses')">:unav</xsl:when>
<xsl:otherwise>
<xsl:value-of select="."/>
</xsl:otherwise>
</xsl:choose>
</creatorName>
<givenName>
<xsl:choose>
<xsl:when test="normalize-space(.) = '' or . = 'None' or . = 'none'">:unav</xsl:when>
<xsl:when test="normalize-space(.) = '' or . = 'None' or . = 'none' or contains(., 'zbMATH Open Web Interface contents unavailable due to conflicting licenses')">:unav</xsl:when>
<xsl:otherwise>
<xsl:value-of select="substring-after(., ', ')"/>
</xsl:otherwise>
</xsl:choose>
</givenName>
<familyName>
<xsl:choose>
<xsl:when test="normalize-space(.) = '' or . = 'None' or . = 'none'">:unav</xsl:when>
<xsl:when test="normalize-space(.) = '' or . = 'None' or . = 'none' or contains(., 'zbMATH Open Web Interface contents unavailable due to conflicting licenses')">:unav</xsl:when>
<xsl:otherwise>
<xsl:value-of select="substring-before(., ', ')"/>
</xsl:otherwise>
Expand All @@ -119,7 +119,7 @@
<xsl:template match="name">
<title>
<xsl:choose>
<xsl:when test="normalize-space(.) = '' or . = 'None' or . = 'none'">:unav</xsl:when>
<xsl:when test="normalize-space(.) = '' or . = 'None' or . = 'none' or contains(., 'zbMATH Open Web Interface contents unavailable due to conflicting licenses')">:unav</xsl:when>
<xsl:otherwise>
<xsl:value-of select="."/>
</xsl:otherwise>
Expand All @@ -129,12 +129,21 @@


<xsl:template match="description">
<description xml:lang="en" descriptionType="Abstract">:unav</description>
<xsl:choose>
<xsl:when test="normalize-space(.) = '' or . = 'None' or . = 'none' or contains(., 'zbMATH Open Web Interface contents unavailable due to conflicting licenses')">
<description xml:lang="en" descriptionType="Abstract">:unav</description>
</xsl:when>
<xsl:otherwise>
<description xml:lang="en" descriptionType="Abstract">
<xsl:value-of select="."/>
</description>
</xsl:otherwise>
</xsl:choose>
</xsl:template>


<xsl:template match="operating_systems">
<xsl:if test="normalize-space(.) != '' and . != 'None'and . != 'none'">
<xsl:if test="normalize-space(.) != '' and . != 'None' and . != 'none' and not(contains(., 'zbMATH Open Web Interface contents unavailable due to conflicting licenses'))">
<description xml:lang="en" descriptionType="TechnicalInfo">
<xsl:text>operating systems: </xsl:text>
<xsl:value-of select="."/>
Expand All @@ -143,7 +152,7 @@
</xsl:template>

<xsl:template match="programming_languages">
<xsl:if test="normalize-space(.) != '' and . != 'None'and . != 'none'">
<xsl:if test="normalize-space(.) != '' and . != 'None'and . != 'none' and not(contains(., 'zbMATH Open Web Interface contents unavailable due to conflicting licenses'))">
<description xml:lang="en" descriptionType="TechnicalInfo">
<xsl:text>programming languages : </xsl:text>
<xsl:value-of select="."/>
Expand All @@ -166,23 +175,23 @@
</xsl:template>

<xsl:template match="classification">
<xsl:if test="normalize-space(.) != '' and . != 'None' and . != 'none'">
<xsl:if test="normalize-space(.) != '' and . != 'None' and . != 'none' and not(contains(., 'zbMATH Open Web Interface contents unavailable due to conflicting licenses'))">
<subject subjectScheme="msc2020" >
<xsl:value-of select="."/>
</subject>
</xsl:if>
</xsl:template>

<xsl:template match="keywords">
<xsl:if test="normalize-space(.) != '' and . != 'None'and . != 'none'">
<xsl:if test="normalize-space(.) != '' and . != 'None'and . != 'none' and not(contains(., 'zbMATH Open Web Interface contents unavailable due to conflicting licenses'))">
<subject subjectScheme="keyword">
<xsl:value-of select="."/>
</subject>
</xsl:if>
</xsl:template>

<xsl:template match="license_terms">
<xsl:if test="normalize-space(.) != '' and . != 'None'and . != 'none'">
<xsl:if test="normalize-space(.) != '' and . != 'None' and . != 'none' and not(contains(., 'zbMATH Open Web Interface contents unavailable due to conflicting licenses'))">
<rights>
<xsl:value-of select="."/>
</rights>
Expand Down
Loading