Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add EcoEvoRxiv to list of known preprint server names #566

Merged
merged 2 commits into from
Sep 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/final-JATS-schematron.sch
Original file line number Diff line number Diff line change
Expand Up @@ -7739,7 +7739,7 @@
<rule context="element-citation[@publication-type='preprint']/source" id="preprint-title-tests">
<let name="lc" value="lower-case(.)"/>

<assert see="https://elifeproduction.slab.com/posts/preprint-references-okxjjp9i#not-rxiv-test" test="matches($lc,'biorxiv|arxiv|chemrxiv|medrxiv|osf preprints|peerj preprints|psyarxiv|paleorxiv|preprints|research square|zenodo')" role="warning" id="not-rxiv-test">[not-rxiv-test] ref '<value-of select="ancestor::ref/@id"/>' is tagged as a preprint, but has a source <value-of select="."/>, which doesn't look like a preprint. Is it correct?</assert>
<assert see="https://elifeproduction.slab.com/posts/preprint-references-okxjjp9i#not-rxiv-test" test="matches($lc,'biorxiv|arxiv|chemrxiv|medrxiv|osf preprints|peerj preprints|psyarxiv|paleorxiv|preprints|research square|zenodo|ecoevorxiv|africarxiv')" role="warning" id="not-rxiv-test">[not-rxiv-test] ref '<value-of select="ancestor::ref/@id"/>' is tagged as a preprint, but has a source <value-of select="."/>, which doesn't look like a preprint. Is it correct?</assert>

<report see="https://elifeproduction.slab.com/posts/preprint-references-okxjjp9i#biorxiv-test" test="matches($lc,'biorxiv') and not(. = 'bioRxiv')" role="error" id="biorxiv-test">[biorxiv-test] ref '<value-of select="ancestor::ref/@id"/>' has a source <value-of select="."/>, which is not the correct proprietary capitalisation - 'bioRxiv'.</report>

Expand Down Expand Up @@ -7767,6 +7767,8 @@
<report see="https://elifeproduction.slab.com/posts/preprint-references-okxjjp9i#preprint-handbook-presence" test="contains(.,'handbook')" role="error" id="preprint-handbook-presence">[preprint-handbook-presence] Preprint ref '<value-of select="ancestor::ref/@id"/>' has a source '<value-of select="."/>'. Should it be captured as a book type reference instead?</report>

<report test="matches($lc,'africarxiv') and not(. = 'AfricArXiv')" role="error" id="africarxiv-test">[africarxiv-test] ref '<value-of select="ancestor::ref/@id"/>' has a source <value-of select="."/>, which is not the correct proprietary capitalisation - 'AfricArXiv'.</report>

<report test="matches($lc,'ecoevorxiv') and not(. = 'EcoEvoRxiv')" role="error" id="ecoevorxiv-test">[ecoevorxiv-test] ref '<value-of select="ancestor::ref/@id"/>' has a source <value-of select="."/>, which is not the correct proprietary capitalisation - 'EcoEvoRxiv'.</report>
</rule>
</pattern>
<pattern id="website-tests-pattern">
Expand Down
20 changes: 18 additions & 2 deletions src/final-JATS-schematron.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -38512,9 +38512,9 @@

<!--ASSERT warning-->
<xsl:choose>
<xsl:when test="matches($lc,'biorxiv|arxiv|chemrxiv|medrxiv|osf preprints|peerj preprints|psyarxiv|paleorxiv|preprints|research square|zenodo')"/>
<xsl:when test="matches($lc,'biorxiv|arxiv|chemrxiv|medrxiv|osf preprints|peerj preprints|psyarxiv|paleorxiv|preprints|research square|zenodo|ecoevorxiv|africarxiv')"/>
<xsl:otherwise>
<svrl:failed-assert xmlns:svrl="http://purl.oclc.org/dsdl/svrl" test="matches($lc,'biorxiv|arxiv|chemrxiv|medrxiv|osf preprints|peerj preprints|psyarxiv|paleorxiv|preprints|research square|zenodo')">
<svrl:failed-assert xmlns:svrl="http://purl.oclc.org/dsdl/svrl" test="matches($lc,'biorxiv|arxiv|chemrxiv|medrxiv|osf preprints|peerj preprints|psyarxiv|paleorxiv|preprints|research square|zenodo|ecoevorxiv|africarxiv')">
<xsl:attribute name="id">not-rxiv-test</xsl:attribute>
<xsl:attribute name="see">https://elifeproduction.slab.com/posts/preprint-references-okxjjp9i#not-rxiv-test</xsl:attribute>
<xsl:attribute name="role">warning</xsl:attribute>
Expand Down Expand Up @@ -38733,6 +38733,22 @@
<xsl:text/>, which is not the correct proprietary capitalisation - 'AfricArXiv'.</svrl:text>
</svrl:successful-report>
</xsl:if>

<!--REPORT error-->
<xsl:if test="matches($lc,'ecoevorxiv') and not(. = 'EcoEvoRxiv')">
<svrl:successful-report xmlns:svrl="http://purl.oclc.org/dsdl/svrl" test="matches($lc,'ecoevorxiv') and not(. = 'EcoEvoRxiv')">
<xsl:attribute name="id">ecoevorxiv-test</xsl:attribute>
<xsl:attribute name="role">error</xsl:attribute>
<xsl:attribute name="location">
<xsl:apply-templates select="." mode="schematron-select-full-path"/>
</xsl:attribute>
<svrl:text>[ecoevorxiv-test] ref '<xsl:text/>
<xsl:value-of select="ancestor::ref/@id"/>
<xsl:text/>' has a source <xsl:text/>
<xsl:value-of select="."/>
<xsl:text/>, which is not the correct proprietary capitalisation - 'EcoEvoRxiv'.</svrl:text>
</svrl:successful-report>
</xsl:if>
<xsl:apply-templates select="*" mode="M499"/>
</xsl:template>
<xsl:template match="text()" priority="-1" mode="M499"/>
Expand Down
4 changes: 3 additions & 1 deletion src/final-package-JATS-schematron.sch
Original file line number Diff line number Diff line change
Expand Up @@ -8165,7 +8165,7 @@
<rule context="element-citation[@publication-type='preprint']/source" id="preprint-title-tests">
<let name="lc" value="lower-case(.)"/>

<assert see="https://elifeproduction.slab.com/posts/preprint-references-okxjjp9i#not-rxiv-test" test="matches($lc,'biorxiv|arxiv|chemrxiv|medrxiv|osf preprints|peerj preprints|psyarxiv|paleorxiv|preprints|research square|zenodo')" role="warning" id="not-rxiv-test">ref '<value-of select="ancestor::ref/@id"/>' is tagged as a preprint, but has a source <value-of select="."/>, which doesn't look like a preprint. Is it correct?</assert>
<assert see="https://elifeproduction.slab.com/posts/preprint-references-okxjjp9i#not-rxiv-test" test="matches($lc,'biorxiv|arxiv|chemrxiv|medrxiv|osf preprints|peerj preprints|psyarxiv|paleorxiv|preprints|research square|zenodo|ecoevorxiv|africarxiv')" role="warning" id="not-rxiv-test">ref '<value-of select="ancestor::ref/@id"/>' is tagged as a preprint, but has a source <value-of select="."/>, which doesn't look like a preprint. Is it correct?</assert>

<report see="https://elifeproduction.slab.com/posts/preprint-references-okxjjp9i#biorxiv-test" test="matches($lc,'biorxiv') and not(. = 'bioRxiv')" role="error" id="biorxiv-test">ref '<value-of select="ancestor::ref/@id"/>' has a source <value-of select="."/>, which is not the correct proprietary capitalisation - 'bioRxiv'.</report>

Expand Down Expand Up @@ -8194,6 +8194,8 @@
<report see="https://elifeproduction.slab.com/posts/preprint-references-okxjjp9i#preprint-handbook-presence" test="contains(.,'handbook')" role="error" id="preprint-handbook-presence">Preprint ref '<value-of select="ancestor::ref/@id"/>' has a source '<value-of select="."/>'. Should it be captured as a book type reference instead?</report>

<report test="matches($lc,'africarxiv') and not(. = 'AfricArXiv')" role="error" id="africarxiv-test">ref '<value-of select="ancestor::ref/@id"/>' has a source <value-of select="."/>, which is not the correct proprietary capitalisation - 'AfricArXiv'.</report>

<report test="matches($lc,'ecoevorxiv') and not(. = 'EcoEvoRxiv')" role="error" id="ecoevorxiv-test">ref '<value-of select="ancestor::ref/@id"/>' has a source <value-of select="."/>, which is not the correct proprietary capitalisation - 'EcoEvoRxiv'.</report>
</rule>
</pattern>
<pattern id="website-tests-pattern">
Expand Down
4 changes: 3 additions & 1 deletion src/pre-JATS-schematron.sch
Original file line number Diff line number Diff line change
Expand Up @@ -7677,7 +7677,7 @@
<rule context="element-citation[@publication-type='preprint']/source" id="preprint-title-tests">
<let name="lc" value="lower-case(.)"/>

<assert see="https://elifeproduction.slab.com/posts/preprint-references-okxjjp9i#not-rxiv-test" test="matches($lc,'biorxiv|arxiv|chemrxiv|medrxiv|osf preprints|peerj preprints|psyarxiv|paleorxiv|preprints|research square|zenodo')" role="warning" id="not-rxiv-test">[not-rxiv-test] ref '<value-of select="ancestor::ref/@id"/>' is tagged as a preprint, but has a source <value-of select="."/>, which doesn't look like a preprint. Is it correct?</assert>
<assert see="https://elifeproduction.slab.com/posts/preprint-references-okxjjp9i#not-rxiv-test" test="matches($lc,'biorxiv|arxiv|chemrxiv|medrxiv|osf preprints|peerj preprints|psyarxiv|paleorxiv|preprints|research square|zenodo|ecoevorxiv|africarxiv')" role="warning" id="not-rxiv-test">[not-rxiv-test] ref '<value-of select="ancestor::ref/@id"/>' is tagged as a preprint, but has a source <value-of select="."/>, which doesn't look like a preprint. Is it correct?</assert>

<report see="https://elifeproduction.slab.com/posts/preprint-references-okxjjp9i#biorxiv-test" test="matches($lc,'biorxiv') and not(. = 'bioRxiv')" role="error" id="biorxiv-test">[biorxiv-test] ref '<value-of select="ancestor::ref/@id"/>' has a source <value-of select="."/>, which is not the correct proprietary capitalisation - 'bioRxiv'.</report>

Expand Down Expand Up @@ -7705,6 +7705,8 @@
<report see="https://elifeproduction.slab.com/posts/preprint-references-okxjjp9i#preprint-handbook-presence" test="contains(.,'handbook')" role="error" id="preprint-handbook-presence">[preprint-handbook-presence] Preprint ref '<value-of select="ancestor::ref/@id"/>' has a source '<value-of select="."/>'. Should it be captured as a book type reference instead?</report>

<report test="matches($lc,'africarxiv') and not(. = 'AfricArXiv')" role="error" id="africarxiv-test">[africarxiv-test] ref '<value-of select="ancestor::ref/@id"/>' has a source <value-of select="."/>, which is not the correct proprietary capitalisation - 'AfricArXiv'.</report>

<report test="matches($lc,'ecoevorxiv') and not(. = 'EcoEvoRxiv')" role="error" id="ecoevorxiv-test">[ecoevorxiv-test] ref '<value-of select="ancestor::ref/@id"/>' has a source <value-of select="."/>, which is not the correct proprietary capitalisation - 'EcoEvoRxiv'.</report>
</rule>
</pattern>
<pattern id="website-tests-pattern">
Expand Down
20 changes: 18 additions & 2 deletions src/pre-JATS-schematron.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -38283,9 +38283,9 @@

<!--ASSERT warning-->
<xsl:choose>
<xsl:when test="matches($lc,'biorxiv|arxiv|chemrxiv|medrxiv|osf preprints|peerj preprints|psyarxiv|paleorxiv|preprints|research square|zenodo')"/>
<xsl:when test="matches($lc,'biorxiv|arxiv|chemrxiv|medrxiv|osf preprints|peerj preprints|psyarxiv|paleorxiv|preprints|research square|zenodo|ecoevorxiv|africarxiv')"/>
<xsl:otherwise>
<svrl:failed-assert xmlns:svrl="http://purl.oclc.org/dsdl/svrl" test="matches($lc,'biorxiv|arxiv|chemrxiv|medrxiv|osf preprints|peerj preprints|psyarxiv|paleorxiv|preprints|research square|zenodo')">
<svrl:failed-assert xmlns:svrl="http://purl.oclc.org/dsdl/svrl" test="matches($lc,'biorxiv|arxiv|chemrxiv|medrxiv|osf preprints|peerj preprints|psyarxiv|paleorxiv|preprints|research square|zenodo|ecoevorxiv|africarxiv')">
<xsl:attribute name="id">not-rxiv-test</xsl:attribute>
<xsl:attribute name="see">https://elifeproduction.slab.com/posts/preprint-references-okxjjp9i#not-rxiv-test</xsl:attribute>
<xsl:attribute name="role">warning</xsl:attribute>
Expand Down Expand Up @@ -38503,6 +38503,22 @@
<xsl:text/>, which is not the correct proprietary capitalisation - 'AfricArXiv'.</svrl:text>
</svrl:successful-report>
</xsl:if>

<!--REPORT error-->
<xsl:if test="matches($lc,'ecoevorxiv') and not(. = 'EcoEvoRxiv')">
<svrl:successful-report xmlns:svrl="http://purl.oclc.org/dsdl/svrl" test="matches($lc,'ecoevorxiv') and not(. = 'EcoEvoRxiv')">
<xsl:attribute name="id">ecoevorxiv-test</xsl:attribute>
<xsl:attribute name="role">error</xsl:attribute>
<xsl:attribute name="location">
<xsl:apply-templates select="." mode="schematron-select-full-path"/>
</xsl:attribute>
<svrl:text>[ecoevorxiv-test] ref '<xsl:text/>
<xsl:value-of select="ancestor::ref/@id"/>
<xsl:text/>' has a source <xsl:text/>
<xsl:value-of select="."/>
<xsl:text/>, which is not the correct proprietary capitalisation - 'EcoEvoRxiv'.</svrl:text>
</svrl:successful-report>
</xsl:if>
<xsl:apply-templates select="*" mode="M497"/>
</xsl:template>
<xsl:template match="text()" priority="-1" mode="M497"/>
Expand Down
Loading
Loading