From 6a90afa0f16c082e6d87ff67747b9dc3eb74ae35 Mon Sep 17 00:00:00 2001
From: Fred Atherden <43879983+fred-atherden@users.noreply.github.com>
Date: Mon, 25 Nov 2024 16:25:21 +0000
Subject: [PATCH] RP - add warnings for confproc refs
---
src/rp-schematron-base.sch | 8 +
src/rp-schematron.sch | 4 +
src/rp-schematron.xsl | 30 ++++
.../book-source-3/book-source-3.sch | 157 +++++++++++++++++
.../book-source-3/fail.xml | 13 ++
.../book-source-3/pass.xml | 13 ++
.../journal-source-3/fail.xml | 13 ++
.../journal-source-3/journal-source-3.sch | 158 ++++++++++++++++++
.../journal-source-3/pass.xml | 13 ++
test/xspec/rp-schematron.sch | 4 +
test/xspec/rp-schematron.xspec | 20 +++
11 files changed, 433 insertions(+)
create mode 100644 test/tests/rp/book-ref-source-checks/book-source-3/book-source-3.sch
create mode 100644 test/tests/rp/book-ref-source-checks/book-source-3/fail.xml
create mode 100644 test/tests/rp/book-ref-source-checks/book-source-3/pass.xml
create mode 100644 test/tests/rp/journal-source-checks/journal-source-3/fail.xml
create mode 100644 test/tests/rp/journal-source-checks/journal-source-3/journal-source-3.sch
create mode 100644 test/tests/rp/journal-source-checks/journal-source-3/pass.xml
diff --git a/src/rp-schematron-base.sch b/src/rp-schematron-base.sch
index 4ab9c427ba..88a537fe63 100644
--- a/src/rp-schematron-base.sch
+++ b/src/rp-schematron-base.sch
@@ -459,6 +459,10 @@
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?
@@ -506,6 +510,10 @@
The source in book reference () contains '. In: ' - . Are the details captured correctly?
+
+ Book 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 c10466b84a..273f6029cc 100644
--- a/src/rp-schematron.sch
+++ b/src/rp-schematron.sch
@@ -299,6 +299,8 @@
[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?
@@ -322,6 +324,8 @@
[book-source-1] The source in book reference () contains 'chapter' - . Are the details captured correctly?
[book-source-2] The source in book reference () contains '. In: ' - . Are the details captured correctly?
+
+ [book-source-3] Book 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 2795ef91b9..9a11cf7ef8 100644
--- a/src/rp-schematron.xsl
+++ b/src/rp-schematron.xsl
@@ -2248,6 +2248,21 @@
.
+
+
+
+ journal-source-3
+ warning
+
+
+
+ [journal-source-3] Journal reference (
+
+ ) has the following source, '
+
+ '. Should it be captured as a conference proceeding instead?
+
+
@@ -2410,6 +2425,21 @@
. Are the details captured correctly?
+
+
+
+ book-source-3
+ warning
+
+
+
+ [book-source-3] Book reference (
+
+ ) has the following source, '
+
+ '. Should it be captured as a conference proceeding instead?
+
+
diff --git a/test/tests/rp/book-ref-source-checks/book-source-3/book-source-3.sch b/test/tests/rp/book-ref-source-checks/book-source-3/book-source-3.sch
new file mode 100644
index 0000000000..5870f534ca
--- /dev/null
+++ b/test/tests/rp/book-ref-source-checks/book-source-3/book-source-3.sch
@@ -0,0 +1,157 @@
+
+ eLife reviewed preprint schematron
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ [book-source-3] Book reference () has the following source, ''. Should it be captured as a conference proceeding instead?
+
+
+
+
+ mixed-citation[@publication-type='book']/source must be present.
+
+
+
\ No newline at end of file
diff --git a/test/tests/rp/book-ref-source-checks/book-source-3/fail.xml b/test/tests/rp/book-ref-source-checks/book-source-3/fail.xml
new file mode 100644
index 0000000000..012c5d1403
--- /dev/null
+++ b/test/tests/rp/book-ref-source-checks/book-source-3/fail.xml
@@ -0,0 +1,13 @@
+
+
+
+
+ [
+
+
+
+ ]
+
+
\ No newline at end of file
diff --git a/test/tests/rp/book-ref-source-checks/book-source-3/pass.xml b/test/tests/rp/book-ref-source-checks/book-source-3/pass.xml
new file mode 100644
index 0000000000..859623ec91
--- /dev/null
+++ b/test/tests/rp/book-ref-source-checks/book-source-3/pass.xml
@@ -0,0 +1,13 @@
+
+
+
+
+ [
+
+
+
+ ]
+
+
\ No newline at end of file
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
new file mode 100644
index 0000000000..98bf626335
--- /dev/null
+++ b/test/tests/rp/journal-source-checks/journal-source-3/fail.xml
@@ -0,0 +1,13 @@
+
+
+
+
+ [
+
+
+
+ ]
+
+
\ No newline at end of file
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
new file mode 100644
index 0000000000..16c8f6d797
--- /dev/null
+++ b/test/tests/rp/journal-source-checks/journal-source-3/journal-source-3.sch
@@ -0,0 +1,158 @@
+
+ eLife reviewed preprint schematron
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ [journal-source-3] Journal reference () has the following source, ''. Should it be captured as a conference proceeding instead?
+
+
+
+
+ mixed-citation[@publication-type='journal']/source must be present.
+
+
+
\ No newline at end of file
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
new file mode 100644
index 0000000000..96fc998fa0
--- /dev/null
+++ b/test/tests/rp/journal-source-checks/journal-source-3/pass.xml
@@ -0,0 +1,13 @@
+
+
+
+
+ [
+
+
+
+ ]
+
+
\ No newline at end of file
diff --git a/test/xspec/rp-schematron.sch b/test/xspec/rp-schematron.sch
index 2e689d7535..5496de00a8 100644
--- a/test/xspec/rp-schematron.sch
+++ b/test/xspec/rp-schematron.sch
@@ -347,6 +347,8 @@
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?
@@ -377,6 +379,8 @@
The source in book reference () contains 'chapter' - . Are the details captured correctly?
The source in book reference () contains '. In: ' - . Are the details captured correctly?
+
+ Book reference () has the following source, ''. Should it be captured as a conference proceeding instead?
diff --git a/test/xspec/rp-schematron.xspec b/test/xspec/rp-schematron.xspec
index 86b70f6bcb..db1a687e02 100644
--- a/test/xspec/rp-schematron.xspec
+++ b/test/xspec/rp-schematron.xspec
@@ -589,6 +589,16 @@
+
+
+
+
+
+
+
+
+
+
@@ -685,6 +695,16 @@
+
+
+
+
+
+
+
+
+
+