Skip to content

Commit

Permalink
Fix for 91861
Browse files Browse the repository at this point in the history
  • Loading branch information
fred-atherden committed Oct 23, 2023
1 parent 7d1d4fb commit f84e9a3
Show file tree
Hide file tree
Showing 4 changed files with 816 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -557,6 +557,10 @@ The authors of this preprint have included tracked changes in the file they subm

This xsl fixes a mistake from bioRxiv which assigns an affiliation to the on behalf of group at the end of the author list instead of the author before that.

### [/src/2023.09.01.555873/fix-author-emails.xsl](/src/2023.09.01.555873/fix-author-emails.xsl)

This xsl is to ensure that the correct email is attributed to the correct author. bioRxiv capture author emails addresses in a `<corresp>` inside the author notes. They do this becuase they intend to show the content as a string, instead of displaying the emails under each author it relates to. We have asked them to change this capture (capturing the email under the respecitve author contrib, as done in this xsl).

# Modify bioRxiv XML in preparation for Encoda

Prerequisites:
Expand Down
22 changes: 22 additions & 0 deletions src/2023.09.01.555873/fix-author-emails.xsl
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xlink="http://www.w3.org/1999/xlink"
exclude-result-prefixes="xs"
version="3.0">

<xsl:output method="xml" encoding="UTF-8"/>

<xsl:template match="*|@*|text()">
<xsl:copy>
<xsl:apply-templates select="*|@*|text()"/>
</xsl:copy>
</xsl:template>

<xsl:template match="article[//article-meta/article-version='1.1']//article-meta//contrib[@contrib-type='author' and ./name/surname='Tobin']">
<xsl:copy>
<xsl:apply-templates select="@*[name()!='corresp']|*[not(@ref-type='corresp')]"/>
</xsl:copy>
</xsl:template>

</xsl:stylesheet>
Loading

0 comments on commit f84e9a3

Please sign in to comment.