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 @@ + + + + + + + + + +