OJS 3.5: How to display article views and PDF download statistics in article_summary.tpl?

Hello!

I have updated my website from Open Journal Systems (OJS) 3.3 to version 3.5.

Now I am facing an issue: I cannot configure the display of article view statistics and the number of PDF downloads on the journal issue page (the page with the list of articles) .

In OJS 3.3, this was solved by adding the following code to the file templates/frontend/objects/article_summary.tpl:

{assign var=galleys value=$article->getGalleys ()}
{translate key="article.numberofviews"} {$article->getView s()}
{if $gal leys}
{foreach from=$galleys item=galley name=galle yList}
| {translate key="article.numberofdownloads"} {$galley->getV iews()}
{/ foreach} 
{/if}

However, this code no longer works in the ne w versio n.

Could you please advise how this can be implemented in OJS 3 .5 ?

Is there any solutions?

Unfortunately, I have been waiting for an answer to my question for more than four months, but no one has been able to help me resolve this issue so far.

@bozana, might you be able to speak to this?

-Roger
PKP Team

Try this plugin?: GitHub - OJSBR/viewcounter: OJS 3.4/3.5 plugin: shows article abstract views and downloads on summaries and article pages. By OJSBR. · Plugin OJS 3.4/3.5: exibe visualizações e downloads do artigo nos sumários e nas páginas do artigo. Autoral OJSBR. · GitHub

Demo: Journal for the Study of Religion and History (JSRH)

Thank you very much for the link to the plugin GitHub - OJSBR/viewcounter. This is exactly what I have been looking for for such a long time! I installed it, and everything works perfectly.

I really appreciate your help!

A little bit late, but… The plugin View Counter from OJSBR is now available in plugin gallery for OJS 3.4 and 3.5