From 8d7b4cd101c046e4044a0953a8d1d17fd2eaea50 Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Tue, 25 Feb 2025 22:13:00 +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/metadata.service.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/app/core/metadata/metadata.service.ts b/src/app/core/metadata/metadata.service.ts index 5659a75f0e..864f96fbe1 100644 --- a/src/app/core/metadata/metadata.service.ts +++ b/src/app/core/metadata/metadata.service.ts @@ -161,6 +161,7 @@ export class MetadataService { this.setCitationKeywordsTag(); this.setCitationAbstractUrlTag(); + this.setCitationDoiTag(); this.setCitationPdfUrlTag(); this.setCitationPublisherTag(); @@ -294,6 +295,18 @@ export class MetadataService { } } + /** + * Add to the + */ + private setCitationDoiTag(): void { + if (this.currentObject.value instanceof Item) { + let doi = this.getMetaTagValue('dc.identifier.doi'); + if (hasValue(doi)) { + this.addMetaTag('citation_doi', doi); + } + } + } + /** * Add to the */