From c0402bd54059b5e2cc07318671d5d28332fe9099 Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Wed, 26 Feb 2025 08:47:35 +0300 Subject: [PATCH] src/app/core: add citation_doi tag to head meta This is used by harvesters like Altmetric and was present in DSpace version 6 and previous. --- src/app/core/metadata/head-tag.service.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/app/core/metadata/head-tag.service.ts b/src/app/core/metadata/head-tag.service.ts index 8041bb3a4a..6c8d9fd432 100644 --- a/src/app/core/metadata/head-tag.service.ts +++ b/src/app/core/metadata/head-tag.service.ts @@ -186,6 +186,7 @@ export class HeadTagService { this.setCitationKeywordsTag(); this.setCitationAbstractUrlTag(); + this.setCitationDoiTag(); this.setCitationPdfUrlTag(); this.setCitationPublisherTag(); @@ -319,6 +320,18 @@ export class HeadTagService { } } + /** + * Add to the + */ + protected setCitationDoiTag(): void { + if (this.currentObject.value instanceof Item) { + const doi = this.getMetaTagValue('dc.identifier.doi'); + if (hasValue(doi)) { + this.addMetaTag('citation_doi', doi); + } + } + } + /** * Add to the */