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.
This commit is contained in:
Alan Orth
2025-02-26 08:47:35 +03:00
parent b480317599
commit 0251aaa3f8

View File

@@ -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 <meta name="citation_doi" ... > to the <head>
*/
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 <meta name="citation_pdf_url" ... > to the <head>
*/