Skip to content

Commit

Permalink
Merge pull request #356 from alw-bsz/doi355
Browse files Browse the repository at this point in the history
#355 DOI registration: fix for licenses bug
  • Loading branch information
j3nsch authored Jan 14, 2025
2 parents 2e157f0 + 40bafbf commit ab70fdc
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions library/Opus/Doi/datacite.xslt
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,11 @@
</xsl:element>
</xsl:if>

<xsl:apply-templates select="Licence"/>
<xsl:if test="Licence">
<xsl:element name="rightsList">
<xsl:apply-templates select="Licence"/>
</xsl:element>
</xsl:if>

<xsl:if test="TitleAbstract or Series">
<xsl:element name="descriptions">
Expand Down Expand Up @@ -365,15 +369,15 @@
</xsl:element>
</xsl:template>

<xsl:template match="PersonEditor" mode="creator">
<xsl:template match="PersonEditor" mode="creator">
<xsl:element name="creator">
<xsl:element name="creatorName">
<xsl:value-of select="@LastName"/>
<xsl:if test="@LastName and @FirstName">
<xsl:text>, </xsl:text>
</xsl:if>
<xsl:value-of select="@FirstName"/>
<xsl:text> (Ed.)</xsl:text>
<xsl:text> (Ed.)</xsl:text>
</xsl:element>
<xsl:if test="@FirstName">
<xsl:element name="givenName">
Expand Down Expand Up @@ -486,13 +490,11 @@
</xsl:template>

<xsl:template match="Licence">
<xsl:element name="rightsList">
<xsl:element name="rights">
<xsl:attribute name="rightsURI">
<xsl:value-of select="@LinkLicence"/>
</xsl:attribute>
<xsl:value-of select="@NameLong"/>
</xsl:element>
<xsl:element name="rights">
<xsl:attribute name="rightsURI">
<xsl:value-of select="@LinkLicence"/>
</xsl:attribute>
<xsl:value-of select="@NameLong"/>
</xsl:element>
</xsl:template>

Expand Down

0 comments on commit ab70fdc

Please sign in to comment.