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

Commit

Permalink
Merge pull request #229 from stencila/remove-papers-link
Browse files Browse the repository at this point in the history
refactor(Elife): Removing papers from downloads
  • Loading branch information
nlisgo authored Aug 13, 2020
2 parents a18146d + 8b3f7bb commit 29c6555
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/themes/elife/lib/downloads.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@ const deriveUrl = (type: string, id: string, title = ''): string => {
return `https://www.mendeley.com/import?doi=10.7554/eLife.${id}`
case 'readcube':
return `https://www.readcube.com/articles/10.7554/eLife.${id}`
case 'papers':
return `papers2://url/https%3A%2F%2Felifesciences.org%2Farticles%2F${id}?title=${encodeURIComponent(
title
)}`
}
return ''
}
Expand Down Expand Up @@ -92,14 +88,6 @@ const buildMenu = (
'li',
null,
createSimpleLink(deriveUrl('readcube', articleId), 'ReadCube')
),
create(
'li',
null,
createSimpleLink(
deriveUrl('papers', articleId, articleTitle),
'Papers'
)
)
)
)
Expand Down

0 comments on commit 29c6555

Please sign in to comment.