Skip to content

Commit

Permalink
Merge pull request #174 from PeerJ/173-dont-add-verision-to-database-doi
Browse files Browse the repository at this point in the history
don't add version on to resource Url
  • Loading branch information
Michael Stoner authored Dec 23, 2019
2 parents b12ed4d + edbbe87 commit eb3876c
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions src/data/xsl/jats-to-unixref-posted-content-database.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
<xsl:param name="depositorName"/>
<xsl:param name="depositorEmail"/>
<xsl:param name="version"/>
<xsl:variable name="itemVersion" select="/article/front/article-meta/custom-meta-group/custom-meta[meta-name='version']/meta-value"/>
<xsl:param name="target"/>
<xsl:param name="references"/>

Expand Down Expand Up @@ -266,15 +265,8 @@
</rel:program>
<doi_data>
<xsl:choose>
<xsl:when test="$version and $itemVersion">
<doi><xsl:value-of select="object-id[@pub-id-type='doi']"/></doi>
<resource><xsl:value-of select="concat($url, 'v', $itemVersion, '/', @id)"/></resource>
</xsl:when>
<xsl:otherwise>
<doi><xsl:value-of select="concat($doi, '/', @id)"/></doi>
<resource><xsl:value-of select="concat($url, '/', @id)"/></resource>
</xsl:otherwise>
</xsl:choose>
<doi><xsl:value-of select="concat($doi, '/', @id)"/></doi>
<resource><xsl:value-of select="concat($url, '/', @id)"/></resource>
</doi_data>
</dataset>
</database>
Expand Down

0 comments on commit eb3876c

Please sign in to comment.