From 376facdeeed9124f7b3eeb1948471a9af55eb1bc Mon Sep 17 00:00:00 2001 From: Yann Weyer Date: Tue, 10 Nov 2026 11:06:26 +0100 Subject: [PATCH 1/4] [TASK] Update DOI Proxy Service according to the new recommendations --- Resources/Private/Partials/List/Citestyle/LinkBlock-Inline.html | 2 +- Resources/Private/Partials/List/Citestyle/LinkBlock.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Resources/Private/Partials/List/Citestyle/LinkBlock-Inline.html b/Resources/Private/Partials/List/Citestyle/LinkBlock-Inline.html index d5a556c..614998d 100644 --- a/Resources/Private/Partials/List/Citestyle/LinkBlock-Inline.html +++ b/Resources/Private/Partials/List/Citestyle/LinkBlock-Inline.html @@ -16,7 +16,7 @@      - [{f:translate(key:'linkblock.doi')}]  + [{f:translate(key:'linkblock.doi')}]  [{f:translate(key:'linkblock.pmid')}]  diff --git a/Resources/Private/Partials/List/Citestyle/LinkBlock.html b/Resources/Private/Partials/List/Citestyle/LinkBlock.html index e9a2d03..133b1b0 100644 --- a/Resources/Private/Partials/List/Citestyle/LinkBlock.html +++ b/Resources/Private/Partials/List/Citestyle/LinkBlock.html @@ -9,7 +9,7 @@ DOI: - {publication.doi} + {publication.doi} From 40abb8e0f310b6c7a64dfc404022026c496365a4 Mon Sep 17 00:00:00 2001 From: Yann Weyer Date: Tue, 10 Nov 2026 11:08:10 +0100 Subject: [PATCH 2/4] [BUGFIX] Remove DOI prefix before returning it --- Classes/Domain/Model/Publication.php | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/Classes/Domain/Model/Publication.php b/Classes/Domain/Model/Publication.php index 6529023..782769c 100644 --- a/Classes/Domain/Model/Publication.php +++ b/Classes/Domain/Model/Publication.php @@ -623,11 +623,23 @@ public function setIssn(string $issn): self } /** + * Will try to remove all invalid prefixes editors might have added before the DOI, e.g.: + * - \url… + * - https://dx.doi.org/… + * - https://doi.org/… + * - DOI:… + * - doi=… + * * @return string */ public function getDoi(): string { - return $this->doi; + // Try to remove all possible prefixes of valid DOIs + return trim(preg_replace( + '~^((\\\url)|((https?://)?(dx\.)?doi\.org/)|DOI[:=]?)~mi', + '', + trim($this->doi) + )); } /** From 74ccdf1dc183d8b88868eb806d76ff3b3e2a8c04 Mon Sep 17 00:00:00 2001 From: Yann Weyer Date: Tue, 10 Nov 2026 16:40:48 +0100 Subject: [PATCH 3/4] [BUGFIX] Generate link only for correct DOIs --- .../Private/Partials/List/Citestyle/LinkBlock-Inline.html | 5 ++++- Resources/Private/Partials/List/Citestyle/LinkBlock.html | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Resources/Private/Partials/List/Citestyle/LinkBlock-Inline.html b/Resources/Private/Partials/List/Citestyle/LinkBlock-Inline.html index 614998d..f665185 100644 --- a/Resources/Private/Partials/List/Citestyle/LinkBlock-Inline.html +++ b/Resources/Private/Partials/List/Citestyle/LinkBlock-Inline.html @@ -16,7 +16,10 @@      - [{f:translate(key:'linkblock.doi')}]  + + [{f:translate(key:'linkblock.doi')}] + {publication.doi} +   [{f:translate(key:'linkblock.pmid')}]  diff --git a/Resources/Private/Partials/List/Citestyle/LinkBlock.html b/Resources/Private/Partials/List/Citestyle/LinkBlock.html index 133b1b0..ff15057 100644 --- a/Resources/Private/Partials/List/Citestyle/LinkBlock.html +++ b/Resources/Private/Partials/List/Citestyle/LinkBlock.html @@ -9,7 +9,10 @@ DOI: - {publication.doi} + + {publication.doi} + {publication.doi} + From 4954e514bc06191710632470d2c3626c11bebc85 Mon Sep 17 00:00:00 2001 From: Yann Weyer Date: Tue, 10 Nov 2026 16:56:02 +0100 Subject: [PATCH 4/4] [TASK] Add a placeholder to indicate the expected DOI format --- Configuration/TCA/tx_publications_domain_model_publication.php | 1 + 1 file changed, 1 insertion(+) diff --git a/Configuration/TCA/tx_publications_domain_model_publication.php b/Configuration/TCA/tx_publications_domain_model_publication.php index c4395e8..82feb15 100644 --- a/Configuration/TCA/tx_publications_domain_model_publication.php +++ b/Configuration/TCA/tx_publications_domain_model_publication.php @@ -772,6 +772,7 @@ 'label' => $llTable . '.doi', 'config' => [ 'type' => 'input', + 'placeholder' => '10.1234/example', 'eval' => 'trim', 'default' => '' ]