Skip to content

Commit

Permalink
#355 DOI registration: fix for licenses bug
Browse files Browse the repository at this point in the history
  • Loading branch information
alw-bsz committed Dec 19, 2024
1 parent 2e157f0 commit 40bafbf
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 40bafbf

Please sign in to comment.