From 9d6a0e2237965ae6f452d09f76ca52480d6b21f5 Mon Sep 17 00:00:00 2001 From: Fred Atherden <43879983+fred-atherden@users.noreply.github.com> Date: Tue, 10 Dec 2024 09:07:37 +0000 Subject: [PATCH] VOR - account for sub-articles in dupe orcid tests --- src/final-JATS-schematron.sch | 2 +- src/final-JATS-schematron.xsl | 33 ++++++++------- src/final-package-JATS-schematron.sch | 2 +- src/pre-JATS-schematron.sch | 2 +- src/pre-JATS-schematron.xsl | 41 ++++++++++--------- src/schematron.sch | 8 ++-- .../orcid-tests/final-orcid-test-3/fail.xml | 2 +- .../final-orcid-test-3/final-orcid-test-3.sch | 4 +- .../orcid-tests/final-orcid-test-3/pass.xml | 2 +- .../gen/orcid-tests/pre-orcid-test-3/fail.xml | 2 +- .../gen/orcid-tests/pre-orcid-test-3/pass.xml | 2 +- .../pre-orcid-test-3/pre-orcid-test-3.sch | 4 +- test/xspec/schematron.sch | 8 ++-- test/xspec/schematron.xspec | 8 ++-- 14 files changed, 63 insertions(+), 57 deletions(-) diff --git a/src/final-JATS-schematron.sch b/src/final-JATS-schematron.sch index 28a2366e87..76cf028450 100644 --- a/src/final-JATS-schematron.sch +++ b/src/final-JATS-schematron.sch @@ -1962,7 +1962,7 @@ - [final-orcid-test-3] 's ORCiD is the same as another author's - . Duplicated ORCiDs are not allowed. If it is clear who the ORCiD belongs to, remove the duplicate. If it is not clear please raise a query with production so that they can raise it with the authors. + [final-orcid-test-3] 's ORCiD is the same as another author's - . Duplicated ORCiDs are not allowed. If it is clear who the ORCiD belongs to, remove the duplicate. If it is not clear please raise a query with production so that they can raise it with the authors. diff --git a/src/final-JATS-schematron.xsl b/src/final-JATS-schematron.xsl index bf3ffd4a57..651166b1d5 100644 --- a/src/final-JATS-schematron.xsl +++ b/src/final-JATS-schematron.xsl @@ -9143,21 +9143,24 @@ - - - - final-orcid-test-3 - error - - - - [final-orcid-test-3] - - 's ORCiD is the same as another author's - - - . Duplicated ORCiDs are not allowed. If it is clear who the ORCiD belongs to, remove the duplicate. If it is not clear please raise a query with production so that they can raise it with the authors. - - + + + + + + final-orcid-test-3 + error + + + + [final-orcid-test-3] + + 's ORCiD is the same as another author's - + + . Duplicated ORCiDs are not allowed. If it is clear who the ORCiD belongs to, remove the duplicate. If it is not clear please raise a query with production so that they can raise it with the authors. + + + diff --git a/src/final-package-JATS-schematron.sch b/src/final-package-JATS-schematron.sch index 7955264ea7..c1825c41fa 100644 --- a/src/final-package-JATS-schematron.sch +++ b/src/final-package-JATS-schematron.sch @@ -1968,7 +1968,7 @@ - 's ORCiD is the same as another author's - . Duplicated ORCiDs are not allowed. If it is clear who the ORCiD belongs to, remove the duplicate. If it is not clear please raise a query with production so that they can raise it with the authors. + 's ORCiD is the same as another author's - . Duplicated ORCiDs are not allowed. If it is clear who the ORCiD belongs to, remove the duplicate. If it is not clear please raise a query with production so that they can raise it with the authors. diff --git a/src/pre-JATS-schematron.sch b/src/pre-JATS-schematron.sch index efa84a5017..55e86d4e2d 100644 --- a/src/pre-JATS-schematron.sch +++ b/src/pre-JATS-schematron.sch @@ -1905,7 +1905,7 @@ [orcid-test-2] contrib-id[@contrib-id-type="orcid"] must contain a valid ORCID URL in the format 'https://orcid.org/0000-0000-0000-0000' - [pre-orcid-test-3] 's ORCiD is the same as another author's - . Duplicated ORCiDs are not allowed. If it is clear who the ORCiD belongs to, remove the duplicate. If it is not clear please add an author query - 'This ORCiD - - is associated with authors. Please confirm which author this ORCiD belongs to.'. + [pre-orcid-test-3] 's ORCiD is the same as another author's - . Duplicated ORCiDs are not allowed. If it is clear who the ORCiD belongs to, remove the duplicate. If it is not clear please add an author query - 'This ORCiD - - is associated with authors. Please confirm which author this ORCiD belongs to.'. diff --git a/src/pre-JATS-schematron.xsl b/src/pre-JATS-schematron.xsl index e3aa4cf665..53d1729f6d 100644 --- a/src/pre-JATS-schematron.xsl +++ b/src/pre-JATS-schematron.xsl @@ -9034,25 +9034,28 @@ - - - - pre-orcid-test-3 - warning - - - - [pre-orcid-test-3] - - 's ORCiD is the same as another author's - - - . Duplicated ORCiDs are not allowed. If it is clear who the ORCiD belongs to, remove the duplicate. If it is not clear please add an author query - 'This ORCiD - - - - is associated with - - authors. Please confirm which author this ORCiD belongs to.'. - - + + + + + + pre-orcid-test-3 + warning + + + + [pre-orcid-test-3] + + 's ORCiD is the same as another author's - + + . Duplicated ORCiDs are not allowed. If it is clear who the ORCiD belongs to, remove the duplicate. If it is not clear please add an author query - 'This ORCiD - + + - is associated with + + authors. Please confirm which author this ORCiD belongs to.'. + + + diff --git a/src/schematron.sch b/src/schematron.sch index 72547a088d..315d9118fd 100644 --- a/src/schematron.sch +++ b/src/schematron.sch @@ -2551,13 +2551,13 @@ role="error" id="orcid-test-2">contrib-id[@contrib-id-type="orcid"] must contain a valid ORCID URL in the format 'https://orcid.org/0000-0000-0000-0000' - 's ORCiD is the same as another author's - . Duplicated ORCiDs are not allowed. If it is clear who the ORCiD belongs to, remove the duplicate. If it is not clear please add an author query - 'This ORCiD - - is associated with authors. Please confirm which author this ORCiD belongs to.'. + id="pre-orcid-test-3">'s ORCiD is the same as another author's - . Duplicated ORCiDs are not allowed. If it is clear who the ORCiD belongs to, remove the duplicate. If it is not clear please add an author query - 'This ORCiD - - is associated with authors. Please confirm which author this ORCiD belongs to.'. - 's ORCiD is the same as another author's - . Duplicated ORCiDs are not allowed. If it is clear who the ORCiD belongs to, remove the duplicate. If it is not clear please raise a query with production so that they can raise it with the authors. + id="final-orcid-test-3">'s ORCiD is the same as another author's - . Duplicated ORCiDs are not allowed. If it is clear who the ORCiD belongs to, remove the duplicate. If it is not clear please raise a query with production so that they can raise it with the authors. diff --git a/test/tests/gen/orcid-tests/final-orcid-test-3/fail.xml b/test/tests/gen/orcid-tests/final-orcid-test-3/fail.xml index 7003e767b5..db51220582 100644 --- a/test/tests/gen/orcid-tests/final-orcid-test-3/fail.xml +++ b/test/tests/gen/orcid-tests/final-orcid-test-3/fail.xml @@ -1,6 +1,6 @@
diff --git a/test/tests/gen/orcid-tests/final-orcid-test-3/final-orcid-test-3.sch b/test/tests/gen/orcid-tests/final-orcid-test-3/final-orcid-test-3.sch index b3ab1c68c4..0672483b9d 100644 --- a/test/tests/gen/orcid-tests/final-orcid-test-3/final-orcid-test-3.sch +++ b/test/tests/gen/orcid-tests/final-orcid-test-3/final-orcid-test-3.sch @@ -1363,8 +1363,8 @@ - - 's ORCiD is the same as another author's - . Duplicated ORCiDs are not allowed. If it is clear who the ORCiD belongs to, remove the duplicate. If it is not clear please raise a query with production so that they can raise it with the authors. + + 's ORCiD is the same as another author's - . Duplicated ORCiDs are not allowed. If it is clear who the ORCiD belongs to, remove the duplicate. If it is not clear please raise a query with production so that they can raise it with the authors. diff --git a/test/tests/gen/orcid-tests/final-orcid-test-3/pass.xml b/test/tests/gen/orcid-tests/final-orcid-test-3/pass.xml index 985254eb40..fb460e3474 100644 --- a/test/tests/gen/orcid-tests/final-orcid-test-3/pass.xml +++ b/test/tests/gen/orcid-tests/final-orcid-test-3/pass.xml @@ -1,6 +1,6 @@
diff --git a/test/tests/gen/orcid-tests/pre-orcid-test-3/fail.xml b/test/tests/gen/orcid-tests/pre-orcid-test-3/fail.xml index d2ca79a4bc..0466e299cf 100644 --- a/test/tests/gen/orcid-tests/pre-orcid-test-3/fail.xml +++ b/test/tests/gen/orcid-tests/pre-orcid-test-3/fail.xml @@ -1,6 +1,6 @@
diff --git a/test/tests/gen/orcid-tests/pre-orcid-test-3/pass.xml b/test/tests/gen/orcid-tests/pre-orcid-test-3/pass.xml index 5d38b4c72e..a7977aef50 100644 --- a/test/tests/gen/orcid-tests/pre-orcid-test-3/pass.xml +++ b/test/tests/gen/orcid-tests/pre-orcid-test-3/pass.xml @@ -1,6 +1,6 @@
diff --git a/test/tests/gen/orcid-tests/pre-orcid-test-3/pre-orcid-test-3.sch b/test/tests/gen/orcid-tests/pre-orcid-test-3/pre-orcid-test-3.sch index 30e3768e19..e731081219 100644 --- a/test/tests/gen/orcid-tests/pre-orcid-test-3/pre-orcid-test-3.sch +++ b/test/tests/gen/orcid-tests/pre-orcid-test-3/pre-orcid-test-3.sch @@ -1363,8 +1363,8 @@ - - 's ORCiD is the same as another author's - . Duplicated ORCiDs are not allowed. If it is clear who the ORCiD belongs to, remove the duplicate. If it is not clear please add an author query - 'This ORCiD - - is associated with authors. Please confirm which author this ORCiD belongs to.'. + + 's ORCiD is the same as another author's - . Duplicated ORCiDs are not allowed. If it is clear who the ORCiD belongs to, remove the duplicate. If it is not clear please add an author query - 'This ORCiD - - is associated with authors. Please confirm which author this ORCiD belongs to.'. diff --git a/test/xspec/schematron.sch b/test/xspec/schematron.sch index f2c5a422a6..88d81e09c6 100644 --- a/test/xspec/schematron.sch +++ b/test/xspec/schematron.sch @@ -2146,11 +2146,11 @@ contrib-id[@contrib-id-type="orcid"] must contain a valid ORCID URL in the format 'https://orcid.org/0000-0000-0000-0000' - - 's ORCiD is the same as another author's - . Duplicated ORCiDs are not allowed. If it is clear who the ORCiD belongs to, remove the duplicate. If it is not clear please add an author query - 'This ORCiD - - is associated with authors. Please confirm which author this ORCiD belongs to.'. + + 's ORCiD is the same as another author's - . Duplicated ORCiDs are not allowed. If it is clear who the ORCiD belongs to, remove the duplicate. If it is not clear please add an author query - 'This ORCiD - - is associated with authors. Please confirm which author this ORCiD belongs to.'. - - 's ORCiD is the same as another author's - . Duplicated ORCiDs are not allowed. If it is clear who the ORCiD belongs to, remove the duplicate. If it is not clear please raise a query with production so that they can raise it with the authors. + + 's ORCiD is the same as another author's - . Duplicated ORCiDs are not allowed. If it is clear who the ORCiD belongs to, remove the duplicate. If it is not clear please raise a query with production so that they can raise it with the authors. diff --git a/test/xspec/schematron.xspec b/test/xspec/schematron.xspec index 679b3152c3..db6ccc007b 100644 --- a/test/xspec/schematron.xspec +++ b/test/xspec/schematron.xspec @@ -1811,22 +1811,22 @@ - + - + - + - +