Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Altmetric badges don't display for some pubs #2443

Closed
2 tasks done
etjernst opened this issue May 26, 2024 · 2 comments · Fixed by #2565
Closed
2 tasks done

Altmetric badges don't display for some pubs #2443

etjernst opened this issue May 26, 2024 · 2 comments · Fixed by #2565

Comments

@etjernst
Copy link

Have you checked that your issue isn't already filed?

  • I read through FAQ and searched through the past issues, none of which addressed my issue.
  • Yes, I have checked that this issue isn't already filed.

Bug description

For some of my publications, the Altmetric badge doesn't display

How to reproduce the bug

Despite having the correct doi and altmetric = {true}, in the .bib file, and the publication having an entry on Altmetric when I search for it there, the badge doesn't render on my publications file.

Example pub for which the altmetric score doesn't render: 10.1016/j.worlddev.2017.12.002

Error messages and logs

No response

What operating system are you using?

Not applicable (e.g. you're using GitHub Pages or other hosting)

Where are you seeing the problem on?

Deployed site

More info

The site has deployed without errors, but the badge is still missing
image

@etjernst etjernst added the bug label May 26, 2024
@george-gca
Copy link
Collaborator

As you can see from this code on is where we enable the altmetrics. We use the altmetric code contained in their documentation, so there is not much we can do about it. The reasons this might not be working that I can think of are:

  1. for some reason this altmetric information in your paper is not yet available
  2. there is a limit on the number of badges you can display in your site? Idk

@etjernst
Copy link
Author

for some reason this altmetric information in your paper is not yet available
I do know for sure that it has a badge when I look it up directly.

there is a limit on the number of badges you can display in your site? Idk
Hm that would be weird. It's also not in "order" i.e. the first instance on my publications page is missing the badge and a later one has it.

@george-gca george-gca linked a pull request Jul 11, 2024 that will close this issue
george-gca pushed a commit that referenced this issue Jul 11, 2024
## The issue
Currently Altmetric and Dimension publication badge elements have
non-obvious attributes that hide badges when some conditions are not met
,e.g.:
```
data-hide-no-mentions="true"
data-hide-less-than="15"
```
resulting in seemingly strange behavior where badges are enabled in
`config.yml` but don't show up consistently, as reported in #2443 :
Altmetric badges don't display for some pubs.

## This PR
- removes these hidden nondisplay conditions in favor of more
predictable website behavior;
- adds documentation links to point users interested in customizing
badge behavior to the right resources.
Suraj-Bhor pushed a commit to Suraj-Bhor/suraj-bhor.github.io that referenced this issue Aug 13, 2024
## The issue
Currently Altmetric and Dimension publication badge elements have
non-obvious attributes that hide badges when some conditions are not met
,e.g.:
```
data-hide-no-mentions="true"
data-hide-less-than="15"
```
resulting in seemingly strange behavior where badges are enabled in
`config.yml` but don't show up consistently, as reported in alshedivat#2443 :
Altmetric badges don't display for some pubs.

## This PR
- removes these hidden nondisplay conditions in favor of more
predictable website behavior;
- adds documentation links to point users interested in customizing
badge behavior to the right resources.
meiqing-wang pushed a commit to meiqing-wang/meiqing-wang.github.io that referenced this issue Oct 13, 2024
## The issue
Currently Altmetric and Dimension publication badge elements have
non-obvious attributes that hide badges when some conditions are not met
,e.g.:
```
data-hide-no-mentions="true"
data-hide-less-than="15"
```
resulting in seemingly strange behavior where badges are enabled in
`config.yml` but don't show up consistently, as reported in alshedivat#2443 :
Altmetric badges don't display for some pubs.

## This PR
- removes these hidden nondisplay conditions in favor of more
predictable website behavior;
- adds documentation links to point users interested in customizing
badge behavior to the right resources.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants