diff --git a/_layouts/bib.liquid b/_layouts/bib.liquid index a54aaa611816..5b58600e2a60 100644 --- a/_layouts/bib.liquid +++ b/_layouts/bib.liquid @@ -249,9 +249,20 @@ {% endif %} {% if site.enable_publication_badges %} - {% assign entry_has_altmetric_badge = entry.altmetric or entry.doi or entry.eprint or entry.pmid or entry.isbn %} - {% assign entry_has_dimensions_badge = entry.dimensions or entry.doi or entry.pmid %} - {% assign entry_has_google_scholar_badge = entry.google_scholar_id %} + {% assign entry_has_altmetric_badge = false %} + {% if entry.altmetric and entry.altmetric != 'false' %} + {% assign entry_has_altmetric_badge = true %} + {% endif %} + + {% assign entry_has_dimensions_badge = false %} + {% if entry.dimensions and entry.dimensions != 'false' %} + {% assign entry_has_dimensions_badge = true %} + {% endif %} + + {% assign entry_has_google_scholar_badge = false %} + {% if entry.google_scholar_id %} + {% assign entry_has_google_scholar_badge = true %} + {% endif %} {% if entry_has_altmetric_badge or entry_has_dimensions_badge or entry_has_google_scholar_badge %}