[OJS 3.1.2] Papperbuzz plugin bug

Hi,

Install the Papperbuzz plugin from the OJS plugin view, and when reviewing how it is shown in an article, I get what is shown in the following image and it shows the following error:

image

paperbuzzviz.js:19 Uncaught TypeError: d3.timeParse is not a function
at new PaperbuzzViz (paperbuzzviz.js:19)

Hi @diegomejia07,

Are you able to determine which version of the plugin you are using from the plugin gallery - this may help to further troubleshoot this issue.

Thanks,

Roger
PKP Team

Hi @rcgillis,

The version of the Paperbuzz plugin found in the OJS 3.1.2.0 plugin gallery is version 1.0.0.0, as you can see in the following image:

image

Hi @diegomejia07,

Thanks for verifying. And you have DOIs for your articles and they are working correctly? I might ask @bozana to weigh in on this as well. I know that there have been issues with the crossref event data in the past.

-Roger
PKP Team

Hi @rcgillis,

Yes, I have DOI’s and they work well on the platform and with other plugins.

Hi @diegomejia07 and @rcgillis ,

I worked with the most recent version, but this one I will have to check/test… Then I will come back to you…

Thanks!
Bozana

1 Like

Hi @diegomejia07

I’ve just installed OJS 3.1.2 and the papperbuzz plugin via the plugin gallery and I couldn’t reproduce the problem – I have no problem, no errors…
Could it be that your page is using another d3 version i.e. that it is loading 2 versions of d3? – look in the page source after “d3” – you should find <script src="https://d3js.org/d3.v4.min.js?v=3.1.2.4" type="text/javascript"></script> only once.
Or, how does your date published look like for that article? – I don’t think this is problem (in that case the error would be different I believe), but…
Can you share the URL of that article?

Hmm… else I have no other ideas…

Best,
Bozana

Hi @bozana,

I don’t see it loading the script twice. This is the url of one of the articles:
https://revistas.udea.edu.co/index.php/ikala/article/view/328905

Hi @bozana,

You have been able to review something about this problem. I really need it to work.

Hi @diegomejia07

Recently I could not access your web site, but now I can.
It seems like you have another version of d3 library used by the wordcloud plugin. Only this d3 library version is loaded – only this is in your page source:
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.17/d3.min.js" type="text/javascript"></script>
and not the line I posted above.
So that the papebuzz plugin is not working – that function is missing.

You could try to change this line paperbuzz/PaperbuzzPlugin.inc.php at stable-3_1_2 · pkp/paperbuzz · GitHub in the paperbuzz plugin:
Instead of
$templateMgr->addJavaScript('d3','https://d3js.org/d3.v4.min.js', array('context' => 'frontend-article-view'));
you could enter the following:
$templateMgr->addJavaScript('d3v4','https://d3js.org/d3.v4.min.js', array('context' => 'frontend-article-view'));
I.e. instead of d3 you would use the name d3v4.
This change would try to include both d3 libraries, but it could be that d3 does not support having two versions loaded on the same page, so that this might not help.
If that does not help, you unfortunately cannot use both plugins, you have to decide which plugin you would like to use.

Best,
Bozana