Closed jmacgreg closed 4 years ago
I'd recommend that the ORCID plugin not try to do that with JavaScript. It will:
If the ORCID plugin wants to make it easy to support the display, it could do so by providing a full URL to the ORCID SVG file to each template where it is needed. But the decision of what, where and how to display the relationship should be up to the theme.
Thanks @NateWr! I'll review this with the ORCID crew.
From the ORCID devs:
"The approach suggested in https://github.com/pkp/classic/issues/82#issuecomment-654168329 is definitely a better approach vs using JS. I’m not sure whether "full URL to the ORCID SVG file” means a link to a copy of the iD icon included in the plugin files or a link to the asset on our site, however, I suggest that include a local copy of the iD icon and not link to files on our site as locations are subject to change without notice. iD icon files can be downloaded from https://orcid.figshare.com/articles/ORCID_iD_icon_graphics/5008697"
The full link to the icon would refer to the svg
file in the orcid plugin, at templates/images/orcid.svg
.
Should we migrate this issue to the orcid plugin repository?
Done!
Describe the bug If an author authenticates their ORCID iD against a submission, the ORCID iD icon should display next to their name. But in this case, it will display twice.
To Reproduce Steps to reproduce the behavior:
Screenshots
Versions
Solution Edit line 87 of
templates/frontend/objects/article_details.tpl
, change:<a class="orcid-image-url" href="{$author->getOrcid()}"><img src="{$baseUrl}/{$orcidImageUrl}"></a>
... to:
<a class="orcid-image-url" href="{$author->getOrcid()}"></a>
The ORCID plugin javascript will use the class name to add an ORCID button via CSS/SVG. I am not sure if this is the "correct" way to do this or not, but it worked. I am also not sure if this is present in other themes.