bondjimbond / islandora_badges

Adds badges to Islandora objects showing citation counts from Crossref, Web of Science, and Scopus; Altmetric social media interactions; and oaDOI fulltext links.
http://arcabc.ca
2 stars 1 forks source link

Configure which Content-Models to display badges on. #19

Closed whikloj closed 7 years ago

whikloj commented 7 years ago

Currently altmetrics only displays badges for ir:citationModels.

We could allow people to select which Content-models to display badges on.

bondjimbond commented 7 years ago

Agreed. I'm not sure why the Altmetric module made that restriction originally; suspect it was because the creator was just interest in citations. I see no reason it's needed.

Once the split-into-submodules thing is done, I'll test out a branch cutting this requirement.

whikloj commented 7 years ago

I have a branch with some work ready, it is based off the sub-module branch so I won't open a PR until we get that working.

It allows you to select from a list of all available content-models and uses that list to determine whether to show badges. Currently it is designed as a single list for all badges, but you could extend it to allow separate lists for each sub-module.

I only changed Altmetrics as it was the only one with this restriction by default. But it would be easy to add to the rest.

But you can see and try it here. https://github.com/whikloj/islandora_badges/tree/issue-19