diff --git a/src/rp-schematron-base.sch b/src/rp-schematron-base.sch index d48ab3ce7d..bab7890e0a 100644 --- a/src/rp-schematron-base.sch +++ b/src/rp-schematron-base.sch @@ -1872,6 +1872,24 @@ + + + + + The title of an type sub-article should be 'eLife Assessment'. This one is: + + The title of a type sub-article should be in one of the following formats: 'Reviewer #0 (public review)' or 'Joint public review'. This one is: + + The title of a type sub-article should be 'Author response'. This one is: + + + [ar-bold-image] The bold text in a label preceding an image in the author response must be in the format 'Author response image 1.' or 'Author response table 1.' - this one is not - + + + + [sub-article-title-check-1] The title of an type sub-article should be 'eLife Assessment'. This one is: + + [sub-article-title-check-2] The title of a type sub-article should be in one of the following formats: 'Reviewer #0 (public review)' or 'Joint public review'. This one is: + + [sub-article-title-check-3] The title of a type sub-article should be 'Author response'. This one is: + + [arxiv-journal-id] arXiv preprints must have a <journal-id journal-id-type="publisher-id"> element with the value 'arXiv'. diff --git a/src/rp-schematron.xsl b/src/rp-schematron.xsl index 4f8f58eac4..d7bf0e19d2 100644 --- a/src/rp-schematron.xsl +++ b/src/rp-schematron.xsl @@ -1202,6 +1202,15 @@ + + + + + sub-article-title-checks-pattern + sub-article-title-checks-pattern + + + @@ -1210,7 +1219,7 @@ arxiv-journal-meta-checks-pattern - + @@ -1219,7 +1228,7 @@ arxiv-doi-checks-pattern - + @@ -1228,7 +1237,7 @@ res-square-journal-meta-checks-pattern - + @@ -1237,7 +1246,7 @@ res-square-doi-checks-pattern - + @@ -1246,7 +1255,7 @@ psyarxiv-journal-meta-checks-pattern - + @@ -1255,7 +1264,7 @@ psyarxiv-doi-checks-pattern - + @@ -1264,7 +1273,7 @@ osf-journal-meta-checks-pattern - + @@ -1273,7 +1282,7 @@ osf-doi-checks-pattern - + @@ -1282,7 +1291,7 @@ ecoevorxiv-journal-meta-checks-pattern - + @@ -1291,7 +1300,7 @@ ecoevorxiv-doi-checks-pattern - + @@ -1300,7 +1309,7 @@ authorea-journal-meta-checks-pattern - + @@ -1309,7 +1318,7 @@ authorea-doi-checks-pattern - + @@ -6840,9 +6849,67 @@ + + + + + + + + sub-article-title-check-1 + error + + + + [sub-article-title-check-1] The title of an + + type sub-article should be 'eLife Assessment'. This one is: + + + + + + + + + sub-article-title-check-2 + error + + + + [sub-article-title-check-2] The title of a + + type sub-article should be in one of the following formats: 'Reviewer #0 (public review)' or 'Joint public review'. This one is: + + + + + + + + + sub-article-title-check-3 + error + + + + [sub-article-title-check-3] The title of a + + type sub-article should be 'Author response'. This one is: + + + + + + + + + + + - + @@ -6914,15 +6981,15 @@ - + - - - + + + - + @@ -6940,15 +7007,15 @@ - + - - - + + + - + @@ -7020,15 +7087,15 @@ - + - - - + + + - + @@ -7046,15 +7113,15 @@ - + - - - + + + - + @@ -7112,15 +7179,15 @@ - + - - - + + + - + @@ -7138,15 +7205,15 @@ - + - - - + + + - + @@ -7204,15 +7271,15 @@ - + - - - + + + - + @@ -7230,15 +7297,15 @@ - + - - - + + + - + @@ -7296,15 +7363,15 @@ - + - - - + + + - + @@ -7322,15 +7389,15 @@ - + - - - + + + - + @@ -7388,15 +7455,15 @@ - + - - - + + + - + @@ -7414,10 +7481,10 @@ - + - - - + + + \ No newline at end of file diff --git a/test/tests/rp/sub-article-title-checks/sub-article-title-check-1/fail.xml b/test/tests/rp/sub-article-title-checks/sub-article-title-check-1/fail.xml new file mode 100644 index 0000000000..fa30a28742 --- /dev/null +++ b/test/tests/rp/sub-article-title-checks/sub-article-title-check-1/fail.xml @@ -0,0 +1,15 @@ + + + +
+ + + + ELIFE Assessment + + + +
+
\ No newline at end of file diff --git a/test/tests/rp/sub-article-title-checks/sub-article-title-check-1/pass.xml b/test/tests/rp/sub-article-title-checks/sub-article-title-check-1/pass.xml new file mode 100644 index 0000000000..708cdb0b66 --- /dev/null +++ b/test/tests/rp/sub-article-title-checks/sub-article-title-check-1/pass.xml @@ -0,0 +1,15 @@ + + + +
+ + + + eLife Assessment + + + +
+
\ No newline at end of file diff --git a/test/tests/rp/sub-article-title-checks/sub-article-title-check-1/sub-article-title-check-1.sch b/test/tests/rp/sub-article-title-checks/sub-article-title-check-1/sub-article-title-check-1.sch new file mode 100644 index 0000000000..43a44ee417 --- /dev/null +++ b/test/tests/rp/sub-article-title-checks/sub-article-title-check-1/sub-article-title-check-1.sch @@ -0,0 +1,159 @@ + + eLife reviewed preprint schematron + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [sub-article-title-check-1] The title of an type sub-article should be 'eLife Assessment'. This one is: + + + + + + sub-article/front-stub/title-group/article-title must be present. + + + \ No newline at end of file diff --git a/test/tests/rp/sub-article-title-checks/sub-article-title-check-2/fail.xml b/test/tests/rp/sub-article-title-checks/sub-article-title-check-2/fail.xml new file mode 100644 index 0000000000..b8544244d4 --- /dev/null +++ b/test/tests/rp/sub-article-title-checks/sub-article-title-check-2/fail.xml @@ -0,0 +1,29 @@ + + + +
+ + + + Reviewer #1 (Pubic Review): + + + + + + + Reviewer 3 (Public Review): + + + + + + + Join public Review + + + +
+
\ No newline at end of file diff --git a/test/tests/rp/sub-article-title-checks/sub-article-title-check-2/pass.xml b/test/tests/rp/sub-article-title-checks/sub-article-title-check-2/pass.xml new file mode 100644 index 0000000000..cb160d3c65 --- /dev/null +++ b/test/tests/rp/sub-article-title-checks/sub-article-title-check-2/pass.xml @@ -0,0 +1,29 @@ + + + +
+ + + + Reviewer #1 (Public Review): + + + + + + + Reviewer #10 (Public Review): + + + + + + + Joint Public Review + + + +
+
\ No newline at end of file diff --git a/test/tests/rp/sub-article-title-checks/sub-article-title-check-2/sub-article-title-check-2.sch b/test/tests/rp/sub-article-title-checks/sub-article-title-check-2/sub-article-title-check-2.sch new file mode 100644 index 0000000000..493156ad95 --- /dev/null +++ b/test/tests/rp/sub-article-title-checks/sub-article-title-check-2/sub-article-title-check-2.sch @@ -0,0 +1,159 @@ + + eLife reviewed preprint schematron + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [sub-article-title-check-2] The title of a type sub-article should be in one of the following formats: 'Reviewer #0 (public review)' or 'Joint public review'. This one is: + + + + + + sub-article/front-stub/title-group/article-title must be present. + + + \ No newline at end of file diff --git a/test/tests/rp/sub-article-title-checks/sub-article-title-check-3/fail.xml b/test/tests/rp/sub-article-title-checks/sub-article-title-check-3/fail.xml new file mode 100644 index 0000000000..fef44bd310 --- /dev/null +++ b/test/tests/rp/sub-article-title-checks/sub-article-title-check-3/fail.xml @@ -0,0 +1,15 @@ + + + +
+ + + + Response to reviewers + + + +
+
\ No newline at end of file diff --git a/test/tests/rp/sub-article-title-checks/sub-article-title-check-3/pass.xml b/test/tests/rp/sub-article-title-checks/sub-article-title-check-3/pass.xml new file mode 100644 index 0000000000..24b63bdf2f --- /dev/null +++ b/test/tests/rp/sub-article-title-checks/sub-article-title-check-3/pass.xml @@ -0,0 +1,15 @@ + + + +
+ + + + Author response + + + +
+
\ No newline at end of file diff --git a/test/tests/rp/sub-article-title-checks/sub-article-title-check-3/sub-article-title-check-3.sch b/test/tests/rp/sub-article-title-checks/sub-article-title-check-3/sub-article-title-check-3.sch new file mode 100644 index 0000000000..dfe8067a81 --- /dev/null +++ b/test/tests/rp/sub-article-title-checks/sub-article-title-check-3/sub-article-title-check-3.sch @@ -0,0 +1,159 @@ + + eLife reviewed preprint schematron + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [sub-article-title-check-3] The title of a type sub-article should be 'Author response'. This one is: + + + + + + sub-article/front-stub/title-group/article-title must be present. + + + \ No newline at end of file diff --git a/test/xspec/rp-schematron.sch b/test/xspec/rp-schematron.sch index d5722eeba0..a72bb264ee 100644 --- a/test/xspec/rp-schematron.sch +++ b/test/xspec/rp-schematron.sch @@ -1363,6 +1363,21 @@
+ + + + + The title of an type sub-article should be 'eLife Assessment'. This one is: + + + The title of a type sub-article should be in one of the following formats: 'Reviewer #0 (public review)' or 'Joint public review'. This one is: + + + The title of a type sub-article should be 'Author response'. This one is: + + + + arXiv preprints must have a <journal-id journal-id-type="publisher-id"> element with the value 'arXiv'. @@ -1575,6 +1590,7 @@ sub-article[@article-type='editor-report']/front-stub/kwd-group[@kwd-group-type='evidence-strength']/kwd must be present. sub-article[@article-type='editor-report']/body/p[1]//bold must be present. sub-article[@article-type='author-comment']/body//bold[not(preceding-sibling::text() or preceding-sibling::*) and (parent::p/following-sibling::*[1]/ext-link/inline-graphic or parent::p/following-sibling::*[2]/ext-link/inline-graphic)] must be present. + sub-article/front-stub/title-group/article-title must be present. article/front/journal-meta[lower-case(journal-id[1])='arxiv'] must be present. article/front[journal-meta[lower-case(journal-id[1])='arxiv']]/article-meta/article-id[@pub-id-type='doi'] must be present. article/front/journal-meta[lower-case(journal-id[1])='rs'] must be present. diff --git a/test/xspec/rp-schematron.xspec b/test/xspec/rp-schematron.xspec index 37fb1a856c..6c35f418e2 100644 --- a/test/xspec/rp-schematron.xspec +++ b/test/xspec/rp-schematron.xspec @@ -3224,6 +3224,38 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +