Skip to content

Commit

Permalink
Ignore DOI in link field
Browse files Browse the repository at this point in the history
cf. #21
  • Loading branch information
physikerwelt committed Feb 22, 2024
1 parent 53a5f2f commit a2c5c76
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion test/data/articles/zb_preview.xml
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,6 @@
</zbmath:reference>
</zbmath:references>
<zbmath:links>
<zbmath:link>https://doi.org/10.4007/annals.2015.181.1.7</zbmath:link>
<zbmath:link>https://arxiv.org/abs/1311.4600</zbmath:link>
</zbmath:links>
<zbmath:rights>Content generated by zbMATH Open, such as reviews,
Expand Down
5 changes: 3 additions & 2 deletions xslt/articles/xslt-article-transformation.xslt
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,13 @@
</xsl:for-each>
</zbmath:references>
<zbmath:links>
<xsl:for-each select="root/result/links">
<xsl:for-each select="root/result/links[type != 'doi']">
<zbmath:link>
<xsl:choose>
<!-- Removed for backwards compatibility
<xsl:when test="type = 'doi'">
<xsl:value-of select="concat('https://doi.org/', identifier)"/>
</xsl:when>
</xsl:when>-->
<xsl:when test="type = 'arxiv'">
<xsl:value-of select="concat('https://arxiv.org/abs/', identifier)"/>
</xsl:when>
Expand Down

0 comments on commit a2c5c76

Please sign in to comment.