From d1cd162f5776904e8972d2cfdf4b0d62afadd458 Mon Sep 17 00:00:00 2001 From: Fred Atherden <43879983+fred-atherden@users.noreply.github.com> Date: Mon, 25 Nov 2024 15:29:39 +0000 Subject: [PATCH] RP XSL - add template to fix source elements - Change to title case when source is in all caps - If source starts with 'In ', then move this outside of source --- src/preprint-changes.xsl | 73 ++++++++++++++++++- test/tests/preprint-changes/all/input.xml | 2 + test/tests/preprint-changes/all/output.xml | 2 + .../ref-source-fixes/input.xml | 8 ++ .../ref-source-fixes/output.xml | 8 ++ test/xspec/preprint-changes.xspec | 4 + 6 files changed, 96 insertions(+), 1 deletion(-) create mode 100644 test/tests/preprint-changes/ref-source-fixes/input.xml create mode 100644 test/tests/preprint-changes/ref-source-fixes/output.xml diff --git a/src/preprint-changes.xsl b/src/preprint-changes.xsl index 09160594a7..f1d4e56d00 100644 --- a/src/preprint-changes.xsl +++ b/src/preprint-changes.xsl @@ -47,6 +47,40 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -799,7 +833,11 @@ - + + + + + @@ -943,6 +981,39 @@ + + + + + + + In + + + + + + In + + + + + + + + + + + + + + + + + + + + diff --git a/test/tests/preprint-changes/all/input.xml b/test/tests/preprint-changes/all/input.xml index c682f441d4..e24a944f95 100644 --- a/test/tests/preprint-changes/all/input.xml +++ b/test/tests/preprint-changes/all/input.xml @@ -113,6 +113,8 @@ A. Nagy, M. Gertsenstein, K. Vintersten, … and R. Behringer, Manipulating the mouse embryo: a laboratory manual (Cold Spring Harbor Laboratory Press Cold Spring Harbor, NY:, 2003), vol. 10. J. M. Glynn, T. G. Cotter, D. R. Green (1992) Apoptosis induced by actinomycin D, camptothecin or aphidicolin can occur in all phases of the cell cycle. (Portland Press Ltd.). Huckesfeld S, et al (2021) Unveiling the sensory and interneuronal pathways of the neuroendocrine connectome in Drosophila. Elife 10:e65745 +Huckesfeld S, et al (2021) Unveiling the sensory and interneuronal pathways of the neuroendocrine connectome in Drosophila. ELIFE 10:e65745 +Huckesfeld S, et al (2021) ... PLANT PHYSIOLOGY 10:e65745 \ No newline at end of file diff --git a/test/tests/preprint-changes/all/output.xml b/test/tests/preprint-changes/all/output.xml index 72e7bcb480..bd8dea7f39 100644 --- a/test/tests/preprint-changes/all/output.xml +++ b/test/tests/preprint-changes/all/output.xml @@ -125,6 +125,8 @@ A. Nagy, M. Gertsenstein, K. Vintersten, R. Behringer, Manipulating the mouse embryo: a laboratory manual (Cold Spring Harbor Laboratory Press Cold Spring Harbor, NY:, 2003), vol. 10. J. M. Glynn, T. G. Cotter, D. R. Green (1992) Apoptosis induced by actinomycin D, camptothecin or aphidicolin can occur in all phases of the cell cycle. (Portland Press Ltd.). Huckesfeld S, et al (2021) Unveiling the sensory and interneuronal pathways of the neuroendocrine connectome in Drosophila. Elife 10:e65745 +Huckesfeld S, et al (2021) Unveiling the sensory and interneuronal pathways of the neuroendocrine connectome in Drosophila. eLife 10:e65745 +Huckesfeld S, et al (2021) ... Plant Physiology 10:e65745 diff --git a/test/tests/preprint-changes/ref-source-fixes/input.xml b/test/tests/preprint-changes/ref-source-fixes/input.xml new file mode 100644 index 0000000000..75c912690f --- /dev/null +++ b/test/tests/preprint-changes/ref-source-fixes/input.xml @@ -0,0 +1,8 @@ + + +Claus S, et al (2021) ... AGAINST METHOD +Claus S, et al (2021) ... PLOS ONE +Claus S, et al (2021) ... BIORXIV +Huckesfeld S, et al (2021) Unveiling the sensory and interneuronal pathways of the neuroendocrine connectome in Drosophila. ELIFE 10:e65745 +Huckesfeld S, et al (2021) ... PLANT PHYSIOLOGY 10:e65745 + \ No newline at end of file diff --git a/test/tests/preprint-changes/ref-source-fixes/output.xml b/test/tests/preprint-changes/ref-source-fixes/output.xml new file mode 100644 index 0000000000..b772e84796 --- /dev/null +++ b/test/tests/preprint-changes/ref-source-fixes/output.xml @@ -0,0 +1,8 @@ + + +Claus S, et al (2021) ... Against Method +Claus S, et al (2021) ... PLOS One +Claus S, et al (2021) ... bioRxiv +Huckesfeld S, et al (2021) Unveiling the sensory and interneuronal pathways of the neuroendocrine connectome in Drosophila. eLife 10:e65745 +Huckesfeld S, et al (2021) ... Plant Physiology 10:e65745 + \ No newline at end of file diff --git a/test/xspec/preprint-changes.xspec b/test/xspec/preprint-changes.xspec index 98082f6b80..8571de6e08 100644 --- a/test/xspec/preprint-changes.xspec +++ b/test/xspec/preprint-changes.xspec @@ -96,6 +96,10 @@ + + + +