Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add number of citations of a publication in the list? #28

Open
KieuTruong opened this issue Mar 4, 2021 · 1 comment
Open

Add number of citations of a publication in the list? #28

KieuTruong opened this issue Mar 4, 2021 · 1 comment

Comments

@KieuTruong
Copy link

I would like to add total citations for each publication in the list using Dimension badge builder (using DOI), How can I do it?
Any hint or suggestion, please?
Thank you!

@KieuTruong
Copy link
Author

KieuTruong commented Mar 11, 2021

  • I simply add the code inside bib-list.js:
    links: function(entryData) {
    var itemStr = '';
    if (entryData.doi) {
    itemStr += '';
    }
    return itemStr;
    },

  • I also need to style inline and embed the Dimension badge inside the HTML file:
    //style
    <style>
    .dimensions_badge_embed {
    display: inline;}
    .dimensions_badge_embed::after {
    display: none;}
    </style>

    //embed the dimension badge

    <script async src="https://badge.dimensions.ai/badge.js" charset="utf-8"></script>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant