Skip to content

Commit

Permalink
Fix for 90333v2
Browse files Browse the repository at this point in the history
  • Loading branch information
fred-atherden committed Nov 3, 2023
1 parent a85827a commit 9d385ac
Show file tree
Hide file tree
Showing 4 changed files with 914 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -636,6 +636,10 @@ This xsl fixes a couple of references which are missing key information and as a

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).

### [/src/2023.07.30.551185/fix-ref.xsl](/src/2023.07.30.551185/fix-ref.xsl)

This xsl fixes a reference which is missing key information and as a result rendering poorly on EPP.

# Modify bioRxiv XML in preparation for Encoda

Prerequisites:
Expand Down
20 changes: 20 additions & 0 deletions src/2023.07.30.551185/fix-ref.xsl
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?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.3']//ref[@id='c1']">
<ref id="c1"><mixed-citation publication-type="journal"><string-name><surname>Abad</surname> <given-names>C</given-names></string-name>, <string-name><surname>Cook</surname> <given-names>MM</given-names></string-name>, <string-name><surname>Cao</surname> <given-names>L</given-names></string-name>, <string-name><surname>Jones</surname> <given-names>JR</given-names></string-name>, <string-name><surname>Rao</surname> <given-names>NR</given-names></string-name>, <string-name><surname>Dukes-Rimsky</surname> <given-names>L</given-names></string-name>, <string-name><surname>Pauly</surname> <given-names>R</given-names></string-name>, <string-name><surname>Skinner</surname> <given-names>C</given-names></string-name>, <string-name><surname>Wang</surname> <given-names>Y</given-names></string-name>, <string-name><surname>Luo</surname> <given-names>F</given-names></string-name> <string-name><surname>et al</surname></string-name> (<year>2018</year>) <article-title>A Rare De Novo RAI1 Gene Mutation Affecting BDNF-Enhancer-Driven Transcription Activity Associated with Autism and Atypical Smith-Magenis Syndrome Presentation</article-title>. <source>Biology (Basel</source><italic>)</italic> <elocation-id>7</elocation-id></mixed-citation></ref>
</xsl:template>

</xsl:stylesheet>
Loading

0 comments on commit 9d385ac

Please sign in to comment.