Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion src/app/core/metadata/head-tag.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@
this.setCitationKeywordsTag();

this.setCitationAbstractUrlTag();
this.setCitationDoiTag();
this.setCitationPdfUrlTag();
this.setCitationPublisherTag();

Expand All @@ -198,7 +199,6 @@
// this.setCitationIssueTag();
// this.setCitationFirstPageTag();
// this.setCitationLastPageTag();
// this.setCitationDOITag();
// this.setCitationPMIDTag();

// this.setCitationFullTextTag();
Expand Down Expand Up @@ -319,6 +319,18 @@
}
}

/**
* 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);

Check warning on line 329 in src/app/core/metadata/head-tag.service.ts

View check run for this annotation

Codecov / codecov/patch

src/app/core/metadata/head-tag.service.ts#L329

Added line #L329 was not covered by tests
}
}
}

/**
* Add <meta name="citation_pdf_url" ... > to the <head>
*/
Expand Down
Loading