Hello Friends, I want to ask How to get the total galleys downloads count OJS 3.3.x.x and add it in the article_details.tpl file under the DOI URL like this. How about the code?
I’ve tried this code but it doesn’t work and the PDF download count doesn’t show up.
The image that you posted what you want the Download stats to look at, is there a URL as well where you point us to to have a look at this.
What specific version are you using for OJS. I know you have it as 3.3.x.x, but if you could indicate the specific version that you’re working on to make the changes, that would be helpful, as there might be variations in the codebase from version to the next.
Thanks for sharing this. One thing you may be able to do out of the box is use the Usage Statistics plugin - that does display some download statistics. You can read more about it in this thread: OJS 3 - Download statistics - #12 by bog
However, this might not be exactly what you’re looking for.
I’m not sure how exactly to go about getting this exactly the same, so I will ask some of my team members to comment when they are able to/available. You may wish to reach out to the developers of the site that you’d linked to to see if they are able to share their code - that might be a bit quicker.
Previously I used the below code on OJS 3.1 and it’s worked as expected.
Unfortunately, it’s only returned 0 when I tried to implement it on OJS 3.3.0.7.
Here you are…
(This is a demo site) https://ojsdergi.com/demo/
I put article statistic in the issue page and article detail page.
issue page
article detail page