sedici / badges

OJS plugin for displaying altmetric badges
GNU Lesser General Public License v3.0
2 stars 5 forks source link

Help with implementation #1

Open gabeLon opened 2 years ago

gabeLon commented 2 years ago

Hi, would like to ask you for some guidance to implement this plugin on our journal (OJS version 3.1.2)

By now I have installed the plugin on plugin/generic/badges directory and activated it through OJS admin Website settings > plugins. On curious thing is that after activating it, changes made on Badges plugin settings (i.e. activating Show Dimensions badge or any other) do not get saved y I try to go settings afterwards.

I have modified our current ojs theme (https://github.com/Vitaliy-1/oldGregg) on templates/frontend/objects/article_details.tpl, adding this line of code: {call_hook name="Templates::Article::Details"}

Our journal has active Crossref DOI and we where also able to implement Paperbuzz Plugin.

Thanks in advance.

gonetil commented 2 years ago

Hi @gabeLon . have you checked your server logs? Maybe there is some clue there that points to the issue while saving settings. Let me know how it goes!

diegomejia071 commented 2 years ago

Hi @gonetil, the same problem as @gabeLon happens to me in my OJS version 3.2.1.4.

I have already installed the plugin v1.0.1.0 in the plugin/generic/badges directory and activated it through the OJS administrator website settings > plugins. But after activating it, the changes made to the Badges plugin settings (i.e. activating the Show Dimensions badge or any other) are not saved.

I don't know if @gabeLon can solve this problem.

Nothing strange is shown in the error log, no phpoerror or anything like that is shown.

It only shows a message that is not an error but a warning, but it is more cosmetic I think.

PHP Warning: Declaration of BadgesSettingsForm::execute() should be compatible with Form::execute(...$functionArgs) in /plugins/generic/badges/BadgesSettingsForm.inc.php on line 0

gonetil commented 2 years ago

Hi Diego, I pushed an updated version of this plugins a few days ago into master branch: https://github.com/sedici/badges/commit/d32dd8df81f5400a5e15a3c3d79d3db578ce198c

We are using this version on OJS 3.3 . I think it should also work on OJS 3.2 . Please update and let me know.

diegomejia071 commented 2 years ago

Hi @gonetil,

Yes, it works with that update. Thank you very much.

diegomejia071 commented 1 year ago

Hi @gonetil,

I upgraded my platform OJS 3.2.1.4 to version 3.3.0.13.

But the plugin doesn't work and when trying to display the badges and graphics in any summary of an article, it shows me the following error:

https://api.altmetric.com/v1/doi/10.17533/udea.ikala.v27n3a13?callback=_altmetric.embed_callback&domain=revistas.udea.edu.co&key=3c130976ca2b8f2e88f8377633751ba1&cache_until=10-2 net::ERR_ABORTED 404

image