GithubHelp home page GithubHelp logo

rboelter / citations Goto Github PK

View Code? Open in Web Editor NEW
11.0 3.0 9.0 164 KB

Scopus/Crossref Plugin for OJS 3.x : This plugin shows the total number of citations and a "cited by" article list from Scopus and/or Crossref.

License: GNU General Public License v3.0

PHP 66.15% Smarty 14.58% CSS 3.75% JavaScript 15.52%
pkp ojs ojs-plugin scopus crossref crossref-plugin citations article

citations's Introduction

Hi there 👋

citations's People

Contributors

aguen avatar jhonathanlepidus avatar laislepidus avatar rboelter avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

citations's Issues

not working (OJS 3.1.2.4)

Describe the bug
The plugin is not working in our OJS 3.1.2.4 (see image below). Initially we thought this was due to the keys not being saved. But I checked #3 and indeed the Crossref boxes are blue (we have put in the keys for this) and the Scopus keys are not (keys not used), so this seems to work as described.

However we get no response from the plugin.
We tried selecting only crossref, only scopus, no scholar, no PMC ... nothing changes in the front end.

What application are you using?
OJS 3.1.2.4
Linux server, PHP 7.3.25

Additional information
Screenshot from front-end:
image

The query result for the number of citations of the article is 0

I added the Scopus/Crossref Citations Plugin in the OJS Plug-in Center and filled in the corresponding values ​​in the prompted fields. However, when I configured my journal, it did not seem to take effect. My judgment is based on my An article in the journal is included in Europe PMC and can be searched through the article title. However, by clicking the Europe PMC icon of the plug-in, in the newly opened web page, the search field is (REF:10.54844/prm.2022.0098), I want to This is the DOI of this article, but no search results were found. The prompt returned: There are no citations matching your query. I want to know what went wrong. Can you tell me, thank you very much.

微信截图_20231123153812

Modifying the instructions for Crossref credentials

Hi @RBoelter. My name is Isaac Farley, Crossref technical support manager. Thanks for creating the Scopus/Crossref Plugin for OJS 3.x! Many of our members using OJS 3 make use of this plugin, so we're all grateful for it being available.

I wanted to suggest some improvements to the Crossref section of the instructions.

  1. We recently made changes to the Cited-by service. It is now open to all of our members and enabled from the start of their membership, so there's no need for our members to contact us to request that we enable it. We also no longer require that our members register their own references before using the Cited-by service (albeit we do strongly encourage that members register all their references). That last bit wasn't included in your instructions, but just adding it here to be thorough and as an FYI to anyone reading this request.

So, for this first improvement, would you be open to updating the messaging from 'You must contact Crossref to ask for the Cited-by service to be enabled for your prefix(es)' to instead read 'The Cited-by service is enabled by default for all Crossref members/prefixes'?

  1. Cited-by is not powered by our API. And, use of our API does not require credentials. Thus, the instructions about using a 'Crossref API' username and password to enable the plugin does cause some confusion for our members. Instead, we refer to those credentials simply as members' 'Crossref username' and 'Crossref password.'
Screenshot 2023-07-07 at 8 28 42 AM

So, for this second improvement, would you be open to updating the instructions to remove the mention of our API? This is more accurate:

In order to use the Cited-by service, you must be a Crossref member. Membership with Crossref may require fees. Please enter your Crossref credentials below.

Enter here your Crossref username
Enter here your Crossref password

Thanks in advance for considering these changes,
Isaac

PHP Warning Result

Dear Citations plugin team,
I have installed the plugin on the OJS V.3.2.1.2 (Nov 2020), and I got PHP Warning from the root error_log. Here are the notices

-Dec-2020 00:07:07 UTC] PHP Warning: simplexml_load_string(): Entity: line 1: parser error : Start tag expected, '<' not found in /home/adeputra23/public_html/myjurnal/plugins/generic/citations/classes/CitationsParser.inc.php on line 64
[07-Dec-2020 00:07:07 UTC] PHP Warning: simplexml_load_string(): not authorized to view references in /home/adeputra23/public_html/myjurnal/plugins/generic/citations/classes/CitationsParser.inc.php on line 64
[07-Dec-2020 00:07:07 UTC] PHP Warning: simplexml_load_string(): ^ in /home/adeputra23/public_html/myjurnal/plugins/generic/citations/classes/CitationsParser.inc.php on line 64
[07-Dec-2020 00:07:07 UTC] PHP Notice: Trying to get property 'query_result' of non-object in /home/adeputra23/public_html/myjurnal/plugins/generic/citations/classes/CitationsParser.inc.php on line 65
[07-Dec-2020 00:07:07 UTC] PHP Notice: Trying to get property 'body' of non-object in /home/adeputra23/public_html/myjurnal/plugins/generic/citations/classes/CitationsParser.inc.php on line 65
[07-Dec-2020 00:07:07 UTC] PHP Notice: Trying to get property 'forward_link' of non-object in /home/adeputra23/public_html/myjurnal/plugins/generic/citations/classes/CitationsParser.inc.php on line 65

What should I do next?

Thanks for the support and attention.

Regards,
Rafiq

Adding or changing new depend ices to resolve PHP 8.1deprecation messages

Describe the bug
As we upgraded our OJS from 3.3.0-13 to 3.3.0-14. everything is working fine except the log file are keep loading these deprecation messages in PHP 8.1 which make the size of the log file very large.
How can I solve this issue?
You help is highly apricated.
Kind Regards,

For OJS 3.3.0-14 and PHP 8.1.x

[17-Feb-2023 18:08:50 Asia/Baghdad] PHP Deprecated: htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in /public_html/plugins/generic/dublinCoreMeta/DublinCoreMetaPlugin.inc.php on line 155 [17-Feb-2023 18:09:10 Asia/Baghdad] PHP Deprecated: htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in /public_html/lib/pkp/lib/vendor/smarty/smarty/libs/plugins/modifier.escape.php on line 36 [17-Feb-2023 18:09:10 Asia/Baghdad] PHP Deprecated: json_decode(): Passing null to parameter #1 ($json) of type string is deprecated in /public_html/plugins/generic/citations/CitationsPlugin.inc.php on line 49 [17-Feb-2023 18:09:17 Asia/Baghdad] PHP Deprecated: stripslashes(): Passing null to parameter #1 ($string) of type string is deprecated in /public_html/lib/pkp/classes/citation/Citation.inc.php on line 99 [17-Feb-2023 18:09:17 Asia/Baghdad] PHP Deprecated: stripslashes(): Passing null to parameter #1 ($string) of type string is deprecated in /public_html/lib/pkp/classes/citation/Citation.inc.php on line 99 [17-Feb-2023 18:09:17 Asia/Baghdad] PHP Deprecated: stripslashes(): Passing null to parameter #1 ($string) of type string is deprecated in /public_html/lib/pkp/classes/citation/Citation.inc.php on line 99 [17-Feb-2023 18:09:17 Asia/Baghdad] PHP Deprecated: stripslashes(): Passing null to parameter #1 ($string) of type string is deprecated in /public_html/lib/pkp/classes/citation/Citation.inc.php on line 99 [17-Feb-2023 18:09:17 Asia/Baghdad] PHP Deprecated: stripslashes(): Passing null to parameter #1 ($string) of type string is deprecated in /public_html/lib/pkp/classes/citation/Citation.inc.php on line 99
To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

What application are you using?
OJS/OPS or OMP version X.X.X

Additional information
Please add any screenshots, logs or other information we can use to investigate this bug report.

Citation API input not visible after enter the data

Installed Plugin to 3.2.1.2

Server Info
OS platform | Linux
PHP version | 7.2.17
Apache version | Apache/2.4.6 (CentOS)
Database driver | mysqli
Database server version | 5.5.60-MariaDB

After adding API key to the field but it is not visible after save.
Scopus API and CrossRef API not visible. Checked one by one by selection one by one by selecting top dropdown menu.

citation

However, I can get Google citation.
I am not sure this is common.

Thanks.
Zashirul

Unable to open setting on php 8.0

Describe the bug
When activating the plugin for a journal for the first time, the administrator is getting and invalid JSON error when they try to open the plugin settings and a php error is generated:

[Fri Mar 17 14:12:49.140640 2023] [php:error] [pid 39507] [client xx.xx.xx.xx:xxxx] PHP Fatal error:  Uncaught AssertionError: assert(isset($params['id'])) in /var/www/ojs/lib/pkp/classes/form/FormBuilderVocabulary.inc.php:116Stack trace:
#0 /var/www/ojs/lib/pkp/classes/form/FormBuilderVocabulary.inc.php(116): assert(false, 'assert(isset($p...')
#1 /var/www/ojs/cache/t_compile/cd5329b7a22e82788ebdd3335651669dda8c9df1^6e5b8fb83fe9660aa95a27d924b2f57a8d7bb78d_0.plugins-3-plugins-generic-citations-generic-citations.settings.tpl.php(55): FormBuilderVocabulary->smartyFBVFormArea(Array, NULL, Object(Smarty_Internal_Template), true)
#2 /var/www/ojs/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_6414b7decbbb39_10296392(Object(Smarty_Internal_Template))
#3 /var/www/ojs/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode(Object(Smarty_Internal_Template))
#4 /var/www/ojs/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(216): Smarty_Template_Compiled->render(Object(Smarty_Internal_Template))
#5 /var/www/ojs/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(232): Smarty_Internal_Template->render(false, 0)
#6 /var/www/ojs/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(116): Smarty_Internal_TemplateBase->_execute(Object(Smarty_Internal_Template), NULL, 'cd5329b7a22e827...', NULL, 0)
#7 /var/www/ojs/lib/pkp/classes/template/PKPTemplateManager.inc.php(1072): Smarty_Internal_TemplateBase->fetch('plugins-3-plugi...', NULL, 'cd5329b7a22e827...', NULL)
#8 /var/www/ojs/lib/pkp/classes/form/Form.inc.php(197): PKPTemplateManager->fetch('plugins-3-plugi...')
#9 /var/www/ojs/plugins/generic/citations/CitationsSettingsForm.inc.php(47): Form->fetch(Object(Request), NULL, false)
#10 /var/www/ojs/plugins/generic/citations/CitationsPlugin.inc.php(132): CitationsSettingsForm->fetch(Object(Request))
#11 /var/www/ojs/lib/pkp/classes/controllers/grid/plugins/PluginGridHandler.inc.php(236): CitationsPlugin->manage(Array, Object(Request))
#12 /var/www/ojs/lib/pkp/classes/core/PKPRouter.inc.php(395): PluginGridHandler->manage(Array, Object(Request))
#13 /var/www/ojs/lib/pkp/classes/core/PKPComponentRouter.inc.php(257): PKPRouter->_authorizeInitializeAndCallRequest(Array, Object(Request), Array)
#14 /var/www/ojs/lib/pkp/classes/core/Dispatcher.inc.php(144): PKPComponentRouter->route(Object(Request))
#15 /var/www/ojs/lib/pkp/classes/core/PKPApplication.inc.php(362): Dispatcher->dispatch(Object(Request))
#16 /var/www/ojs/index.php(68): PKPApplication->execute()
#17 {main}  thrown in /var/www/ojs/lib/pkp/classes/form/FormBuilderVocabulary.inc.php on line 116, referer: https://iopn.library.illinois.edu/journals/jams/management/settings/website

To Reproduce
Steps to reproduce the behavior:

  1. Activate the plugin from the gallery
  2. Go to installed plugins and click "Settings" under Scopus/Crossref Plugin
  3. See error message

What application are you using?
OJS version 3.3.0-13 php 8.0.x

Additional information
Similar to pkp/pkp-lib#8757

[OJS-3.4.0-1] PHP Fatal error: Uncaught Error: Class "FormValidatorPost" not found in

OJS-3.4.0.1
PHP-8.2

Error: Failed Ajax request or invalid JSON returned.

PHP Fatal error:  Uncaught Error: Class "FormValidatorPost" not found in F:\wamp64\www\ojs3401\plugins\generic\citations\CitationsSettingsForm.inc.php:14
Stack trace:
#0 F:\wamp64\www\ojs3401\plugins\generic\citations\CitationsPlugin.inc.php(142): CitationsSettingsForm->__construct(Object(CitationsPlugin))
#1 F:\wamp64\www\ojs3401\lib\pkp\classes\controllers\grid\plugins\PluginGridHandler.php(282): CitationsPlugin->manage(Array, Object(APP\core\Request))
#2 [internal function]: PKP\controllers\grid\plugins\PluginGridHandler->manage(Array, Object(APP\core\Request))
#3 F:\wamp64\www\ojs3401\lib\pkp\classes\core\PKPRouter.php(334): call_user_func(Array, Array, Object(APP\core\Request))
#4 F:\wamp64\www\ojs3401\lib\pkp\classes\core\PKPComponentRouter.php(291): PKP\core\PKPRouter->_authorizeInitializeAndCallRequest(Array, Object(APP\core\Request), Array)
#5 F:\wamp64\www\ojs3401\lib\pkp\classes\core\Dispatcher.php(165): PKP\core\PKPComponentRouter->route(Object(APP\core\Request))
#6 F:\wamp64\www\ojs3401\lib\pkp\classes\core\PKPApplication.php(373): PKP\core\Dispatcher->dispatch(Object(APP\core\Request))
#7 F:\wamp64\www\ojs3401\index.php(21): PKP\core\PKPApplication->execute()
#8 {main}
  thrown in F:\wamp64\www\ojs3401\plugins\generic\citations\CitationsSettingsForm.inc.php on line 14

Can't install via plugin gallery

Hi,

My website doesn't allow me to install this plugin via plugin gallery since it can't unpack tar.gz file.
Because of that I tried to install it manually by uploading to website, but unfortunately it's not working.
Is there a better way to install it manually, maybe manually creating the required data tables, dependencies..

[OJS 3.3.0.13] Scopus/Crossref plugin does not show Scopus citations

Hi,

I have the Scopus/Crossref plugin installed within our OJS platform, but I’m having a problem with it not displaying Scopus citations. Crossref citations are displayed normally, but Scopus citations are not. What can I do in this case or how can I solve this problem.

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.