From 888043a1205c29b27f383eb3a9ebaa88d36475f5 Mon Sep 17 00:00:00 2001
From: Fred Atherden <43879983+fred-atherden@users.noreply.github.com>
Date: Mon, 2 Dec 2024 09:16:24 +0000
Subject: [PATCH] RP - warning for journal refs with editors
---
src/rp-schematron-base.sch | 4 +
src/rp-schematron.sch | 2 +
src/rp-schematron.xsl | 13 ++
.../journal-ref-editor/fail.xml | 11 ++
.../journal-ref-editor/journal-ref-editor.sch | 157 ++++++++++++++++++
.../journal-ref-editor/pass.xml | 11 ++
test/xspec/rp-schematron.sch | 2 +
test/xspec/rp-schematron.xspec | 10 ++
8 files changed, 210 insertions(+)
create mode 100644 test/tests/rp/journal-ref-checks/journal-ref-editor/fail.xml
create mode 100644 test/tests/rp/journal-ref-checks/journal-ref-editor/journal-ref-editor.sch
create mode 100644 test/tests/rp/journal-ref-checks/journal-ref-editor/pass.xml
diff --git a/src/rp-schematron-base.sch b/src/rp-schematron-base.sch
index bab7890e0a..779aba7287 100644
--- a/src/rp-schematron-base.sch
+++ b/src/rp-schematron-base.sch
@@ -454,6 +454,10 @@
This journal reference () has untagged textual content - . Is it tagged correctly?
+
+ This journal reference () has an editor person-group. This info isn;t typically included in journal refs. Is it really a journal ref? Does it really contain editors?
diff --git a/src/rp-schematron.sch b/src/rp-schematron.sch
index d51d97032f..780952b2bb 100644
--- a/src/rp-schematron.sch
+++ b/src/rp-schematron.sch
@@ -296,6 +296,8 @@
[journal-ref-article-title] This journal reference () has no article-title element.
[journal-ref-text-content] This journal reference () has untagged textual content - . Is it tagged correctly?
+
+ [journal-ref-editor] This journal reference () has an editor person-group. This info isn;t typically included in journal refs. Is it really a journal ref? Does it really contain editors?
diff --git a/src/rp-schematron.xsl b/src/rp-schematron.xsl
index d7bf0e19d2..2461211763 100644
--- a/src/rp-schematron.xsl
+++ b/src/rp-schematron.xsl
@@ -2239,6 +2239,19 @@
. Is it tagged correctly?
+
+
+
+ journal-ref-editor
+ warning
+
+
+
+ [journal-ref-editor] This journal reference (
+
+ ) has an editor person-group. This info isn;t typically included in journal refs. Is it really a journal ref? Does it really contain editors?
+
+
diff --git a/test/tests/rp/journal-ref-checks/journal-ref-editor/fail.xml b/test/tests/rp/journal-ref-checks/journal-ref-editor/fail.xml
new file mode 100644
index 0000000000..aeb5559f3c
--- /dev/null
+++ b/test/tests/rp/journal-ref-checks/journal-ref-editor/fail.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/test/tests/rp/journal-ref-checks/journal-ref-editor/journal-ref-editor.sch b/test/tests/rp/journal-ref-checks/journal-ref-editor/journal-ref-editor.sch
new file mode 100644
index 0000000000..f7f66aeb92
--- /dev/null
+++ b/test/tests/rp/journal-ref-checks/journal-ref-editor/journal-ref-editor.sch
@@ -0,0 +1,157 @@
+
+ eLife reviewed preprint schematron
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ [journal-ref-editor] This journal reference () has an editor person-group. This info isn;t typically included in journal refs. Is it really a journal ref? Does it really contain editors?
+
+
+
+
+ mixed-citation[@publication-type='journal'] must be present.
+
+
+
\ No newline at end of file
diff --git a/test/tests/rp/journal-ref-checks/journal-ref-editor/pass.xml b/test/tests/rp/journal-ref-checks/journal-ref-editor/pass.xml
new file mode 100644
index 0000000000..25ec3cb4b6
--- /dev/null
+++ b/test/tests/rp/journal-ref-checks/journal-ref-editor/pass.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/test/xspec/rp-schematron.sch b/test/xspec/rp-schematron.sch
index a72bb264ee..601802fea4 100644
--- a/test/xspec/rp-schematron.sch
+++ b/test/xspec/rp-schematron.sch
@@ -341,6 +341,8 @@
This journal reference () has no article-title element.
This journal reference () has untagged textual content - . Is it tagged correctly?
+
+ This journal reference () has an editor person-group. This info isn;t typically included in journal refs. Is it really a journal ref? Does it really contain editors?
diff --git a/test/xspec/rp-schematron.xspec b/test/xspec/rp-schematron.xspec
index 6c35f418e2..2b045a7acf 100644
--- a/test/xspec/rp-schematron.xspec
+++ b/test/xspec/rp-schematron.xspec
@@ -587,6 +587,16 @@
+
+
+
+
+
+
+
+
+
+