Add altmetric badges to paper (#950)
[Altmetric](https://www.altmetric.com/) tracks social media and citation activity for a paper. I added an option to add the altmeric id to a paper's bib entry, which results in the altmeric badge for the paper being displayed next to the other buttons. As an example, I added the altmetric id for the Einstein, Podolsky & Rosen paper.
This commit is contained in:
parent
6bd11359a1
commit
c87d1b446b
@ -421,6 +421,7 @@ There are several custom bibtex keywords that you can use to affect how the entr
|
||||
- `poster`: Adds a "Poster" button redirecting to a specified file (if a full link is not specified, the file will be assumed to be placed in the /assets/pdf/ directory)
|
||||
- `slides`: Adds a "Slides" button redirecting to a specified file (if a full link is not specified, the file will be assumed to be placed in the /assets/pdf/ directory)
|
||||
- `website`: Adds a "Website" button redirecting to the specified link
|
||||
- `altmetric`: Adds an [Altmetric](https://www.altmetric.com/) badge (Note: only add the altmetric identifier here - the link is generated automatically)
|
||||
|
||||
You can implement your own buttons by editing the bib.html file.
|
||||
|
||||
|
@ -42,6 +42,7 @@
|
||||
url={http://link.aps.org/doi/10.1103/PhysRev.47.777},
|
||||
html={https://journals.aps.org/pr/abstract/10.1103/PhysRev.47.777},
|
||||
pdf={example_pdf.pdf},
|
||||
altmetric={248277},
|
||||
selected={true}
|
||||
}
|
||||
|
||||
|
@ -255,7 +255,7 @@ scholar:
|
||||
query: "@*"
|
||||
|
||||
# Filter out certain bibtex entry keywords used internally from the bib output
|
||||
filtered_bibtex_keywords: [abbr, abstract, arxiv, bibtex_show, html, pdf, selected, supp, blog, code, poster, slides, website, preview]
|
||||
filtered_bibtex_keywords: [abbr, abstract, arxiv, bibtex_show, html, pdf, selected, supp, blog, code, poster, slides, website, preview, altmetric]
|
||||
|
||||
# Maximum number of authors to be shown for each publication (more authors are visible on click)
|
||||
max_author_limit: 3 # leave blank to always show all authors
|
||||
|
@ -177,6 +177,9 @@
|
||||
{%- if entry.website %}
|
||||
<a href="{{ entry.website }}" class="btn btn-sm z-depth-0" role="button">Website</a>
|
||||
{%- endif %}
|
||||
{%- if entry.altmetric %}
|
||||
<script type="text/javascript" src="https://d1bxh8uas1mnw7.cloudfront.net/assets/embed.js"></script><div data-altmetric-id="{{ entry.altmetric }}" class="altmetric-embed" data-hide-no-mentions="true" data-hide-less-than="15" data-badge-popover="right" data-badge-type="2" style="display:inline"></div>
|
||||
{%- endif %}
|
||||
</div>
|
||||
|
||||
{% if entry.abstract -%}
|
||||
|
Loading…
Reference in New Issue
Block a user