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/metadata.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@
this.setCitationKeywordsTag();

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

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

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

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

Check warning on line 304 in src/app/core/metadata/metadata.service.ts

View check run for this annotation

Codecov / codecov/patch

src/app/core/metadata/metadata.service.ts#L304

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

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