Dimensions Badges on OJS-3.2.1-1


We are using OJS -3.2.1-1 version and we need put the Diension Badges issue for each article, the next text was inserted in the file template (templates/frontend/objects/articles_details.tpl):


The situation is that the previous code is only rigth for the journal but not for each article in particular such as must be:

<span class="__dimensions_badge_embed__" data-doi="https://doi.org/10.30554/lumina.19.2532.2018" data-legend="hover-right"></span><script async src="https://badge.dimensions.ai/badge.js" charset="utf-8"></script>

My question is how can I do to put a code that changes according with the arcticle and where it must be put?

Thanks, regardless.

Hi @cridum,

I think you’re looking for code that fetches the DOI for the article being displayed. See this segment of code that does this: ojs/article_details.tpl at stable-3_2_1 · pkp/ojs · GitHub

Rather than modifying the code directly, I’d recommend using a plugin – but that’s another subject!

Alec Smecher
Public Knowledge Project Team