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
I have external links in my galleys. My galley has PDF, Custom URL 1 & Custom URL 2.
When I added this code, that particular articles now shows “PDF Downloads” 3 times. In the first PDF Download, the actual download number is showing, but in the other two PDF Downloads, it is showing 0.
Also, “PDF Downloads” counter increases for each galley I create for the same article.
Is there a way where I can show just the PDF Downloads once and that too for the PDF Download counter and remove the extra “PDF Download” texts which got auto generated as I added galleys?
Looks like the issue is not on the code to display the abstract/file download views.
I just realized that the articles views/files download stats is not worked.