diff --git a/src/final-JATS-schematron.sch b/src/final-JATS-schematron.sch index 800c678f87..7ccb90c8fd 100644 --- a/src/final-JATS-schematron.sch +++ b/src/final-JATS-schematron.sch @@ -7059,7 +7059,7 @@ [PMCID-link-test] td element containing - '' - looks like it contains a PMCID, but it contains no link pointing to PMC, which is incorrect. - [addgene-test] td element containing - '' - looks like it contains an addgene number. Should this be changed to an RRID with a https://identifiers.org/RRID/RRID:addgene_{number} link? + [addgene-test] td element containing - '' - looks like it contains an addgene number. Should this be changed to an RRID with a https://identifiers.org/RRID:addgene_{number} link? @@ -7179,13 +7179,15 @@ [final-pmid-spacing-table] PMID link should be preceding by 'PMID:' with no space but instead it is preceded by ''. - + [final-rrid-spacing] RRID link should be preceded by 'RRID:' with no space but instead it is preceded by ''. + + [rrid-link-format] RRID links should be in the format 'https://identifiers.org/RRID:XXXX', but this one is not - . diff --git a/src/final-JATS-schematron.xsl b/src/final-JATS-schematron.xsl index c11c95ec27..1615eaf0e9 100644 --- a/src/final-JATS-schematron.xsl +++ b/src/final-JATS-schematron.xsl @@ -39938,8 +39938,8 @@ - - + + addgene-test warning @@ -39947,7 +39947,7 @@ [addgene-test] td element containing - ' - ' - looks like it contains an addgene number. Should this be changed to an RRID with a https://identifiers.org/RRID/RRID:addgene_{number} link? + ' - looks like it contains an addgene number. Should this be changed to an RRID with a https://identifiers.org/RRID:addgene_{number} link? @@ -40447,7 +40447,7 @@ - + @@ -40464,6 +40464,19 @@ '. + + + + rrid-link-format + error + + + + [rrid-link-format] RRID links should be in the format 'https://identifiers.org/RRID:XXXX', but this one is not - + + . + + diff --git a/src/final-package-JATS-schematron.sch b/src/final-package-JATS-schematron.sch index 84584c1953..43f776d60a 100644 --- a/src/final-package-JATS-schematron.sch +++ b/src/final-package-JATS-schematron.sch @@ -7065,7 +7065,7 @@ td element containing - '' - looks like it contains a PMCID, but it contains no link pointing to PMC, which is incorrect. - td element containing - '' - looks like it contains an addgene number. Should this be changed to an RRID with a https://identifiers.org/RRID/RRID:addgene_{number} link? + td element containing - '' - looks like it contains an addgene number. Should this be changed to an RRID with a https://identifiers.org/RRID:addgene_{number} link? @@ -7185,13 +7185,15 @@ PMID link should be preceding by 'PMID:' with no space but instead it is preceded by ''. - + RRID link should be preceded by 'RRID:' with no space but instead it is preceded by ''. + + RRID links should be in the format 'https://identifiers.org/RRID:XXXX', but this one is not - . diff --git a/src/pre-JATS-schematron.sch b/src/pre-JATS-schematron.sch index 5a9cc9c126..7de1292ca5 100644 --- a/src/pre-JATS-schematron.sch +++ b/src/pre-JATS-schematron.sch @@ -7004,7 +7004,7 @@ [PMCID-link-test] td element containing - '' - looks like it contains a PMCID, but it contains no link pointing to PMC, which is incorrect. - [addgene-test] td element containing - '' - looks like it contains an addgene number. Should this be changed to an RRID with a https://identifiers.org/RRID/RRID:addgene_{number} link? + [addgene-test] td element containing - '' - looks like it contains an addgene number. Should this be changed to an RRID with a https://identifiers.org/RRID:addgene_{number} link? @@ -7114,13 +7114,15 @@ [pre-pmid-spacing-table] PMID link should be preceding by 'PMID:' with no space but instead it is preceded by ''. - + [pre-rrid-spacing] RRID link should be preceded by 'RRID:' with no space but instead it is preceded by ''. + + [rrid-link-format] RRID links should be in the format 'https://identifiers.org/RRID:XXXX', but this one is not - . diff --git a/src/pre-JATS-schematron.xsl b/src/pre-JATS-schematron.xsl index d930f51102..7eeeffb3e4 100644 --- a/src/pre-JATS-schematron.xsl +++ b/src/pre-JATS-schematron.xsl @@ -39649,8 +39649,8 @@ - - + + addgene-test warning @@ -39658,7 +39658,7 @@ [addgene-test] td element containing - ' - ' - looks like it contains an addgene number. Should this be changed to an RRID with a https://identifiers.org/RRID/RRID:addgene_{number} link? + ' - looks like it contains an addgene number. Should this be changed to an RRID with a https://identifiers.org/RRID:addgene_{number} link? @@ -40300,7 +40300,7 @@ - + @@ -40317,6 +40317,19 @@ '. + + + + rrid-link-format + error + + + + [rrid-link-format] RRID links should be in the format 'https://identifiers.org/RRID:XXXX', but this one is not - + + . + + diff --git a/src/schematron.sch b/src/schematron.sch index 02e29b6731..2afc5b8bfb 100644 --- a/src/schematron.sch +++ b/src/schematron.sch @@ -13737,9 +13737,9 @@ else self::*/local-name() = $allowed-p-blocks" id="PMCID-link-test">td element containing - '' - looks like it contains a PMCID, but it contains no link pointing to PMC, which is incorrect. td element containing - '' - looks like it contains an addgene number. Should this be changed to an RRID with a https://identifiers.org/RRID/RRID:addgene_{number} link? + id="addgene-test">td element containing - '' - looks like it contains an addgene number. Should this be changed to an RRID with a https://identifiers.org/RRID:addgene_{number} link? @@ -14019,7 +14019,7 @@ else self::*/local-name() = $allowed-p-blocks" id="final-pmid-spacing-table">PMID link should be preceding by 'PMID:' with no space but instead it is preceded by ''. - + @@ -14032,6 +14032,10 @@ else self::*/local-name() = $allowed-p-blocks" test="ends-with($lc,'rrid: ') or ends-with($lc,'rrid ')" role="warning" id="final-rrid-spacing">RRID link should be preceded by 'RRID:' with no space but instead it is preceded by ''. + + RRID links should be in the format 'https://identifiers.org/RRID:XXXX', but this one is not - . diff --git a/test/tests/gen/KRT-td-checks/addgene-test/addgene-test.sch b/test/tests/gen/KRT-td-checks/addgene-test/addgene-test.sch index c40df7b138..994c5b75b4 100644 --- a/test/tests/gen/KRT-td-checks/addgene-test/addgene-test.sch +++ b/test/tests/gen/KRT-td-checks/addgene-test/addgene-test.sch @@ -1362,7 +1362,7 @@ - td element containing - '' - looks like it contains an addgene number. Should this be changed to an RRID with a https://identifiers.org/RRID/RRID:addgene_{number} link? + td element containing - '' - looks like it contains an addgene number. Should this be changed to an RRID with a https://identifiers.org/RRID:addgene_{number} link? diff --git a/test/tests/gen/KRT-td-checks/addgene-test/fail.xml b/test/tests/gen/KRT-td-checks/addgene-test/fail.xml index 3024523015..ce3488da97 100644 --- a/test/tests/gen/KRT-td-checks/addgene-test/fail.xml +++ b/test/tests/gen/KRT-td-checks/addgene-test/fail.xml @@ -1,7 +1,7 @@ +Test: report matches(lower-case(.),'addgene\p{Zs}?#?\p{Zs}?\d') and not(ext-link[matches(@xlink:href,'identifiers\.org/RRID:.*')]) +Message: td element containing - '' - looks like it contains an addgene number. Should this be changed to an RRID with a https://identifiers.org/RRID:addgene_{number} link? -->
diff --git a/test/tests/gen/KRT-td-checks/addgene-test/pass.xml b/test/tests/gen/KRT-td-checks/addgene-test/pass.xml index df96794152..c4b804e2bd 100644 --- a/test/tests/gen/KRT-td-checks/addgene-test/pass.xml +++ b/test/tests/gen/KRT-td-checks/addgene-test/pass.xml @@ -1,7 +1,7 @@ +Test: report matches(lower-case(.),'addgene\p{Zs}?#?\p{Zs}?\d') and not(ext-link[matches(@xlink:href,'identifiers\.org/RRID:.*')]) +Message: td element containing - '' - looks like it contains an addgene number. Should this be changed to an RRID with a https://identifiers.org/RRID:addgene_{number} link? -->
diff --git a/test/tests/gen/rrid-link/final-rrid-spacing/fail.xml b/test/tests/gen/rrid-link/final-rrid-spacing/fail.xml index cbbd5980dd..854d8410cd 100644 --- a/test/tests/gen/rrid-link/final-rrid-spacing/fail.xml +++ b/test/tests/gen/rrid-link/final-rrid-spacing/fail.xml @@ -1,9 +1,9 @@ -
- RRID: IMSR_JAX:006410 + RRID: IMSR_JAX:006410
\ No newline at end of file diff --git a/test/tests/gen/rrid-link/final-rrid-spacing/final-rrid-spacing.sch b/test/tests/gen/rrid-link/final-rrid-spacing/final-rrid-spacing.sch index 622d644a4a..2176c8bf5c 100644 --- a/test/tests/gen/rrid-link/final-rrid-spacing/final-rrid-spacing.sch +++ b/test/tests/gen/rrid-link/final-rrid-spacing/final-rrid-spacing.sch @@ -1361,7 +1361,7 @@ - + RRID link should be preceded by 'RRID:' with no space but instead it is preceded by ''. @@ -1369,7 +1369,7 @@ - ext-link[contains(@xlink:href,'scicrunch.org/resolver') and not(ancestor::sub-article)] must be present. + ext-link[contains(lower-case(@xlink:href),'identifiers.org/rrid') and not(ancestor::sub-article)] must be present. \ No newline at end of file diff --git a/test/tests/gen/rrid-link/final-rrid-spacing/pass.xml b/test/tests/gen/rrid-link/final-rrid-spacing/pass.xml index 4ef4a101e5..8a36d3323f 100644 --- a/test/tests/gen/rrid-link/final-rrid-spacing/pass.xml +++ b/test/tests/gen/rrid-link/final-rrid-spacing/pass.xml @@ -1,9 +1,9 @@ -
- RRID:IMSR_JAX:006410 + RRID:IMSR_JAX:006410
\ No newline at end of file diff --git a/test/tests/gen/rrid-link/pre-rrid-spacing/fail.xml b/test/tests/gen/rrid-link/pre-rrid-spacing/fail.xml index 8d5cd2dfa0..9b7bd62c60 100644 --- a/test/tests/gen/rrid-link/pre-rrid-spacing/fail.xml +++ b/test/tests/gen/rrid-link/pre-rrid-spacing/fail.xml @@ -1,9 +1,9 @@ -
- RRID: IMSR_JAX:006410 + RRID: IMSR_JAX:006410
\ No newline at end of file diff --git a/test/tests/gen/rrid-link/pre-rrid-spacing/pass.xml b/test/tests/gen/rrid-link/pre-rrid-spacing/pass.xml index 9478e26372..485223c9d3 100644 --- a/test/tests/gen/rrid-link/pre-rrid-spacing/pass.xml +++ b/test/tests/gen/rrid-link/pre-rrid-spacing/pass.xml @@ -1,9 +1,9 @@ -
- RRID:IMSR_JAX:006410 + RRID:IMSR_JAX:006410
\ No newline at end of file diff --git a/test/tests/gen/rrid-link/pre-rrid-spacing/pre-rrid-spacing.sch b/test/tests/gen/rrid-link/pre-rrid-spacing/pre-rrid-spacing.sch index 8dc4b931d8..9723222f99 100644 --- a/test/tests/gen/rrid-link/pre-rrid-spacing/pre-rrid-spacing.sch +++ b/test/tests/gen/rrid-link/pre-rrid-spacing/pre-rrid-spacing.sch @@ -1361,7 +1361,7 @@ - + RRID link should be preceded by 'RRID:' with no space but instead it is preceded by ''. @@ -1369,7 +1369,7 @@ - ext-link[contains(@xlink:href,'scicrunch.org/resolver') and not(ancestor::sub-article)] must be present. + ext-link[contains(lower-case(@xlink:href),'identifiers.org/rrid') and not(ancestor::sub-article)] must be present. \ No newline at end of file diff --git a/test/tests/gen/rrid-link/rrid-link-format/fail.xml b/test/tests/gen/rrid-link/rrid-link-format/fail.xml new file mode 100644 index 0000000000..98c4d7291f --- /dev/null +++ b/test/tests/gen/rrid-link/rrid-link-format/fail.xml @@ -0,0 +1,9 @@ + + + +
+ RRID:IMSR_JAX:006410 +
+
\ No newline at end of file diff --git a/test/tests/gen/rrid-link/rrid-link-format/pass.xml b/test/tests/gen/rrid-link/rrid-link-format/pass.xml new file mode 100644 index 0000000000..a700e6f30d --- /dev/null +++ b/test/tests/gen/rrid-link/rrid-link-format/pass.xml @@ -0,0 +1,9 @@ + + + +
+ RRID:IMSR_JAX:006410 +
+
\ No newline at end of file diff --git a/test/tests/gen/rrid-link/rrid-link-format/rrid-link-format.sch b/test/tests/gen/rrid-link/rrid-link-format/rrid-link-format.sch new file mode 100644 index 0000000000..41aa24656d --- /dev/null +++ b/test/tests/gen/rrid-link/rrid-link-format/rrid-link-format.sch @@ -0,0 +1,1375 @@ + + eLife Schematron + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + cite + + + + + + + + + + + box + + + + + + + + + + + + + + + + + + + + + roman + + + + + + + + + + + + + + roman + + + + + + + italic + + + + + + + + + + + + + + italic + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + RRID links should be in the format 'https://identifiers.org/RRID:XXXX', but this one is not - . + + + + + ext-link[contains(lower-case(@xlink:href),'identifiers.org/rrid') and not(ancestor::sub-article)] must be present. + + + \ No newline at end of file diff --git a/test/xspec/schematron.sch b/test/xspec/schematron.sch index 3a5f3e7d55..394971209d 100644 --- a/test/xspec/schematron.sch +++ b/test/xspec/schematron.sch @@ -9022,7 +9022,7 @@ td element containing - '' - looks like it contains a PMCID, but it contains no link pointing to PMC, which is incorrect. - td element containing - '' - looks like it contains an addgene number. Should this be changed to an RRID with a https://identifiers.org/RRID/RRID:addgene_{number} link? + td element containing - '' - looks like it contains an addgene number. Should this be changed to an RRID with a https://identifiers.org/RRID:addgene_{number} link? @@ -9210,13 +9210,15 @@ - + RRID link should be preceded by 'RRID:' with no space but instead it is preceded by ''. RRID link should be preceded by 'RRID:' with no space but instead it is preceded by ''. + + RRID links should be in the format 'https://identifiers.org/RRID:XXXX', but this one is not - . @@ -10318,7 +10320,7 @@ article must be present. p//ext-link[not(ancestor::table-wrap) and not(ancestor::sub-article)] must be present. table-wrap//ext-link[(contains(@xlink:href,'ncbi.nlm.nih.gov/pubmed') or contains(@xlink:href,'pubmed.ncbi.nlm.nih.gov')) and not(ancestor::sub-article)] must be present. - ext-link[contains(@xlink:href,'scicrunch.org/resolver') and not(ancestor::sub-article)] must be present. + ext-link[contains(lower-case(@xlink:href),'identifiers.org/rrid') and not(ancestor::sub-article)] must be present. ref-list/ref must be present. fig[not(descendant::permissions)]|media[@mimetype='video' and not(descendant::permissions)]|table-wrap[not(descendant::permissions)]|supplementary-material[not(descendant::permissions)] must be present. xref[not(@ref-type='bibr')] must be present. diff --git a/test/xspec/schematron.xspec b/test/xspec/schematron.xspec index db6ccc007b..028bb20376 100644 --- a/test/xspec/schematron.xspec +++ b/test/xspec/schematron.xspec @@ -21109,6 +21109,16 @@ + + + + + + + + + +