From bb11f5f02b01a842d387d740a48536aab4e9bda1 Mon Sep 17 00:00:00 2001
From: Fred Atherden <43879983+fred-atherden@users.noreply.github.com>
Date: Mon, 17 Feb 2025 09:24:51 +0000
Subject: [PATCH 1/6] RP - add check for incomplete DOIs in refs
---
src/rp-schematron-base.sch | 4 +
src/rp-schematron.sch | 2 +
src/rp-schematron.xsl | 15 ++
.../ref-pub-id-checks/pub-id-check-6/fail.xml | 11 ++
.../ref-pub-id-checks/pub-id-check-6/pass.xml | 11 ++
.../pub-id-check-6/pub-id-check-6.sch | 157 ++++++++++++++++++
test/xspec/rp-schematron.sch | 2 +
test/xspec/rp-schematron.xspec | 10 ++
8 files changed, 212 insertions(+)
create mode 100644 test/tests/rp/ref-pub-id-checks/pub-id-check-6/fail.xml
create mode 100644 test/tests/rp/ref-pub-id-checks/pub-id-check-6/pass.xml
create mode 100644 test/tests/rp/ref-pub-id-checks/pub-id-check-6/pub-id-check-6.sch
diff --git a/src/rp-schematron-base.sch b/src/rp-schematron-base.sch
index 45b23734b7..80b59ff84d 100644
--- a/src/rp-schematron-base.sch
+++ b/src/rp-schematron-base.sch
@@ -784,6 +784,10 @@
Web reference (with id ) has a (). This must be incorrect. Either the publication-type for the reference needs changing, or the pub-id should be changed to another element.
+
+ doi in ref is followd by text - ''. Should that text be part of the DOI or tagged in some other way?
diff --git a/src/rp-schematron.sch b/src/rp-schematron.sch
index f06ee164b3..eeda09357e 100644
--- a/src/rp-schematron.sch
+++ b/src/rp-schematron.sch
@@ -462,6 +462,8 @@
[pub-id-check-4] is within a journal reference, but it does not have one of the following permitted @pub-id-type values: 'doi','pmid','pmcid','arxiv'.[pub-id-check-5] Web reference (with id ) has a (). This must be incorrect. Either the publication-type for the reference needs changing, or the pub-id should be changed to another element.
+
+ [pub-id-check-6] doi in ref is followd by text - ''. Should that text be part of the DOI or tagged in some other way?
diff --git a/src/rp-schematron.xsl b/src/rp-schematron.xsl
index 1899c78930..279afdc1d5 100644
--- a/src/rp-schematron.xsl
+++ b/src/rp-schematron.xsl
@@ -3611,6 +3611,21 @@
). This must be incorrect. Either the publication-type for the reference needs changing, or the pub-id should be changed to another element.
+
+
+
+ pub-id-check-6
+ warning
+
+
+
+ [pub-id-check-6] doi in
+
+ ref is followd by text - '
+
+ '. Should that text be part of the DOI or tagged in some other way?
+
+
diff --git a/test/tests/rp/ref-pub-id-checks/pub-id-check-6/fail.xml b/test/tests/rp/ref-pub-id-checks/pub-id-check-6/fail.xml
new file mode 100644
index 0000000000..4576bb2030
--- /dev/null
+++ b/test/tests/rp/ref-pub-id-checks/pub-id-check-6/fail.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+ 10.7554/eLife.100870. 2
+
+
+
\ No newline at end of file
diff --git a/test/tests/rp/ref-pub-id-checks/pub-id-check-6/pass.xml b/test/tests/rp/ref-pub-id-checks/pub-id-check-6/pass.xml
new file mode 100644
index 0000000000..b43baa1540
--- /dev/null
+++ b/test/tests/rp/ref-pub-id-checks/pub-id-check-6/pass.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+ 10.7554/eLife.100870.2
+
+
+
\ No newline at end of file
diff --git a/test/tests/rp/ref-pub-id-checks/pub-id-check-6/pub-id-check-6.sch b/test/tests/rp/ref-pub-id-checks/pub-id-check-6/pub-id-check-6.sch
new file mode 100644
index 0000000000..3afbd5aab3
--- /dev/null
+++ b/test/tests/rp/ref-pub-id-checks/pub-id-check-6/pub-id-check-6.sch
@@ -0,0 +1,157 @@
+
+ eLife reviewed preprint schematron
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ [pub-id-check-6] doi in ref is followd by text - ''. Should that text be part of the DOI or tagged in some other way?
+
+
+
+
+ ref//pub-id must be present.
+
+
+
\ No newline at end of file
diff --git a/test/xspec/rp-schematron.sch b/test/xspec/rp-schematron.sch
index d2c8b7cba2..d45b52245e 100644
--- a/test/xspec/rp-schematron.sch
+++ b/test/xspec/rp-schematron.sch
@@ -569,6 +569,8 @@
is within a journal reference, but it does not have one of the following permitted @pub-id-type values: 'doi','pmid','pmcid','arxiv'.
Web reference (with id ) has a (). This must be incorrect. Either the publication-type for the reference needs changing, or the pub-id should be changed to another element.
+
+ doi in ref is followd by text - ''. Should that text be part of the DOI or tagged in some other way?
diff --git a/test/xspec/rp-schematron.xspec b/test/xspec/rp-schematron.xspec
index 694fbcfc9d..3d2945c83a 100644
--- a/test/xspec/rp-schematron.xspec
+++ b/test/xspec/rp-schematron.xspec
@@ -1255,6 +1255,16 @@
+
+
+
+
+
+
+
+
+
+
From dfcf35d0bebc2c654c001158b5f47c8d71abd485 Mon Sep 17 00:00:00 2001
From: Fred Atherden <43879983+fred-atherden@users.noreply.github.com>
Date: Mon, 17 Feb 2025 09:32:56 +0000
Subject: [PATCH 2/6] RP XSL - eLife casing in refs
---
src/preprint-changes.xsl | 7 +++++++
test/tests/preprint-changes/all/output.xml | 2 +-
.../preprint-changes/fix-common-ref-issues/output.xml | 2 +-
3 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/src/preprint-changes.xsl b/src/preprint-changes.xsl
index 8cf390def3..2bc81163cd 100644
--- a/src/preprint-changes.xsl
+++ b/src/preprint-changes.xsl
@@ -1239,6 +1239,13 @@
+
+
+
+
+ eLife
+
+
diff --git a/test/tests/preprint-changes/all/output.xml b/test/tests/preprint-changes/all/output.xml
index 88e0fc7a91..e884c104b9 100644
--- a/test/tests/preprint-changes/all/output.xml
+++ b/test/tests/preprint-changes/all/output.xml
@@ -185,7 +185,7 @@
2024bioRxivA.Nagy, M.Gertsenstein, K.Vintersten, …R.Behringer, Manipulating the mouse embryo: a laboratory manual (Cold Spring Harbor Laboratory Press Cold Spring Harbor, NY:, 2003), vol. 10.J. M.Glynn, T. G.Cotter, D. R.Green (1992) Apoptosis induced by actinomycin D, camptothecin or aphidicolin can occur in all phases of the cell cycle. (PortlandPress Ltd.).
-HuckesfeldS, et al (2021) Unveiling the sensory and interneuronal pathways of the neuroendocrine connectome in Drosophila. Elife10:e65745
+HuckesfeldS, et al (2021) Unveiling the sensory and interneuronal pathways of the neuroendocrine connectome in Drosophila. eLife10:e65745HuckesfeldS, et al (2021) Unveiling the sensory and interneuronal pathways of the neuroendocrine connectome in Drosophila. eLife10:e65745HuckesfeldS, et al (2021) ... Plant Physiology10:e65745
diff --git a/test/tests/preprint-changes/fix-common-ref-issues/output.xml b/test/tests/preprint-changes/fix-common-ref-issues/output.xml
index 89a62bb793..f4da74a1f7 100644
--- a/test/tests/preprint-changes/fix-common-ref-issues/output.xml
+++ b/test/tests/preprint-changes/fix-common-ref-issues/output.xml
@@ -4,5 +4,5 @@
OzbeyNP, et al.Tyramine Acts Downstream of Neuronal XBP-1s to Coordinate Inter-tissue UPR(ER) Activation and Behavior in C. elegans. Dev Cell55, 754–770.e756 (2020). 10.1016/j.tibs.2017.08.001A.Nagy, M.Gertsenstein, K.Vintersten, R.Behringer, Manipulating the mouse embryo: a laboratory manual (Cold Spring Harbor Laboratory Press Cold Spring Harbor, NY:, 2003), vol. 10.J. M.Glynn, T. G.Cotter, D. R.Green (1992) Apoptosis induced by actinomycin D, camptothecin or aphidicolin can occur in all phases of the cell cycle. (PortlandPress Ltd.).
-HuckesfeldS, et al (2021) Unveiling the sensory and interneuronal pathways of the neuroendocrine connectome in Drosophila. Elife10:e65745
+HuckesfeldS, et al (2021) Unveiling the sensory and interneuronal pathways of the neuroendocrine connectome in Drosophila. eLife10:e65745
\ No newline at end of file
From 1e3ed51c815d2b1bce4d4c030488cd096986845d Mon Sep 17 00:00:00 2001
From: Fred Atherden <43879983+fred-atherden@users.noreply.github.com>
Date: Mon, 17 Feb 2025 10:32:50 +0000
Subject: [PATCH 3/6] RP/VOR - tweak clintrial-related-object-8
---
src/final-JATS-schematron.sch | 2 +-
src/final-JATS-schematron.xsl | 6 +++---
src/final-package-JATS-schematron.sch | 2 +-
src/pre-JATS-schematron.sch | 2 +-
src/pre-JATS-schematron.xsl | 6 +++---
src/rp-schematron-base.sch | 4 ++--
src/rp-schematron.sch | 2 +-
src/rp-schematron.xsl | 6 +++---
src/schematron.sch | 4 ++--
test/xspec/rp-schematron.sch | 4 ++--
test/xspec/schematron.sch | 4 ++--
11 files changed, 21 insertions(+), 21 deletions(-)
diff --git a/src/final-JATS-schematron.sch b/src/final-JATS-schematron.sch
index a9289e52eb..6ff07ef94c 100644
--- a/src/final-JATS-schematron.sch
+++ b/src/final-JATS-schematron.sch
@@ -2256,7 +2256,7 @@
[clintrial-related-object-7] must have an @xlink:href with a value that does not contain a space character.
- [clintrial-related-object-8] has an @document-id ''. But this is not in the text, which is likely incorrect - .
+ [clintrial-related-object-8] has an @document-id ''. But this is not the text of the related-object, which is likely incorrect - .[clintrial-related-object-9] must have an @id in the format 'RO1'. '' does not conform to this convention.
diff --git a/src/final-JATS-schematron.xsl b/src/final-JATS-schematron.xsl
index 9abc7acea9..a16025aecf 100644
--- a/src/final-JATS-schematron.xsl
+++ b/src/final-JATS-schematron.xsl
@@ -11110,9 +11110,9 @@
-
+
-
+ clintrial-related-object-8https://elifeproduction.slab.com/posts/abstracts-digests-and-impact-statements-tiau2k6x#clintrial-related-object-8warning
@@ -11123,7 +11123,7 @@
has an @document-id '
- '. But this is not in the text, which is likely incorrect -
+ '. But this is not the text of the related-object, which is likely incorrect - .
diff --git a/src/final-package-JATS-schematron.sch b/src/final-package-JATS-schematron.sch
index 333b3d7128..7157dfeedf 100644
--- a/src/final-package-JATS-schematron.sch
+++ b/src/final-package-JATS-schematron.sch
@@ -2262,7 +2262,7 @@
must have an @xlink:href with a value that does not contain a space character.
- has an @document-id ''. But this is not in the text, which is likely incorrect - .
+ has an @document-id ''. But this is not the text of the related-object, which is likely incorrect - . must have an @id in the format 'RO1'. '' does not conform to this convention.
diff --git a/src/pre-JATS-schematron.sch b/src/pre-JATS-schematron.sch
index b28efc4282..a453564355 100644
--- a/src/pre-JATS-schematron.sch
+++ b/src/pre-JATS-schematron.sch
@@ -2201,7 +2201,7 @@
[clintrial-related-object-7] must have an @xlink:href with a value that does not contain a space character.
- [clintrial-related-object-8] has an @document-id ''. But this is not in the text, which is likely incorrect - .
+ [clintrial-related-object-8] has an @document-id ''. But this is not the text of the related-object, which is likely incorrect - .[clintrial-related-object-9] must have an @id in the format 'RO1'. '' does not conform to this convention.
diff --git a/src/pre-JATS-schematron.xsl b/src/pre-JATS-schematron.xsl
index bcc7f04131..82b02baa0a 100644
--- a/src/pre-JATS-schematron.xsl
+++ b/src/pre-JATS-schematron.xsl
@@ -10957,9 +10957,9 @@
-
+
-
+ clintrial-related-object-8https://elifeproduction.slab.com/posts/abstracts-digests-and-impact-statements-tiau2k6x#clintrial-related-object-8warning
@@ -10970,7 +10970,7 @@
has an @document-id '
- '. But this is not in the text, which is likely incorrect -
+ '. But this is not the text of the related-object, which is likely incorrect - .
diff --git a/src/rp-schematron-base.sch b/src/rp-schematron-base.sch
index 80b59ff84d..6eed72ff5e 100644
--- a/src/rp-schematron-base.sch
+++ b/src/rp-schematron-base.sch
@@ -2026,9 +2026,9 @@
role="error"
id="clintrial-related-object-7"> must have an @xlink:href with a value that does not contain a space character.
- has an @document-id ''. But this is not in the text, which is likely incorrect - .
+ id="clintrial-related-object-8"> has an @document-id ''. But this is not the text of the related-object, which is likely incorrect - .
[clintrial-related-object-7] must have an @xlink:href with a value that does not contain a space character.
- [clintrial-related-object-8] has an @document-id ''. But this is not in the text, which is likely incorrect - .
+ [clintrial-related-object-8] has an @document-id ''. But this is not the text of the related-object, which is likely incorrect - .[clintrial-related-object-11] @source-id value should almost always be one of the subtitles of the Crossref clinical trial registries. "" is not one of the following . Is that correct?
diff --git a/src/rp-schematron.xsl b/src/rp-schematron.xsl
index 279afdc1d5..5cc3b92d8b 100644
--- a/src/rp-schematron.xsl
+++ b/src/rp-schematron.xsl
@@ -7645,9 +7645,9 @@
-
+
-
+ clintrial-related-object-8warning
@@ -7657,7 +7657,7 @@
has an @document-id '
- '. But this is not in the text, which is likely incorrect -
+ '. But this is not the text of the related-object, which is likely incorrect - .
diff --git a/src/schematron.sch b/src/schematron.sch
index 6ef55542b6..dfd946f4ea 100644
--- a/src/schematron.sch
+++ b/src/schematron.sch
@@ -3174,9 +3174,9 @@
id="clintrial-related-object-7"> must have an @xlink:href with a value that does not contain a space character.
has an @document-id ''. But this is not in the text, which is likely incorrect - .
+ id="clintrial-related-object-8"> has an @document-id ''. But this is not the text of the related-object, which is likely incorrect - .
must have an @xlink:href with a value that does not contain a space character.
-
- has an @document-id ''. But this is not in the text, which is likely incorrect - .
+
+ has an @document-id ''. But this is not the text of the related-object, which is likely incorrect - . @source-id value should almost always be one of the subtitles of the Crossref clinical trial registries. "" is not one of the following . Is that correct?
diff --git a/test/xspec/schematron.sch b/test/xspec/schematron.sch
index c6dd046521..bd21b15256 100644
--- a/test/xspec/schematron.sch
+++ b/test/xspec/schematron.sch
@@ -2579,8 +2579,8 @@
must have an @xlink:href with a value that does not contain a space character.
-
- has an @document-id ''. But this is not in the text, which is likely incorrect - .
+
+ has an @document-id ''. But this is not the text of the related-object, which is likely incorrect - . must have an @id in the format 'RO1'. '' does not conform to this convention.
From 1a6b5778cdf6bf8e46619ffaab533eb734f783f7 Mon Sep 17 00:00:00 2001
From: Fred Atherden <43879983+fred-atherden@users.noreply.github.com>
Date: Mon, 17 Feb 2025 10:34:19 +0000
Subject: [PATCH 4/6] Update test cases
---
.../clintrial-related-object-8/clintrial-related-object-8.sch | 4 ++--
.../clintrial-related-object-8/fail.xml | 4 ++--
.../clintrial-related-object-8/pass.xml | 4 ++--
.../clintrial-related-object-8/clintrial-related-object-8.sch | 2 +-
.../clintrial-related-object-8/fail.xml | 4 ++--
.../clintrial-related-object-8/pass.xml | 4 ++--
6 files changed, 11 insertions(+), 11 deletions(-)
diff --git a/test/tests/gen/clintrial-related-object/clintrial-related-object-8/clintrial-related-object-8.sch b/test/tests/gen/clintrial-related-object/clintrial-related-object-8/clintrial-related-object-8.sch
index 4506498d52..8a6869daea 100644
--- a/test/tests/gen/clintrial-related-object/clintrial-related-object-8/clintrial-related-object-8.sch
+++ b/test/tests/gen/clintrial-related-object/clintrial-related-object-8/clintrial-related-object-8.sch
@@ -1363,8 +1363,8 @@
-
- has an @document-id ''. But this is not in the text, which is likely incorrect - .
+
+ has an @document-id ''. But this is not the text of the related-object, which is likely incorrect - .
diff --git a/test/tests/gen/clintrial-related-object/clintrial-related-object-8/fail.xml b/test/tests/gen/clintrial-related-object/clintrial-related-object-8/fail.xml
index 8e78228bdb..f679b3beaa 100644
--- a/test/tests/gen/clintrial-related-object/clintrial-related-object-8/fail.xml
+++ b/test/tests/gen/clintrial-related-object/clintrial-related-object-8/fail.xml
@@ -1,7 +1,7 @@
+Test: assert @document-id = .
+Message: has an @document-id ''. But this is not the text of the related-object, which is likely incorrect - . -->
diff --git a/test/tests/gen/clintrial-related-object/clintrial-related-object-8/pass.xml b/test/tests/gen/clintrial-related-object/clintrial-related-object-8/pass.xml
index 8f894ca6c8..85541a5434 100644
--- a/test/tests/gen/clintrial-related-object/clintrial-related-object-8/pass.xml
+++ b/test/tests/gen/clintrial-related-object/clintrial-related-object-8/pass.xml
@@ -1,7 +1,7 @@
+Test: assert @document-id = .
+Message: has an @document-id ''. But this is not the text of the related-object, which is likely incorrect - . -->
diff --git a/test/tests/rp/clintrial-related-object/clintrial-related-object-8/clintrial-related-object-8.sch b/test/tests/rp/clintrial-related-object/clintrial-related-object-8/clintrial-related-object-8.sch
index fd1883b90a..41fecd51fc 100644
--- a/test/tests/rp/clintrial-related-object/clintrial-related-object-8/clintrial-related-object-8.sch
+++ b/test/tests/rp/clintrial-related-object/clintrial-related-object-8/clintrial-related-object-8.sch
@@ -147,7 +147,7 @@
- [clintrial-related-object-8] has an @document-id ''. But this is not in the text, which is likely incorrect - .
+ [clintrial-related-object-8] has an @document-id ''. But this is not the text of the related-object, which is likely incorrect - .
diff --git a/test/tests/rp/clintrial-related-object/clintrial-related-object-8/fail.xml b/test/tests/rp/clintrial-related-object/clintrial-related-object-8/fail.xml
index d7ab104843..2b17be9c69 100644
--- a/test/tests/rp/clintrial-related-object/clintrial-related-object-8/fail.xml
+++ b/test/tests/rp/clintrial-related-object/clintrial-related-object-8/fail.xml
@@ -1,7 +1,7 @@
+Test: assert @document-id = .
+Message: has an @document-id ''. But this is not the text of the related-object, which is likely incorrect - . -->
diff --git a/test/tests/rp/clintrial-related-object/clintrial-related-object-8/pass.xml b/test/tests/rp/clintrial-related-object/clintrial-related-object-8/pass.xml
index 7bc7186872..dbdce95141 100644
--- a/test/tests/rp/clintrial-related-object/clintrial-related-object-8/pass.xml
+++ b/test/tests/rp/clintrial-related-object/clintrial-related-object-8/pass.xml
@@ -1,7 +1,7 @@
+Test: assert @document-id = .
+Message: has an @document-id ''. But this is not the text of the related-object, which is likely incorrect - . -->
From 2c09239ad55c9cbed48c58ca21c3c7fd053cbcce Mon Sep 17 00:00:00 2001
From: Fred Atherden <43879983+fred-atherden@users.noreply.github.com>
Date: Mon, 17 Feb 2025 10:42:00 +0000
Subject: [PATCH 5/6] Update actual relevant test cases
---
.../clintrial-related-object-8/fail.xml | 2 +-
.../clintrial-related-object-8/pass.xml | 2 +-
.../clintrial-related-object-8/fail.xml | 2 +-
.../clintrial-related-object-8/pass.xml | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/test/tests/gen/clintrial-related-object/clintrial-related-object-8/fail.xml b/test/tests/gen/clintrial-related-object/clintrial-related-object-8/fail.xml
index f679b3beaa..f9a7e0f600 100644
--- a/test/tests/gen/clintrial-related-object/clintrial-related-object-8/fail.xml
+++ b/test/tests/gen/clintrial-related-object/clintrial-related-object-8/fail.xml
@@ -26,7 +26,7 @@ Message: has an @document-id ''. But this is not the text of the related-object
Clinical trial number:
-
bjirpebwivtprbwuip.
+
bjirpebwivtprbwuip.
diff --git a/test/tests/gen/clintrial-related-object/clintrial-related-object-8/pass.xml b/test/tests/gen/clintrial-related-object/clintrial-related-object-8/pass.xml
index 85541a5434..4dd01f10b3 100644
--- a/test/tests/gen/clintrial-related-object/clintrial-related-object-8/pass.xml
+++ b/test/tests/gen/clintrial-related-object/clintrial-related-object-8/pass.xml
@@ -26,7 +26,7 @@ Message: has an @document-id ''. But this is not the text of the related-object
Clinical trial number:
-
NCT02968459.
+
NCT02968459.
diff --git a/test/tests/rp/clintrial-related-object/clintrial-related-object-8/fail.xml b/test/tests/rp/clintrial-related-object/clintrial-related-object-8/fail.xml
index 2b17be9c69..6aca27846f 100644
--- a/test/tests/rp/clintrial-related-object/clintrial-related-object-8/fail.xml
+++ b/test/tests/rp/clintrial-related-object/clintrial-related-object-8/fail.xml
@@ -26,7 +26,7 @@ Message: has an @document-id ''. But this is not the text of the related-object
Clinical trial number:
-
bjirpebwivtprbwuip.
+
bjirpebwivtprbwuip.
diff --git a/test/tests/rp/clintrial-related-object/clintrial-related-object-8/pass.xml b/test/tests/rp/clintrial-related-object/clintrial-related-object-8/pass.xml
index dbdce95141..8d98014c8c 100644
--- a/test/tests/rp/clintrial-related-object/clintrial-related-object-8/pass.xml
+++ b/test/tests/rp/clintrial-related-object/clintrial-related-object-8/pass.xml
@@ -26,7 +26,7 @@ Message: has an @document-id ''. But this is not the text of the related-object
Clinical trial number:
-
NCT02968459.
+
NCT02968459.
From 489f2b9a7c37b4bdb0480c1e4972b51ba7b1f0ea Mon Sep 17 00:00:00 2001
From: Fred Atherden <43879983+fred-atherden@users.noreply.github.com>
Date: Mon, 17 Feb 2025 12:38:57 +0000
Subject: [PATCH 6/6] RP - error for preprint ref w/ volume
---
src/rp-schematron-base.sch | 4 +
src/rp-schematron.sch | 2 +
src/rp-schematron.xsl | 15 ++
.../preprint-ref-volume/fail.xml | 11 ++
.../preprint-ref-volume/pass.xml | 9 +
.../preprint-ref-volume.sch | 157 ++++++++++++++++++
test/xspec/rp-schematron.sch | 2 +
test/xspec/rp-schematron.xspec | 10 ++
8 files changed, 210 insertions(+)
create mode 100644 test/tests/rp/preprint-ref-checks/preprint-ref-volume/fail.xml
create mode 100644 test/tests/rp/preprint-ref-checks/preprint-ref-volume/pass.xml
create mode 100644 test/tests/rp/preprint-ref-checks/preprint-ref-volume/preprint-ref-volume.sch
diff --git a/src/rp-schematron-base.sch b/src/rp-schematron-base.sch
index 6eed72ff5e..a4638891bc 100644
--- a/src/rp-schematron-base.sch
+++ b/src/rp-schematron-base.sch
@@ -579,6 +579,10 @@
This preprint reference () has untagged textual content - . Is it tagged correctly?
+
+ This preprint reference () has a volume - . That information is either tagged incorrectly, or the publication-type is wrong.
diff --git a/src/rp-schematron.sch b/src/rp-schematron.sch
index 47e9b4cb2a..515056f51b 100644
--- a/src/rp-schematron.sch
+++ b/src/rp-schematron.sch
@@ -363,6 +363,8 @@
[preprint-ref-article-title] This preprint reference () has no article-title element.[preprint-ref-text-content] This preprint reference () has untagged textual content - . Is it tagged correctly?
+
+ [preprint-ref-volume] This preprint reference () has a volume - . That information is either tagged incorrectly, or the publication-type is wrong.[preprint-source] Preprint reference () has a source that starts with 'In ', ''. Should that text be moved out of the source? And is it a different type of reference?
diff --git a/src/rp-schematron.xsl b/src/rp-schematron.xsl
index 5cc3b92d8b..7fbae082a7 100644
--- a/src/rp-schematron.xsl
+++ b/src/rp-schematron.xsl
@@ -2885,6 +2885,21 @@
. Is it tagged correctly?
+
+
+
+ preprint-ref-volume
+ error
+
+
+
+ [preprint-ref-volume] This preprint reference (
+
+ ) has a volume -
+
+ . That information is either tagged incorrectly, or the publication-type is wrong.
+
+
diff --git a/test/tests/rp/preprint-ref-checks/preprint-ref-volume/fail.xml b/test/tests/rp/preprint-ref-checks/preprint-ref-volume/fail.xml
new file mode 100644
index 0000000000..874a4a3658
--- /dev/null
+++ b/test/tests/rp/preprint-ref-checks/preprint-ref-volume/fail.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/test/tests/rp/preprint-ref-checks/preprint-ref-volume/pass.xml b/test/tests/rp/preprint-ref-checks/preprint-ref-volume/pass.xml
new file mode 100644
index 0000000000..0f1281e28c
--- /dev/null
+++ b/test/tests/rp/preprint-ref-checks/preprint-ref-volume/pass.xml
@@ -0,0 +1,9 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/test/tests/rp/preprint-ref-checks/preprint-ref-volume/preprint-ref-volume.sch b/test/tests/rp/preprint-ref-checks/preprint-ref-volume/preprint-ref-volume.sch
new file mode 100644
index 0000000000..02dcbcf064
--- /dev/null
+++ b/test/tests/rp/preprint-ref-checks/preprint-ref-volume/preprint-ref-volume.sch
@@ -0,0 +1,157 @@
+
+ eLife reviewed preprint schematron
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ [preprint-ref-volume] This preprint reference () has a volume - . That information is either tagged incorrectly, or the publication-type is wrong.
+
+
+
+
+ mixed-citation[@publication-type='preprint'] must be present.
+
+
+
\ No newline at end of file
diff --git a/test/xspec/rp-schematron.sch b/test/xspec/rp-schematron.sch
index aa903efe90..22b6e2463a 100644
--- a/test/xspec/rp-schematron.sch
+++ b/test/xspec/rp-schematron.sch
@@ -422,6 +422,8 @@
This preprint reference () has no article-title element.This preprint reference () has untagged textual content - . Is it tagged correctly?
+
+ This preprint reference () has a volume - . That information is either tagged incorrectly, or the publication-type is wrong.
diff --git a/test/xspec/rp-schematron.xspec b/test/xspec/rp-schematron.xspec
index 3d2945c83a..57ba54d8c1 100644
--- a/test/xspec/rp-schematron.xspec
+++ b/test/xspec/rp-schematron.xspec
@@ -845,6 +845,16 @@
+
+
+
+
+
+
+
+
+
+