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

Put badge-specific code in separate functions #9

Closed mjordan closed 7 years ago

mjordan commented 8 years ago

Thought I'd open this issue so we don't forget about it. Low priority for now?

The badge-specific code inside the case blocks in islandora_badges_block_view() should be refactored into functions, which in turn, could be placed in an include file. This would make adding new badges easier, plus keep the .module file smaller and more maintainable.

bondjimbond commented 8 years ago

Thanks - good to have it there to keep track. Agreed that it's low priority for now. I'll focus on getting WoS working, and then address this issue.

bondjimbond commented 7 years ago

Covered by #17