mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
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:
@@ -161,6 +161,7 @@ export class MetadataService {
|
|||||||
this.setCitationKeywordsTag();
|
this.setCitationKeywordsTag();
|
||||||
|
|
||||||
this.setCitationAbstractUrlTag();
|
this.setCitationAbstractUrlTag();
|
||||||
|
this.setCitationDoiTag();
|
||||||
this.setCitationPdfUrlTag();
|
this.setCitationPdfUrlTag();
|
||||||
this.setCitationPublisherTag();
|
this.setCitationPublisherTag();
|
||||||
|
|
||||||
@@ -294,6 +295,18 @@ export class MetadataService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Add <meta name="citation_doi" ... > to the <head>
|
||||||
|
*/
|
||||||
|
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 <meta name="citation_pdf_url" ... > to the <head>
|
* Add <meta name="citation_pdf_url" ... > to the <head>
|
||||||
*/
|
*/
|
||||||
|
Reference in New Issue
Block a user