Skip to content

Commit

Permalink
Merge pull request #567 from elifesciences/pr-567
Browse files Browse the repository at this point in the history
Update funders.xml to include grant doi status
  • Loading branch information
fred-atherden authored Sep 26, 2023
2 parents b164838 + 01adaaf commit fadb173
Show file tree
Hide file tree
Showing 41 changed files with 75,998 additions and 66,665 deletions.
52 changes: 26 additions & 26 deletions src/final-JATS-schematron.sch

Large diffs are not rendered by default.

26 changes: 26 additions & 0 deletions src/final-JATS-schematron.xsl

Large diffs are not rendered by default.

52 changes: 26 additions & 26 deletions src/final-package-JATS-schematron.sch

Large diffs are not rendered by default.

67,662 changes: 35,414 additions & 32,248 deletions src/funders.xml

Large diffs are not rendered by default.

52 changes: 26 additions & 26 deletions src/pre-JATS-schematron.sch

Large diffs are not rendered by default.

26 changes: 26 additions & 0 deletions src/pre-JATS-schematron.xsl

Large diffs are not rendered by default.

90 changes: 60 additions & 30 deletions src/schematron.sch

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -1283,7 +1283,7 @@
</xsl:function>
<pattern id="house-style">
<rule context="element-citation[(@publication-type='book') and chapter-title]" id="book-chapter-tests">
<assert test="person-group[@person-group-type='editor']" role="warning" id="book-chapter-test-1">ref '<value-of select="ancestor::ref/@id"/>' (<value-of select="e:citation-format1(.)"/>) is tagged as a book reference with a chapter title, but there are no editors. Is this correct, or are these details missing?</assert>
<assert see="https://elifeproduction.slab.com/posts/book-references-x4trb0n2#hm8cf-book-chapter-test-1" test="person-group[@person-group-type='editor']" role="warning" id="book-chapter-test-1">ref '<value-of select="ancestor::ref/@id"/>' (<value-of select="e:citation-format1(.)"/>) is tagged as a book reference with a chapter title, but there are no editors. Is this correct, or are these details missing?</assert>
</rule>
</pattern>
<pattern id="root-pattern">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1283,7 +1283,7 @@
</xsl:function>
<pattern id="house-style">
<rule context="element-citation[(@publication-type='book') and chapter-title]" id="book-chapter-tests">
<assert test="fpage and lpage" role="warning" id="book-chapter-test-2">ref '<value-of select="ancestor::ref/@id"/>' (<value-of select="e:citation-format1(.)"/>) is tagged as a book reference with a chapter title, but there is not a first page and last page. Is this correct, or are these details missing?</assert>
<assert see="https://elifeproduction.slab.com/posts/book-references-x4trb0n2#hwihq-book-chapter-test-2" test="fpage and lpage" role="warning" id="book-chapter-test-2">ref '<value-of select="ancestor::ref/@id"/>' (<value-of select="e:citation-format1(.)"/>) is tagged as a book reference with a chapter title, but there is not a first page and last page. Is this correct, or are these details missing?</assert>
</rule>
</pattern>
<pattern id="root-pattern">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1287,7 +1287,7 @@
<let name="year" value="number(replace(year[1],'[^\d]',''))"/>
<let name="publisher" value="lower-case(publisher-name[1])"/>
<let name="publishers" value="'../../../../../src/publishers.xml'"/>
<report test="some $x in document($publishers)/publishers/publisher satisfies ($x/@title/string()=$publisher)" role="warning" id="book-doi-test-1">
<report see="https://elifeproduction.slab.com/posts/book-references-x4trb0n2#h5h75-book-doi-test-1" test="some $x in document($publishers)/publishers/publisher satisfies ($x/@title/string()=$publisher)" role="warning" id="book-doi-test-1">
<value-of select="$cite"/> is a book ref without a doi, but its publisher (<value-of select="publisher-name[1]"/>) is known to register dois with some books/chapters. Should it have one?</report>
</rule>
</pattern>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1283,7 +1283,7 @@
</xsl:function>
<pattern id="element-citation-book-tests">
<rule context="element-citation[@publication-type='book']/chapter-title" id="elem-citation-book-chapter-title">
<assert test="count(../person-group[@person-group-type='editor']) le 1" role="error" id="err-elem-cit-book-28-1">If there is a &lt;chapter-title&gt; element there may be a maximum of one &lt;person-group person-group-type="editor"&gt;. Reference '<value-of select="ancestor::ref/@id"/>' does not meet this requirement.</assert>
<assert see="https://elifeproduction.slab.com/posts/book-references-x4trb0n2#hhtxz-err-elem-cit-book-28-1" test="count(../person-group[@person-group-type='editor']) le 1" role="error" id="err-elem-cit-book-28-1">If there is a &lt;chapter-title&gt; element there may be a maximum of one &lt;person-group person-group-type="editor"&gt;. Reference '<value-of select="ancestor::ref/@id"/>' does not meet this requirement.</assert>
</rule>
</pattern>
<pattern id="root-pattern">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1283,7 +1283,7 @@
</xsl:function>
<pattern id="element-citation-book-tests">
<rule context="element-citation[@publication-type='book']/chapter-title" id="elem-citation-book-chapter-title">
<assert test="count(*) = count(sub|sup|italic)" role="error" id="err-elem-cit-book-31">A &lt;chapter-title&gt; element in a reference may contain characters and &lt;italic&gt;, &lt;sub&gt;, and &lt;sup&gt;. No other elements are allowed. Reference '<value-of select="ancestor::ref/@id"/>' does not meet this requirement.</assert>
<assert see="https://elifeproduction.slab.com/posts/book-references-x4trb0n2#h2922-err-elem-cit-book-31" test="count(*) = count(sub|sup|italic)" role="error" id="err-elem-cit-book-31">A &lt;chapter-title&gt; element in a reference may contain characters and &lt;italic&gt;, &lt;sub&gt;, and &lt;sup&gt;. No other elements are allowed. Reference '<value-of select="ancestor::ref/@id"/>' does not meet this requirement.</assert>
</rule>
</pattern>
<pattern id="root-pattern">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1283,7 +1283,7 @@
</xsl:function>
<pattern id="element-citation-book-tests">
<rule context="element-citation[@publication-type='book']/chapter-title" id="elem-citation-book-chapter-title">
<assert test="count(../person-group[@person-group-type='author'])=1" role="error" id="final-err-elem-cit-book-22">If there is a &lt;chapter-title&gt; element there must be one and only one &lt;person-group person-group-type="author"&gt;. Reference '<value-of select="ancestor::ref/@id"/>' does not meet this requirement.</assert>
<assert see="https://elifeproduction.slab.com/posts/book-references-x4trb0n2#hzce0-final-err-elem-cit-book-22" test="count(../person-group[@person-group-type='author'])=1" role="error" id="final-err-elem-cit-book-22">If there is a &lt;chapter-title&gt; element there must be one and only one &lt;person-group person-group-type="author"&gt;. Reference '<value-of select="ancestor::ref/@id"/>' does not meet this requirement.</assert>
</rule>
</pattern>
<pattern id="root-pattern">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1283,7 +1283,7 @@
</xsl:function>
<pattern id="element-citation-book-tests">
<rule context="element-citation[@publication-type='book']/chapter-title" id="elem-citation-book-chapter-title">
<assert test="count(../person-group[@person-group-type='author'])=1" role="warning" id="pre-err-elem-cit-book-22">If there is a &lt;chapter-title&gt; element there must be one and only one &lt;person-group person-group-type="author"&gt;. Reference '<value-of select="ancestor::ref/@id"/>' does not meet this requirement. If this information is missing, please query the authors for it.</assert>
<assert see="https://elifeproduction.slab.com/posts/book-references-x4trb0n2#h7i77-pre-err-elem-cit-book-22" test="count(../person-group[@person-group-type='author'])=1" role="warning" id="pre-err-elem-cit-book-22">If there is a &lt;chapter-title&gt; element there must be one and only one &lt;person-group person-group-type="author"&gt;. Reference '<value-of select="ancestor::ref/@id"/>' does not meet this requirement. If this information is missing, please query the authors for it.</assert>
</rule>
</pattern>
<pattern id="root-pattern">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1283,7 +1283,7 @@
</xsl:function>
<pattern id="element-citation-book-tests">
<rule context="element-citation[@publication-type='book']/comment" id="elem-citation-book-comment">
<assert test="text() = 'In press'" role="error" id="err-elem-cit-book-13">Comment elements with content other than 'In press' are not allowed. Reference '<value-of select="ancestor::ref/@id"/>' has such a &lt;comment&gt; element.</assert>
<assert see="https://elifeproduction.slab.com/posts/book-references-x4trb0n2#h6tpw-err-elem-cit-book-13" test="text() = 'In press'" role="error" id="err-elem-cit-book-13">Comment elements with content other than 'In press' are not allowed. Reference '<value-of select="ancestor::ref/@id"/>' has such a &lt;comment&gt; element.</assert>
</rule>
</pattern>
<pattern id="root-pattern">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1283,7 +1283,7 @@
</xsl:function>
<pattern id="element-citation-book-tests">
<rule context="element-citation[@publication-type='book']/comment" id="elem-citation-book-comment">
<assert test="count(../fpage) eq 0" role="error" id="err-elem-cit-book-6-4">If &lt;comment&gt;In press&lt;/comment&gt; is present, &lt;fpage&gt; cannot be present. Reference '<value-of select="ancestor::ref/@id"/>' has one of those elements.</assert>
<assert see="https://elifeproduction.slab.com/posts/book-references-x4trb0n2#hh47s-err-elem-cit-book-6-4" test="count(../fpage) eq 0" role="error" id="err-elem-cit-book-6-4">If &lt;comment&gt;In press&lt;/comment&gt; is present, &lt;fpage&gt; cannot be present. Reference '<value-of select="ancestor::ref/@id"/>' has one of those elements.</assert>
</rule>
</pattern>
<pattern id="root-pattern">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1283,7 +1283,7 @@
</xsl:function>
<pattern id="element-citation-book-tests">
<rule context="element-citation[@publication-type='book']/edition" id="elem-citation-book-edition">
<assert test="count(*)=0" role="error" id="err-elem-cit-book-15">No elements are allowed inside &lt;edition&gt;. Reference '<value-of select="ancestor::ref/@id"/>' has child elements within the &lt;edition&gt; element.</assert>
<assert see="https://elifeproduction.slab.com/posts/book-references-x4trb0n2#hi14u-err-elem-cit-book-15" test="count(*)=0" role="error" id="err-elem-cit-book-15">No elements are allowed inside &lt;edition&gt;. Reference '<value-of select="ancestor::ref/@id"/>' has child elements within the &lt;edition&gt; element.</assert>
</rule>
</pattern>
<pattern id="root-pattern">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1283,7 +1283,7 @@
</xsl:function>
<pattern id="element-citation-book-tests">
<rule context="element-citation[@publication-type='book']/person-group" id="elem-citation-book-person-group">
<assert test="@person-group-type" role="error" id="err-elem-cit-book-2-1">Each &lt;person-group&gt; must have a @person-group-type attribute. Reference '<value-of select="ancestor::ref/@id"/>' has a &lt;person-group&gt; element with no @person-group-type attribute.</assert>
<assert see="https://elifeproduction.slab.com/posts/book-references-x4trb0n2#hcob2-err-elem-cit-book-2-1" test="@person-group-type" role="error" id="err-elem-cit-book-2-1">Each &lt;person-group&gt; must have a @person-group-type attribute. Reference '<value-of select="ancestor::ref/@id"/>' has a &lt;person-group&gt; element with no @person-group-type attribute.</assert>
</rule>
</pattern>
<pattern id="root-pattern">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1283,7 +1283,7 @@
</xsl:function>
<pattern id="element-citation-book-tests">
<rule context="element-citation[@publication-type='book']/pub-id" id="elem-citation-book-pub-id">
<assert test="@pub-id-type=('doi','pmid','isbn')" role="error" id="err-elem-cit-book-17">Each &lt;pub-id&gt;, if present in a book reference, must have a @pub-id-type of one of these values: doi, pmid, isbn. The pub-id-type attribute on &lt;pub-id&gt; in Reference '<value-of select="ancestor::ref/@id"/>' is <value-of select="@pub-id-type"/>.</assert>
<assert see="https://elifeproduction.slab.com/posts/book-references-x4trb0n2#h4qcy-err-elem-cit-book-17" test="@pub-id-type=('doi','pmid','isbn')" role="error" id="err-elem-cit-book-17">Each &lt;pub-id&gt;, if present in a book reference, must have a @pub-id-type of one of these values: doi, pmid, isbn. The pub-id-type attribute on &lt;pub-id&gt; in Reference '<value-of select="ancestor::ref/@id"/>' is <value-of select="@pub-id-type"/>.</assert>
</rule>
</pattern>
<pattern id="root-pattern">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1283,7 +1283,7 @@
</xsl:function>
<pattern id="element-citation-book-tests">
<rule context="element-citation[@publication-type='book']/publisher-name" id="elem-citation-book-publisher-name">
<assert test="count(*)=0" role="error" id="err-elem-cit-book-13-2">No elements are allowed inside &lt;publisher-name&gt;. Reference '<value-of select="ancestor::ref/@id"/>' has child elements within the &lt;publisher-name&gt; element.</assert>
<assert see="https://elifeproduction.slab.com/posts/book-references-x4trb0n2#hvmqu-err-elem-cit-book-13-2" test="count(*)=0" role="error" id="err-elem-cit-book-13-2">No elements are allowed inside &lt;publisher-name&gt;. Reference '<value-of select="ancestor::ref/@id"/>' has child elements within the &lt;publisher-name&gt; element.</assert>
</rule>
</pattern>
<pattern id="root-pattern">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1284,7 +1284,7 @@
<pattern id="element-citation-book-tests">
<rule context="element-citation[@publication-type='book']" id="elem-citation-book">
<let name="publisher-locations" value="'../../../../../src/publisher-locations.xml'"/>
<assert test="count(source)=1 and count(source/*)=count(source/(italic | sub | sup))" role="error" id="err-elem-cit-book-10-2-2">A &lt;source&gt; element within a &lt;element-citation&gt; of type 'book' may only contain the child elements &lt;italic&gt;, &lt;sub&gt;, and &lt;sup&gt;. No other elements are allowed. Reference '<value-of select="ancestor::ref/@id"/>' has child elements that are not allowed.</assert>
<assert see="https://elifeproduction.slab.com/posts/book-references-x4trb0n2#hp3kx-err-elem-cit-book-10-2-2" test="count(source)=1 and count(source/*)=count(source/(italic | sub | sup))" role="error" id="err-elem-cit-book-10-2-2">A &lt;source&gt; element within a &lt;element-citation&gt; of type 'book' may only contain the child elements &lt;italic&gt;, &lt;sub&gt;, and &lt;sup&gt;. No other elements are allowed. Reference '<value-of select="ancestor::ref/@id"/>' has child elements that are not allowed.</assert>
</rule>
</pattern>
<pattern id="root-pattern">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1284,7 +1284,7 @@
<pattern id="element-citation-book-tests">
<rule context="element-citation[@publication-type='book']" id="elem-citation-book">
<let name="publisher-locations" value="'../../../../../src/publisher-locations.xml'"/>
<report test="(lpage or fpage) and not(chapter-title)" role="warning" id="err-elem-cit-book-16">Book reference '<value-of select="ancestor::ref/@id"/>' has first and/or last pages, but no chapter title. Is this correct?</report>
<report see="https://elifeproduction.slab.com/posts/book-references-x4trb0n2#ht2sp-err-elem-cit-book-16" test="(lpage or fpage) and not(chapter-title)" role="warning" id="err-elem-cit-book-16">Book reference '<value-of select="ancestor::ref/@id"/>' has first and/or last pages, but no chapter title. Is this correct?</report>
</rule>
</pattern>
<pattern id="root-pattern">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1284,7 +1284,7 @@
<pattern id="element-citation-book-tests">
<rule context="element-citation[@publication-type='book']" id="elem-citation-book">
<let name="publisher-locations" value="'../../../../../src/publisher-locations.xml'"/>
<assert test="(count(person-group[@person-group-type='author']) + count(person-group[@person-group-type='editor'])) = count(person-group)" role="error" id="err-elem-cit-book-2-2">The only values allowed for @person-group-type in book references are "author" and "editor". Reference '<value-of select="ancestor::ref/@id"/>' has a &lt;person-group&gt; type of '<value-of select="person-group/@person-group-type"/>'.</assert>
<assert see="https://elifeproduction.slab.com/posts/book-references-x4trb0n2#hc12m-err-elem-cit-book-2-2" test="(count(person-group[@person-group-type='author']) + count(person-group[@person-group-type='editor'])) = count(person-group)" role="error" id="err-elem-cit-book-2-2">The only values allowed for @person-group-type in book references are "author" and "editor". Reference '<value-of select="ancestor::ref/@id"/>' has a &lt;person-group&gt; type of '<value-of select="person-group/@person-group-type"/>'.</assert>
</rule>
</pattern>
<pattern id="root-pattern">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1284,7 +1284,7 @@
<pattern id="element-citation-book-tests">
<rule context="element-citation[@publication-type='book']" id="elem-citation-book">
<let name="publisher-locations" value="'../../../../../src/publisher-locations.xml'"/>
<report test="lpage and not (fpage)" role="error" id="err-elem-cit-book-36-2">If &lt;lpage&gt; is present, &lt;fpage&gt; must also be present. Reference '<value-of select="ancestor::ref/@id"/>' has &lt;lpage&gt; but not &lt;fpage&gt;.</report>
<report see="https://elifeproduction.slab.com/posts/book-references-x4trb0n2#hbbs8-err-elem-cit-book-36-2" test="lpage and not (fpage)" role="error" id="err-elem-cit-book-36-2">If &lt;lpage&gt; is present, &lt;fpage&gt; must also be present. Reference '<value-of select="ancestor::ref/@id"/>' has &lt;lpage&gt; but not &lt;fpage&gt;.</report>
</rule>
</pattern>
<pattern id="root-pattern">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1284,7 +1284,7 @@
<pattern id="element-citation-book-tests">
<rule context="element-citation[@publication-type='book']" id="elem-citation-book">
<let name="publisher-locations" value="'../../../../../src/publisher-locations.xml'"/>
<report test="count(lpage) &gt; 1 or count(fpage) &gt; 1" role="error" id="err-elem-cit-book-36-6">At most one &lt;lpage&gt; and one &lt;fpage&gt; are allowed. Reference '<value-of select="ancestor::ref/@id"/>' has <value-of select="count(lpage)"/> &lt;lpage&gt; elements and <value-of select="count(fpage)"/> &lt;fpage&gt; elements.</report>
<report see="https://elifeproduction.slab.com/posts/book-references-x4trb0n2#hgboy-err-elem-cit-book-36-6" test="count(lpage) &gt; 1 or count(fpage) &gt; 1" role="error" id="err-elem-cit-book-36-6">At most one &lt;lpage&gt; and one &lt;fpage&gt; are allowed. Reference '<value-of select="ancestor::ref/@id"/>' has <value-of select="count(lpage)"/> &lt;lpage&gt; elements and <value-of select="count(fpage)"/> &lt;fpage&gt; elements.</report>
</rule>
</pattern>
<pattern id="root-pattern">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1284,7 +1284,7 @@
<pattern id="element-citation-book-tests">
<rule context="element-citation[@publication-type='book']" id="elem-citation-book">
<let name="publisher-locations" value="'../../../../../src/publisher-locations.xml'"/>
<report test="(lpage and fpage) and (number(fpage[1]) &gt;= number(lpage[1]))" role="error" id="err-elem-cit-book-36">If both &lt;lpage&gt; and &lt;fpage&gt; are present, the value of &lt;fpage&gt; must be less than the value of &lt;lpage&gt;. Reference '<value-of select="ancestor::ref/@id"/>' has &lt;lpage&gt; <value-of select="lpage"/>, which is less than or equal to &lt;fpage&gt; <value-of select="fpage"/>.</report>
<report see="https://elifeproduction.slab.com/posts/book-references-x4trb0n2#hu702-err-elem-cit-book-36" test="(lpage and fpage) and (number(fpage[1]) &gt;= number(lpage[1]))" role="error" id="err-elem-cit-book-36">If both &lt;lpage&gt; and &lt;fpage&gt; are present, the value of &lt;fpage&gt; must be less than the value of &lt;lpage&gt;. Reference '<value-of select="ancestor::ref/@id"/>' has &lt;lpage&gt; <value-of select="lpage"/>, which is less than or equal to &lt;fpage&gt; <value-of select="fpage"/>.</report>
</rule>
</pattern>
<pattern id="root-pattern">
Expand Down
Loading

0 comments on commit fadb173

Please sign in to comment.