From 34fdf907a09912b49902dd737cc5e51f840b6206 Mon Sep 17 00:00:00 2001
From: Fred Atherden <43879983+fred-atherden@users.noreply.github.com>
Date: Thu, 28 Nov 2024 09:15:50 +0000
Subject: [PATCH] RP - add sub-article title checks
Permit only certain titles, depending on the article-type for that sub-article
---
src/rp-schematron-base.sch | 18 +++
src/rp-schematron.sch | 10 ++
src/rp-schematron.xsl | 211 ++++++++++++++++++++++-----------
test/xspec/rp-schematron.sch | 16 +++
test/xspec/rp-schematron.xspec | 32 +++++
5 files changed, 215 insertions(+), 72 deletions(-)
diff --git a/src/rp-schematron-base.sch b/src/rp-schematron-base.sch
index d48ab3ce7d..bab7890e0a 100644
--- a/src/rp-schematron-base.sch
+++ b/src/rp-schematron-base.sch
@@ -1872,6 +1872,24 @@
+
+
+
+
+ The title of an type sub-article should be 'eLife Assessment'. This one is:
+
+ The title of a type sub-article should be in one of the following formats: 'Reviewer #0 (public review)' or 'Joint public review'. This one is:
+
+ The title of a type sub-article should be 'Author response'. This one is:
+
+
+
[ar-bold-image] The bold text in a label preceding an image in the author response must be in the format 'Author response image 1.' or 'Author response table 1.' - this one is not -
+
+
+
+ [sub-article-title-check-1] The title of an type sub-article should be 'eLife Assessment'. This one is:
+
+ [sub-article-title-check-2] The title of a type sub-article should be in one of the following formats: 'Reviewer #0 (public review)' or 'Joint public review'. This one is:
+
+ [sub-article-title-check-3] The title of a type sub-article should be 'Author response'. This one is:
+
+
[arxiv-journal-id] arXiv preprints must have a <journal-id journal-id-type="publisher-id"> element with the value 'arXiv'.
diff --git a/src/rp-schematron.xsl b/src/rp-schematron.xsl
index 4f8f58eac4..d7bf0e19d2 100644
--- a/src/rp-schematron.xsl
+++ b/src/rp-schematron.xsl
@@ -1202,6 +1202,15 @@
+
+
+
+
+ sub-article-title-checks-pattern
+ sub-article-title-checks-pattern
+
+
+
@@ -1210,7 +1219,7 @@
arxiv-journal-meta-checks-pattern
-
+
@@ -1219,7 +1228,7 @@
arxiv-doi-checks-pattern
-
+
@@ -1228,7 +1237,7 @@
res-square-journal-meta-checks-pattern
-
+
@@ -1237,7 +1246,7 @@
res-square-doi-checks-pattern
-
+
@@ -1246,7 +1255,7 @@
psyarxiv-journal-meta-checks-pattern
-
+
@@ -1255,7 +1264,7 @@
psyarxiv-doi-checks-pattern
-
+
@@ -1264,7 +1273,7 @@
osf-journal-meta-checks-pattern
-
+
@@ -1273,7 +1282,7 @@
osf-doi-checks-pattern
-
+
@@ -1282,7 +1291,7 @@
ecoevorxiv-journal-meta-checks-pattern
-
+
@@ -1291,7 +1300,7 @@
ecoevorxiv-doi-checks-pattern
-
+
@@ -1300,7 +1309,7 @@
authorea-journal-meta-checks-pattern
-
+
@@ -1309,7 +1318,7 @@
authorea-doi-checks-pattern
-
+
@@ -6840,9 +6849,67 @@
+
+
+
+
+
+
+
+ sub-article-title-check-1
+ error
+
+
+
+ [sub-article-title-check-1] The title of an
+
+ type sub-article should be 'eLife Assessment'. This one is:
+
+
+
+
+
+
+
+
+ sub-article-title-check-2
+ error
+
+
+
+ [sub-article-title-check-2] The title of a
+
+ type sub-article should be in one of the following formats: 'Reviewer #0 (public review)' or 'Joint public review'. This one is:
+
+
+
+
+
+
+
+
+ sub-article-title-check-3
+ error
+
+
+
+ [sub-article-title-check-3] The title of a
+
+ type sub-article should be 'Author response'. This one is:
+
+
+
+
+
+
+
+
+
+
+
-
+
@@ -6914,15 +6981,15 @@
-
+
-
-
-
+
+
+
-
+
@@ -6940,15 +7007,15 @@
-
+
-
-
-
+
+
+
-
+
@@ -7020,15 +7087,15 @@
-
+
-
-
-
+
+
+
-
+
@@ -7046,15 +7113,15 @@
-
+
-
-
-
+
+
+
-
+
@@ -7112,15 +7179,15 @@
-
+
-
-
-
+
+
+
-
+
@@ -7138,15 +7205,15 @@
-
+
-
-
-
+
+
+
-
+
@@ -7204,15 +7271,15 @@
-
+
-
-
-
+
+
+
-
+
@@ -7230,15 +7297,15 @@
-
+
-
-
-
+
+
+
-
+
@@ -7296,15 +7363,15 @@
-
+
-
-
-
+
+
+
-
+
@@ -7322,15 +7389,15 @@
-
+
-
-
-
+
+
+
-
+
@@ -7388,15 +7455,15 @@
-
+
-
-
-
+
+
+
-
+
@@ -7414,10 +7481,10 @@
-
+
-
-
-
+
+
+
\ No newline at end of file
diff --git a/test/xspec/rp-schematron.sch b/test/xspec/rp-schematron.sch
index d5722eeba0..a72bb264ee 100644
--- a/test/xspec/rp-schematron.sch
+++ b/test/xspec/rp-schematron.sch
@@ -1363,6 +1363,21 @@
+
+
+
+
+ The title of an type sub-article should be 'eLife Assessment'. This one is:
+
+
+ The title of a type sub-article should be in one of the following formats: 'Reviewer #0 (public review)' or 'Joint public review'. This one is:
+
+
+ The title of a type sub-article should be 'Author response'. This one is:
+
+
+
+
arXiv preprints must have a <journal-id journal-id-type="publisher-id"> element with the value 'arXiv'.
@@ -1575,6 +1590,7 @@
sub-article[@article-type='editor-report']/front-stub/kwd-group[@kwd-group-type='evidence-strength']/kwd must be present.
sub-article[@article-type='editor-report']/body/p[1]//bold must be present.
sub-article[@article-type='author-comment']/body//bold[not(preceding-sibling::text() or preceding-sibling::*) and (parent::p/following-sibling::*[1]/ext-link/inline-graphic or parent::p/following-sibling::*[2]/ext-link/inline-graphic)] must be present.
+ sub-article/front-stub/title-group/article-title must be present.
article/front/journal-meta[lower-case(journal-id[1])='arxiv'] must be present.
article/front[journal-meta[lower-case(journal-id[1])='arxiv']]/article-meta/article-id[@pub-id-type='doi'] must be present.
article/front/journal-meta[lower-case(journal-id[1])='rs'] must be present.
diff --git a/test/xspec/rp-schematron.xspec b/test/xspec/rp-schematron.xspec
index 37fb1a856c..6c35f418e2 100644
--- a/test/xspec/rp-schematron.xspec
+++ b/test/xspec/rp-schematron.xspec
@@ -3224,6 +3224,38 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+