Skip to content

Commit

Permalink
RP XSL - tweak COI handling
Browse files Browse the repository at this point in the history
  • Loading branch information
fred-atherden committed Feb 13, 2025
1 parent 189b38e commit 1b71112
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions src/preprint-changes.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -756,15 +756,22 @@
</xsl:choose>
<xsl:element name="p">
<xsl:choose>
<xsl:when test="./@notes-type='competing-interest-statement'">
<xsl:text>Competing interests: </xsl:text>
<xsl:choose>
<xsl:when test="count(p) = 1 and ./p[1]='The authors have declared no competing interest.'">
<xsl:text>No competing interests declared</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="./p/(*|text())"/>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:when test="./title">
<xsl:value-of select="./title"/>
<xsl:text>: </xsl:text>
<xsl:apply-templates select="./p/(*|text())"/>
</xsl:when>
<xsl:when test="./@notes-type='competing-interest-statement'">
<xsl:text>Competing interests: </xsl:text>
<xsl:apply-templates select="./p/(*|text())"/>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="./p/(*|text())"/>
</xsl:otherwise>
Expand Down

0 comments on commit 1b71112

Please sign in to comment.