mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
Merge pull request #4036 from alanorth/8x-citation-doi-tag
[Port dspace-8_x] Add citation_doi tag to head meta
This commit is contained in:
@@ -186,6 +186,7 @@ export class HeadTagService {
|
|||||||
this.setCitationKeywordsTag();
|
this.setCitationKeywordsTag();
|
||||||
|
|
||||||
this.setCitationAbstractUrlTag();
|
this.setCitationAbstractUrlTag();
|
||||||
|
this.setCitationDoiTag();
|
||||||
this.setCitationPdfUrlTag();
|
this.setCitationPdfUrlTag();
|
||||||
this.setCitationPublisherTag();
|
this.setCitationPublisherTag();
|
||||||
|
|
||||||
@@ -198,7 +199,6 @@ export class HeadTagService {
|
|||||||
// this.setCitationIssueTag();
|
// this.setCitationIssueTag();
|
||||||
// this.setCitationFirstPageTag();
|
// this.setCitationFirstPageTag();
|
||||||
// this.setCitationLastPageTag();
|
// this.setCitationLastPageTag();
|
||||||
// this.setCitationDOITag();
|
|
||||||
// this.setCitationPMIDTag();
|
// this.setCitationPMIDTag();
|
||||||
|
|
||||||
// this.setCitationFullTextTag();
|
// this.setCitationFullTextTag();
|
||||||
@@ -319,6 +319,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>
|
* Add <meta name="citation_pdf_url" ... > to the <head>
|
||||||
*/
|
*/
|
||||||
|
Reference in New Issue
Block a user