Skip to content
This repository has been archived by the owner on Nov 17, 2021. It is now read-only.

Commit

Permalink
feat(Elife): Get the article DOI
Browse files Browse the repository at this point in the history
  • Loading branch information
davidcmoulton committed Apr 29, 2020
1 parent 5cef537 commit 63a9571
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/themes/elife/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ const getArticleId = (): string => {
return first(selector)?.innerHTML ?? ''
}

const getArticleDoi = (): string => {
const selector =
':--identifier meta[content="https://registry.identifiers.org/registry/doi"] ~ [itemprop="value"]'
return first(selector)?.innerHTML ?? ''
}

ready((): void => {
formatDate(first(':--datePublished'))

Expand Down

0 comments on commit 63a9571

Please sign in to comment.