diff --git a/src/preprint-changes.xsl b/src/preprint-changes.xsl index 8818615804..b3e49d863e 100644 --- a/src/preprint-changes.xsl +++ b/src/preprint-changes.xsl @@ -1125,6 +1125,20 @@ |italic[bold[xref]]"> + + + + + + + + + + + + + + diff --git a/src/rp-schematron-base.sch b/src/rp-schematron-base.sch index ae64ff0797..0107a153a6 100644 --- a/src/rp-schematron-base.sch +++ b/src/rp-schematron-base.sch @@ -1492,6 +1492,9 @@ + + + There should only be one abstract without an abstract-type attribute (for the common-garden abstract) or xml:lang attirbute (for common-garden abstract in a language other than english). This asbtract does not have an abstract-type, but there is also a preceding abstract without an abstract-type or xml:lang. One of these needs to be given an abstract-type with the allowed values ('structured' for a syrctured abstract with sections; 'plain-language-summary' for a digest or author provided plain summary; 'teaser' for an impact statement; 'summary' for a general summary that's in addition to the common-garden abstract; 'graphical' for a graphical abstract). @@ -1515,6 +1518,18 @@ abstract has the abstract-type '', which is a permitted value, but it is not the only abstract with that type. It is very unlikely that two abstracts with the same abstract-type are required. + + abstract has the abstract-type 'teaser', meaning it is equivalent to an impact statement, but it has the following descendant elements, which prove it needs a different type . + + abstract has the abstract-type 'teaser', meaning it is equivalent to an impact statement, but it has greater than 60 words (). + + abstract has the abstract-type 'teaser', meaning it is equivalent to an impact statement, but it has paragraphs (whereas an impact statement would have only one paragraph). diff --git a/src/rp-schematron.sch b/src/rp-schematron.sch index c1f8b5245c..9e4c652754 100644 --- a/src/rp-schematron.sch +++ b/src/rp-schematron.sch @@ -810,6 +810,9 @@ + + + [abstract-test-1] There should only be one abstract without an abstract-type attribute (for the common-garden abstract) or xml:lang attirbute (for common-garden abstract in a language other than english). This asbtract does not have an abstract-type, but there is also a preceding abstract without an abstract-type or xml:lang. One of these needs to be given an abstract-type with the allowed values ('structured' for a syrctured abstract with sections; 'plain-language-summary' for a digest or author provided plain summary; 'teaser' for an impact statement; 'summary' for a general summary that's in addition to the common-garden abstract; 'graphical' for a graphical abstract). [abstract-test-2] abstract has an abstract-type (), but it's not one of the permiited values: . @@ -821,6 +824,12 @@ [abstract-test-5] abstract has a descendant fig, but it does not have the attribute abstract-type="graphical". If it is a graphical abstract, it should have that type. If it's not a graphical abstract the content should be moved out of <abstract> [abstract-test-6] abstract has the abstract-type '', which is a permitted value, but it is not the only abstract with that type. It is very unlikely that two abstracts with the same abstract-type are required. + + [abstract-test-7] abstract has the abstract-type 'teaser', meaning it is equivalent to an impact statement, but it has the following descendant elements, which prove it needs a different type . + + [abstract-test-8] abstract has the abstract-type 'teaser', meaning it is equivalent to an impact statement, but it has greater than 60 words (). + + [abstract-test-9] abstract has the abstract-type 'teaser', meaning it is equivalent to an impact statement, but it has paragraphs (whereas an impact statement would have only one paragraph). [abstract-child-test-1] is not permitted within abstract. diff --git a/src/rp-schematron.xsl b/src/rp-schematron.xsl index eb41e75e47..0aec6b2e50 100644 --- a/src/rp-schematron.xsl +++ b/src/rp-schematron.xsl @@ -5802,6 +5802,8 @@ + + @@ -5878,6 +5880,45 @@ ', which is a permitted value, but it is not the only abstract with that type. It is very unlikely that two abstracts with the same abstract-type are required. + + + + abstract-test-7 + error + + + + [abstract-test-7] abstract has the abstract-type 'teaser', meaning it is equivalent to an impact statement, but it has the following descendant elements, which prove it needs a different type + + . + + + + + + abstract-test-8 + warning + + + + [abstract-test-8] abstract has the abstract-type 'teaser', meaning it is equivalent to an impact statement, but it has greater than 60 words ( + + ). + + + + + + abstract-test-9 + error + + + + [abstract-test-9] abstract has the abstract-type 'teaser', meaning it is equivalent to an impact statement, but it has + + paragraphs (whereas an impact statement would have only one paragraph). + + diff --git a/test/tests/preprint-changes/all/input.xml b/test/tests/preprint-changes/all/input.xml index e24a944f95..d41489889a 100644 --- a/test/tests/preprint-changes/all/input.xml +++ b/test/tests/preprint-changes/all/input.xml @@ -103,6 +103,8 @@ MATERIALS & METHODS +

some text

+

italics

diff --git a/test/tests/preprint-changes/all/output.xml b/test/tests/preprint-changes/all/output.xml index bd8dea7f39..9b37ba403c 100644 --- a/test/tests/preprint-changes/all/output.xml +++ b/test/tests/preprint-changes/all/output.xml @@ -115,6 +115,8 @@ Materials & methods +

some text

+

italics

diff --git a/test/tests/preprint-changes/strip-i-tags/input.xml b/test/tests/preprint-changes/strip-i-tags/input.xml new file mode 100644 index 0000000000..b4a01894ef --- /dev/null +++ b/test/tests/preprint-changes/strip-i-tags/input.xml @@ -0,0 +1,5 @@ + + +

some text

+

italics

+
\ No newline at end of file diff --git a/test/tests/preprint-changes/strip-i-tags/output.xml b/test/tests/preprint-changes/strip-i-tags/output.xml new file mode 100644 index 0000000000..9e85b44283 --- /dev/null +++ b/test/tests/preprint-changes/strip-i-tags/output.xml @@ -0,0 +1,5 @@ + + +

some text

+

italics

+
\ No newline at end of file diff --git a/test/tests/rp/abstract-checks/abstract-test-1/abstract-test-1.sch b/test/tests/rp/abstract-checks/abstract-test-1/abstract-test-1.sch index 617db7d5b3..ac3b2ece6d 100644 --- a/test/tests/rp/abstract-checks/abstract-test-1/abstract-test-1.sch +++ b/test/tests/rp/abstract-checks/abstract-test-1/abstract-test-1.sch @@ -147,6 +147,8 @@ + + [abstract-test-1] There should only be one abstract without an abstract-type attribute (for the common-garden abstract) or xml:lang attirbute (for common-garden abstract in a language other than english). This asbtract does not have an abstract-type, but there is also a preceding abstract without an abstract-type or xml:lang. One of these needs to be given an abstract-type with the allowed values ('structured' for a syrctured abstract with sections; 'plain-language-summary' for a digest or author provided plain summary; 'teaser' for an impact statement; 'summary' for a general summary that's in addition to the common-garden abstract; 'graphical' for a graphical abstract). diff --git a/test/tests/rp/abstract-checks/abstract-test-2/abstract-test-2.sch b/test/tests/rp/abstract-checks/abstract-test-2/abstract-test-2.sch index 2e4254e854..eaf4a541f1 100644 --- a/test/tests/rp/abstract-checks/abstract-test-2/abstract-test-2.sch +++ b/test/tests/rp/abstract-checks/abstract-test-2/abstract-test-2.sch @@ -147,6 +147,8 @@ + + [abstract-test-2] abstract has an abstract-type (), but it's not one of the permiited values: . diff --git a/test/tests/rp/abstract-checks/abstract-test-3/abstract-test-3.sch b/test/tests/rp/abstract-checks/abstract-test-3/abstract-test-3.sch index 57802e3f12..7f6a670585 100644 --- a/test/tests/rp/abstract-checks/abstract-test-3/abstract-test-3.sch +++ b/test/tests/rp/abstract-checks/abstract-test-3/abstract-test-3.sch @@ -147,6 +147,8 @@ + + [abstract-test-3] abstract has a title that indicates it contains funding information () If this is funding information, it should be captured as a section in back or as part of an (if existing) structured abstract. diff --git a/test/tests/rp/abstract-checks/abstract-test-4/abstract-test-4.sch b/test/tests/rp/abstract-checks/abstract-test-4/abstract-test-4.sch index 418ae31718..d464c1c919 100644 --- a/test/tests/rp/abstract-checks/abstract-test-4/abstract-test-4.sch +++ b/test/tests/rp/abstract-checks/abstract-test-4/abstract-test-4.sch @@ -147,6 +147,8 @@ + + [abstract-test-4] abstract has a title that indicates it contains a data availability statement () If this is a data availability statement, it should be captured as a section in back. diff --git a/test/tests/rp/abstract-checks/abstract-test-5/abstract-test-5.sch b/test/tests/rp/abstract-checks/abstract-test-5/abstract-test-5.sch index 0e74234ef2..f629b8a2f2 100644 --- a/test/tests/rp/abstract-checks/abstract-test-5/abstract-test-5.sch +++ b/test/tests/rp/abstract-checks/abstract-test-5/abstract-test-5.sch @@ -147,6 +147,8 @@ + + [abstract-test-5] abstract has a descendant fig, but it does not have the attribute abstract-type="graphical". If it is a graphical abstract, it should have that type. If it's not a graphical abstract the content should be moved out of <abstract> diff --git a/test/tests/rp/abstract-checks/abstract-test-6/abstract-test-6.sch b/test/tests/rp/abstract-checks/abstract-test-6/abstract-test-6.sch index bec57396cf..dc95a87a12 100644 --- a/test/tests/rp/abstract-checks/abstract-test-6/abstract-test-6.sch +++ b/test/tests/rp/abstract-checks/abstract-test-6/abstract-test-6.sch @@ -147,6 +147,8 @@ + + [abstract-test-6] abstract has the abstract-type '', which is a permitted value, but it is not the only abstract with that type. It is very unlikely that two abstracts with the same abstract-type are required. diff --git a/test/tests/rp/abstract-checks/abstract-test-7/abstract-test-7.sch b/test/tests/rp/abstract-checks/abstract-test-7/abstract-test-7.sch new file mode 100644 index 0000000000..d856e716c6 --- /dev/null +++ b/test/tests/rp/abstract-checks/abstract-test-7/abstract-test-7.sch @@ -0,0 +1,160 @@ + + eLife reviewed preprint schematron + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [abstract-test-7] abstract has the abstract-type 'teaser', meaning it is equivalent to an impact statement, but it has the following descendant elements, which prove it needs a different type . + + + + + abstract[parent::article-meta] must be present. + + + \ No newline at end of file diff --git a/test/tests/rp/abstract-checks/abstract-test-7/fail.xml b/test/tests/rp/abstract-checks/abstract-test-7/fail.xml new file mode 100644 index 0000000000..ac46f40f13 --- /dev/null +++ b/test/tests/rp/abstract-checks/abstract-test-7/fail.xml @@ -0,0 +1,17 @@ + + + +
+ + +

This is an impact statement, which is typically just one sentence, but certainly not a long drawn out paragraph consisting of many words. It definitely shouldn't have:

+ a list + + + +
+
+
+
\ No newline at end of file diff --git a/test/tests/rp/abstract-checks/abstract-test-7/pass.xml b/test/tests/rp/abstract-checks/abstract-test-7/pass.xml new file mode 100644 index 0000000000..3d0f485efc --- /dev/null +++ b/test/tests/rp/abstract-checks/abstract-test-7/pass.xml @@ -0,0 +1,13 @@ + + + +
+ + +

This is an impact statement, which is typically just one sentence, but certainly not a long drawn out paragraph consisting of many words.

+
+
+
+
\ No newline at end of file diff --git a/test/tests/rp/abstract-checks/abstract-test-8/abstract-test-8.sch b/test/tests/rp/abstract-checks/abstract-test-8/abstract-test-8.sch new file mode 100644 index 0000000000..54c714c58c --- /dev/null +++ b/test/tests/rp/abstract-checks/abstract-test-8/abstract-test-8.sch @@ -0,0 +1,160 @@ + + eLife reviewed preprint schematron + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [abstract-test-8] abstract has the abstract-type 'teaser', meaning it is equivalent to an impact statement, but it has greater than 60 words (). + + + + + abstract[parent::article-meta] must be present. + + + \ No newline at end of file diff --git a/test/tests/rp/abstract-checks/abstract-test-8/fail.xml b/test/tests/rp/abstract-checks/abstract-test-8/fail.xml new file mode 100644 index 0000000000..fb359765f4 --- /dev/null +++ b/test/tests/rp/abstract-checks/abstract-test-8/fail.xml @@ -0,0 +1,13 @@ + + + +
+ + +

This is an impact statement, which is typically just one sentence, but certainly not a long drawn out paragraph consisting of many many many many many many many many many many many many many many many many many many many many many many many many many many many many many many many many many many many many many many many many many many many many many many many many many many many many many many many words.

+
+
+
+
\ No newline at end of file diff --git a/test/tests/rp/abstract-checks/abstract-test-8/pass.xml b/test/tests/rp/abstract-checks/abstract-test-8/pass.xml new file mode 100644 index 0000000000..e27f087a0d --- /dev/null +++ b/test/tests/rp/abstract-checks/abstract-test-8/pass.xml @@ -0,0 +1,13 @@ + + + +
+ + +

This is an impact statement, which is typically just one sentence, but certainly not a long drawn out paragraph consisting of many words.

+
+
+
+
\ No newline at end of file diff --git a/test/tests/rp/abstract-checks/abstract-test-9/abstract-test-9.sch b/test/tests/rp/abstract-checks/abstract-test-9/abstract-test-9.sch new file mode 100644 index 0000000000..1b57a1aedd --- /dev/null +++ b/test/tests/rp/abstract-checks/abstract-test-9/abstract-test-9.sch @@ -0,0 +1,160 @@ + + eLife reviewed preprint schematron + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [abstract-test-9] abstract has the abstract-type 'teaser', meaning it is equivalent to an impact statement, but it has paragraphs (whereas an impact statement would have only one paragraph). + + + + + abstract[parent::article-meta] must be present. + + + \ No newline at end of file diff --git a/test/tests/rp/abstract-checks/abstract-test-9/fail.xml b/test/tests/rp/abstract-checks/abstract-test-9/fail.xml new file mode 100644 index 0000000000..98a4f10bf6 --- /dev/null +++ b/test/tests/rp/abstract-checks/abstract-test-9/fail.xml @@ -0,0 +1,14 @@ + + + +
+ + +

This is an impact statement, which is typically just one sentence, but certainly not a long drawn out paragraph consisting of many words.

+

But there shouldn't be two or more paras.

+
+
+
+
\ No newline at end of file diff --git a/test/tests/rp/abstract-checks/abstract-test-9/pass.xml b/test/tests/rp/abstract-checks/abstract-test-9/pass.xml new file mode 100644 index 0000000000..2940824d40 --- /dev/null +++ b/test/tests/rp/abstract-checks/abstract-test-9/pass.xml @@ -0,0 +1,13 @@ + + + +
+ + +

This is an impact statement, which is typically just one sentence, but certainly not a long drawn out paragraph consisting of many words.

+
+
+
+
\ No newline at end of file diff --git a/test/xspec/countries.xml b/test/xspec/countries.xml index c41768b467..ab40adc143 100755 --- a/test/xspec/countries.xml +++ b/test/xspec/countries.xml @@ -107,6 +107,7 @@ Iceland India Indonesia + Iran Islamic Republic of Iran Iraq Ireland diff --git a/test/xspec/preprint-changes.xspec b/test/xspec/preprint-changes.xspec index 8571de6e08..0e16ce5045 100644 --- a/test/xspec/preprint-changes.xspec +++ b/test/xspec/preprint-changes.xspec @@ -112,6 +112,10 @@ + + + + diff --git a/test/xspec/rp-schematron.sch b/test/xspec/rp-schematron.sch index c5fc30028f..40e6a1f08e 100644 --- a/test/xspec/rp-schematron.sch +++ b/test/xspec/rp-schematron.sch @@ -1100,6 +1100,9 @@ + + + There should only be one abstract without an abstract-type attribute (for the common-garden abstract) or xml:lang attirbute (for common-garden abstract in a language other than english). This asbtract does not have an abstract-type, but there is also a preceding abstract without an abstract-type or xml:lang. One of these needs to be given an abstract-type with the allowed values ('structured' for a syrctured abstract with sections; 'plain-language-summary' for a digest or author provided plain summary; 'teaser' for an impact statement; 'summary' for a general summary that's in addition to the common-garden abstract; 'graphical' for a graphical abstract). abstract has an abstract-type (), but it's not one of the permiited values: . @@ -1111,6 +1114,12 @@ abstract has a descendant fig, but it does not have the attribute abstract-type="graphical". If it is a graphical abstract, it should have that type. If it's not a graphical abstract the content should be moved out of <abstract> abstract has the abstract-type '', which is a permitted value, but it is not the only abstract with that type. It is very unlikely that two abstracts with the same abstract-type are required. + + abstract has the abstract-type 'teaser', meaning it is equivalent to an impact statement, but it has the following descendant elements, which prove it needs a different type . + + abstract has the abstract-type 'teaser', meaning it is equivalent to an impact statement, but it has greater than 60 words (). + + abstract has the abstract-type 'teaser', meaning it is equivalent to an impact statement, but it has paragraphs (whereas an impact statement would have only one paragraph). diff --git a/test/xspec/rp-schematron.xspec b/test/xspec/rp-schematron.xspec index 6a5fb3bb4f..f7a6cd4b3b 100644 --- a/test/xspec/rp-schematron.xspec +++ b/test/xspec/rp-schematron.xspec @@ -2671,6 +2671,36 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +