From 794e62efb8ac7b90b1627b88e0989931bcc2442f Mon Sep 17 00:00:00 2001
From: Fred Atherden <43879983+fred-atherden@users.noreply.github.com>
Date: Tue, 26 Nov 2024 13:23:19 +0000
Subject: [PATCH 1/2] RP - tweak regex in journal-source-3
---
src/rp-schematron-base.sch | 2 +-
src/rp-schematron.sch | 2 +-
src/rp-schematron.xsl | 4 ++--
test/tests/rp/journal-source-checks/journal-source-3/fail.xml | 2 +-
.../journal-source-3/journal-source-3.sch | 2 +-
test/tests/rp/journal-source-checks/journal-source-3/pass.xml | 2 +-
test/xspec/rp-schematron.sch | 2 +-
7 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/src/rp-schematron-base.sch b/src/rp-schematron-base.sch
index c2c40c57b1..37d88986fc 100644
--- a/src/rp-schematron-base.sch
+++ b/src/rp-schematron-base.sch
@@ -468,7 +468,7 @@
role="warning"
id="journal-source-2">Journal reference () has a source that starts with a roman numeral. Is part of the article-title captured in source? Source = .
- Journal reference () has the following source, ''. Should it be captured as a conference proceeding instead?
diff --git a/src/rp-schematron.sch b/src/rp-schematron.sch
index 4b078586c6..84748073d7 100644
--- a/src/rp-schematron.sch
+++ b/src/rp-schematron.sch
@@ -304,7 +304,7 @@
[journal-source-2] Journal reference () has a source that starts with a roman numeral. Is part of the article-title captured in source? Source = .
- [journal-source-3] Journal reference () has the following source, ''. Should it be captured as a conference proceeding instead?
+ [journal-source-3] Journal reference () has the following source, ''. Should it be captured as a conference proceeding instead?
diff --git a/src/rp-schematron.xsl b/src/rp-schematron.xsl
index 669ba4509e..745a35c428 100644
--- a/src/rp-schematron.xsl
+++ b/src/rp-schematron.xsl
@@ -2271,8 +2271,8 @@
-
-
+
+
journal-source-3
warning
diff --git a/test/tests/rp/journal-source-checks/journal-source-3/fail.xml b/test/tests/rp/journal-source-checks/journal-source-3/fail.xml
index 98bf626335..d10c485f66 100644
--- a/test/tests/rp/journal-source-checks/journal-source-3/fail.xml
+++ b/test/tests/rp/journal-source-checks/journal-source-3/fail.xml
@@ -1,6 +1,6 @@
diff --git a/test/tests/rp/journal-source-checks/journal-source-3/journal-source-3.sch b/test/tests/rp/journal-source-checks/journal-source-3/journal-source-3.sch
index 16c8f6d797..e668fa9ac5 100644
--- a/test/tests/rp/journal-source-checks/journal-source-3/journal-source-3.sch
+++ b/test/tests/rp/journal-source-checks/journal-source-3/journal-source-3.sch
@@ -147,7 +147,7 @@
- [journal-source-3] Journal reference () has the following source, ''. Should it be captured as a conference proceeding instead?
+ [journal-source-3] Journal reference () has the following source, ''. Should it be captured as a conference proceeding instead?
diff --git a/test/tests/rp/journal-source-checks/journal-source-3/pass.xml b/test/tests/rp/journal-source-checks/journal-source-3/pass.xml
index 96fc998fa0..11085f30ca 100644
--- a/test/tests/rp/journal-source-checks/journal-source-3/pass.xml
+++ b/test/tests/rp/journal-source-checks/journal-source-3/pass.xml
@@ -1,6 +1,6 @@
diff --git a/test/xspec/rp-schematron.sch b/test/xspec/rp-schematron.sch
index c4399ada0f..6f344b5adc 100644
--- a/test/xspec/rp-schematron.sch
+++ b/test/xspec/rp-schematron.sch
@@ -352,7 +352,7 @@
Journal reference () has a source that starts with a roman numeral. Is part of the article-title captured in source? Source = .
- Journal reference () has the following source, ''. Should it be captured as a conference proceeding instead?
+ Journal reference () has the following source, ''. Should it be captured as a conference proceeding instead?
From 7030d29fa46b7c5daec4c623ac890864d067751f Mon Sep 17 00:00:00 2001
From: Fred Atherden <43879983+fred-atherden@users.noreply.github.com>
Date: Tue, 26 Nov 2024 13:32:13 +0000
Subject: [PATCH 2/2] RP - ignore Editor affs in aff-has-wrap-no-id
---
src/rp-schematron-base.sch | 2 +-
src/rp-schematron.sch | 2 +-
src/rp-schematron.xsl | 4 ++--
.../aff-has-wrap-no-id/aff-has-wrap-no-id.sch | 2 +-
test/tests/rp/affiliation-checks/aff-has-wrap-no-id/fail.xml | 2 +-
test/tests/rp/affiliation-checks/aff-has-wrap-no-id/pass.xml | 2 +-
test/xspec/rp-schematron.sch | 2 +-
7 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/src/rp-schematron-base.sch b/src/rp-schematron-base.sch
index 37d88986fc..d48ab3ce7d 100644
--- a/src/rp-schematron-base.sch
+++ b/src/rp-schematron-base.sch
@@ -389,7 +389,7 @@
role="warning"
id="aff-no-wrap">Affiliation doesn't have an institution-wrap element (the container for institution name and id). Is that correct?
- aff contains institution-wrap, but that institution-wrap does not have a child institution-id. institution-wrap should only be used when there is an institution-id for the institution.
diff --git a/src/rp-schematron.sch b/src/rp-schematron.sch
index 84748073d7..13d372e985 100644
--- a/src/rp-schematron.sch
+++ b/src/rp-schematron.sch
@@ -263,7 +263,7 @@
[aff-no-wrap] Affiliation doesn't have an institution-wrap element (the container for institution name and id). Is that correct?
- [aff-has-wrap-no-id] aff contains institution-wrap, but that institution-wrap does not have a child institution-id. institution-wrap should only be used when there is an institution-id for the institution.
+ [aff-has-wrap-no-id] aff contains institution-wrap, but that institution-wrap does not have a child institution-id. institution-wrap should only be used when there is an institution-id for the institution.
[aff-has-wrap-no-inst] aff contains institution-wrap, but that institution-wrap does not have a child institution.
diff --git a/src/rp-schematron.xsl b/src/rp-schematron.xsl
index 745a35c428..4f8f58eac4 100644
--- a/src/rp-schematron.xsl
+++ b/src/rp-schematron.xsl
@@ -2013,8 +2013,8 @@
-
-
+
+
aff-has-wrap-no-id
error
diff --git a/test/tests/rp/affiliation-checks/aff-has-wrap-no-id/aff-has-wrap-no-id.sch b/test/tests/rp/affiliation-checks/aff-has-wrap-no-id/aff-has-wrap-no-id.sch
index a329cc3a8b..82c5b39db0 100644
--- a/test/tests/rp/affiliation-checks/aff-has-wrap-no-id/aff-has-wrap-no-id.sch
+++ b/test/tests/rp/affiliation-checks/aff-has-wrap-no-id/aff-has-wrap-no-id.sch
@@ -147,7 +147,7 @@
- [aff-has-wrap-no-id] aff contains institution-wrap, but that institution-wrap does not have a child institution-id. institution-wrap should only be used when there is an institution-id for the institution.
+ [aff-has-wrap-no-id] aff contains institution-wrap, but that institution-wrap does not have a child institution-id. institution-wrap should only be used when there is an institution-id for the institution.
diff --git a/test/tests/rp/affiliation-checks/aff-has-wrap-no-id/fail.xml b/test/tests/rp/affiliation-checks/aff-has-wrap-no-id/fail.xml
index f97d649b84..e1c0aeb90e 100644
--- a/test/tests/rp/affiliation-checks/aff-has-wrap-no-id/fail.xml
+++ b/test/tests/rp/affiliation-checks/aff-has-wrap-no-id/fail.xml
@@ -1,6 +1,6 @@
diff --git a/test/tests/rp/affiliation-checks/aff-has-wrap-no-id/pass.xml b/test/tests/rp/affiliation-checks/aff-has-wrap-no-id/pass.xml
index 50cbe209fd..0f3447b3ab 100644
--- a/test/tests/rp/affiliation-checks/aff-has-wrap-no-id/pass.xml
+++ b/test/tests/rp/affiliation-checks/aff-has-wrap-no-id/pass.xml
@@ -1,6 +1,6 @@
diff --git a/test/xspec/rp-schematron.sch b/test/xspec/rp-schematron.sch
index 6f344b5adc..d5722eeba0 100644
--- a/test/xspec/rp-schematron.sch
+++ b/test/xspec/rp-schematron.sch
@@ -298,7 +298,7 @@
Affiliation doesn't have an institution-wrap element (the container for institution name and id). Is that correct?
- aff contains institution-wrap, but that institution-wrap does not have a child institution-id. institution-wrap should only be used when there is an institution-id for the institution.
+ aff contains institution-wrap, but that institution-wrap does not have a child institution-id. institution-wrap should only be used when there is an institution-id for the institution.
aff contains institution-wrap, but that institution-wrap does not have a child institution.