ORCID Plugin - ORCID iD Not Retrieved After Connecting/Registering

We have been working with sandbox credentials to test the ORCID plugin before we can obtain production ORCID credentials. When we attempt to register new accounts connected to test ORCID iDs, we can successfully log into our sandbox ORCID account, but none of the information automatically populates the registration fields, nor is the ORCID iD associated with the account in any apparent way (viewing the Public tab on the test account’s profile shows a blank field for ORCID iD, and sandbox ORCID iDs cannot be entered manually). If we attempt to manually enter the ORCID in the profile, the character limit prevents us from entering a sandbox ORCID iD.

Are sandbox ORCID credentials not accepted on OJS 3?
Additionally, if you run a journal that was able to obtain production credentials for use with OJS from ORCID, how were you able to do a demonstration of your ORCID integration in order to obtain production credentials?

Thank you for any insight you may have.

Hi @ualjp,

I was working on the plugin for a while, in the current version of the plugin (1.1.1) the user registration with ORCID is not working with OJS 3.1.2. The issue is known and I just filed it today: https://github.com/pkp/pkp-lib/issues/4601

We are still working on a solution.

But you should be able to use Sandbox credentials and should be able to connect the ORCID iD from the User profile page . See the public tab and connect and authenticate ORCID iD with the button.

Regards,

Nils Weiher

After update of OJS to 3.1.2, I am facing a problem. Whenever, the editor makes a decision Revision or Accepted of manuscript, the email is not delivered to the author. Rather we receive error message with the subject line : Subject: [SJOM] Submission ORCID.

I was surprise, this has nothing to do with the editor decison of accepting/rejecting/revision of article.

Then I looked at the metadata of the article (specificaly the author details), and I noticed a strange fields regarding the ORCID (Screenshot attached ).

.

And yes, Now, I have disabled the ORCID plugin and things are back to normal. At last authors are notified for the decisions and emails are not bouncing.

Please help to resolve this issue of ORCID Plugin.
Thanks and Regards

Hi @seisense,

I tried to reproduce the error in our test instanace, but couldn’t find it.

Do you remember what the settings where for the ORCID Profile plugin, while you had it enabled?
And which step in the Submission process was not sending e-mail?

Regards,

Nils Stefan Weiher

I also had an issue - it appears that OJS is not set up to test with sandbox ORCID iDs. I was testing the ORCID plugin using ORCID sandbox API credentials, and connected my sandbox ORCID iD. The OJS journal shows up as a “trusted organization” in the account settings of my sandbox ORCID record, however, the ORCID iD listed for me in OJS is listed as a real ORCID iD, not a sandbox ORCID iD, so it’s linking to the wrong ORCID record. for example: my sandbox ORCID iD is this: https://sandbox.orcid.org/0000-0003-3174-3686 but it is showing up in OJS as https://orcid.org/0000-0003-3174-3686 (no sandbox in the URL). This is a problem for people trying to test the plugin using sandbox API credentials and sandbox ORCID iD. Thus, I was not able to test the functionality of writing publication information to the sandbox ORCID record, because OJS is expecting a real ORCID iD, not a sandbox ORCID iD. Is there a work-around for this, or can PKP please allow for sandbox ORCID iDs to be used so that people can test the plugin functionality before going to production?

Also, in this same test, the administrator sent me an email to connect my ORCID iD with a specific publication submission. When I clicked on the link from the email to connect my ORCID iD, I received the error, captured in the screen shot below. The Auth URL from the email was this:
https://sandbox.orcid.org/oauth/authorize?client_id=APP-KGH8CN192BSXBEFB&response_type=code&scope=%2Factivities%2Fupdate&redirect_uri=https%3A%2F%2Fjournals.uwyo.edu%2Findex.php%2Fela%2Forcidapi%2ForcidVerify%3Ftoken%3D59cdb066d895d0e2260d1cd60b8f7175%26articleId%3D5263 – is this because I had already connected my ORCID with my profile? The authorization link is pointing to the sandbox but the auth code returned is not being successfully exchanged, but I can’t tell why.

It seems like OJS is not set up to work with sandbox ORCID iDs? Also, I would have thought that since I already connected my sandbox ORCID iD with my OJS author profile, that information would propagate across the system?

Hi all,

See https://github.com/pkp/pkp-lib/issues/4893 for the issue entry filed regarding sandbox IDs.

Regards,
Alec Smecher
Public Knowledge Project Team

Hi There, is this the same issue I am having?

The ORCID plugin is enabled on OJS 3.2 we are using, am I am able to send out emails to authors asking for them to authenticate their ids. However, the received email from the user end has a link that does not work:
Screen Shot 2020-06-26 at 14.11.21

The link takes then to this error page:

Screen Shot 2020-06-26 at 14.12.39

Kully

Hi @kulren,

just wanted to make sure, which version of the plugin you are using ?

This is the newest version of the plugin for OJS 3.2.1

Could you please check if you have the v1_1_2-4 and if not try to update the plugin.

If the error still persists, can you point me the link , which the connect button is pointing ?

Best wishes,
Dulip Withanage

Hi Dulip,

This is the version I have:

Screen Shot 2020-06-29 at 12.21.40

Do we need to upgrade?

Kully

@kulren, @Dulip_Withanage I have the same problem, I have the newer version of the plugin, but when sending the email and pressing the link, it gives the authors an error and the ORCID is not recognized.

Help please.

Connect button: (without my client ID)
https://www.medicinaclinicaysocial.org/index.php/MCS/management/settings/<a%20href=‘https://orcid.org/oauth/authorize?client_id=xxxxxxxxxxxxx&response_type=code&scope=%2Fauthenticate&redirect_uri=https%3A%2F%2Fwww.medicinaclinicaysocial.org%2Findex.php%2FMCS%2Forcidapi%2ForcidVerify%3Ftoken%3D4d23913322df54a2c5850e6dee57eac7%26publicationId%3D127’%20class=‘authorOrcidUrl-style-class’>https://orcid.org/oauth/authorize?client_id=xxxxxxxxxxx&response_type=code&scope=%2Fauthenticate&redirect_uri=https%3A%2F%2Fwww.medicinaclinicaysocial.org%2Findex.php%2FMCS%2Forcidapi%2ForcidVerify%3Ftoken%3D4d23913322df54a2c5850e6dee57eac7%26publicationId%3D127</a>

@kulren @juanivan92

You both have the newest version and it seems , there is a bug.
Is it possible, for me to get a log of the communication in $OJS_FILES/orcid.log to see the details.

An email is also good for me.

Hi @Dulip_Withanage

Sure, you can download the zip file form github or clone the plugin to the generic plugins folder.

Your settings will not be deleted. But I strongly recommend a database back before such kind of actions.

I have not found any “orcid.log” file.
I download the zip file from github, but but it still doesn’t work.

any ideas about this problem?

The orcid.log file should be under ojs files folder. Can you restart the web server?

@kulren

just curious, do you use the default theme or you any kind of email customizations in the OJS ?

@Dulip_Withanage it’s the default theme and the plugin has been updated to 1.1.2.4

I looked in the table [email_templates_settings] searching for orcid:
It reads:

Dear {$authorName},

You have been listed as an author on the manuscript submission "{$articleTitle}" to {$contextName}.

Please allow us to add your ORCID id to this submission and also to add the submission to your ORCID profile on publication.
Visit the link to the official ORCID website, login with your profile and authorize the access by following the instructions.
a href="https://www.mysite.org/site/management/settings/{$authorOrcidUrl}"> img id="orcid-id-logo" style="display: block; margin: 0 .5em 0 0; padding: 0; float: left;" src="https://orcid.org/sites/default/files/images/orcid_16x16.png" alt="ORCID iD icon" width="16" height="16" />Register or Connect your ORCID iD
a href="https://www.mysite.org/site/management/settings/{$orcidAboutUrl}">More about ORCID at {$contextName}

If you have any questions, please contact me.
Kind regards

p>{$principalContactSignature}

Question: shouldn’t the

<a href="https://www.mysite.org/site/management/settings/{$authorOrcidUrl}">

in the text just be
<a href="{$authorOrcidUrl}">
??

What does $authorOrcidUrl turn into? When I look in the email it looks the result is a link that starts with <a href="
etc which will turn into an incorrect url if the {$authorOrcidUrl} is proceeded by
<a href="https://www.mysite.org/site/management/settings/

Hi @ojknl20,

What does $authorOrcidUrl turn into?

e.g. It should look kike this.
https://sandbox.orcid.org/oauth/authorize?client_id=APP-XXXXXXXXXXXXXX&response_type=code&scope=/activities/update&redirect_uri=http://localhost:8000/index.php/orcid/orcidapi/orcidVerify?token=XXXXXXXXXXXXXXXXXXXX&articleId=4

It is automatically generated.

in templates, the $authorOricdUrl ist just used, e.g. <a href="{$authorOrcidUrl}">

At the User registration page, while authorizing the ORCID iD, a blank page appears. The OJS error log says:

[08-Aug-2020 06:17:50 America/Boise] PHP Deprecated: Non-static method PKPApplication::getRequest() should not be called statically in …/plugins/generic/registrationNotification/RegistrationNotificationPlugin.inc.php on line 54
[08-Aug-2020 06:17:50 America/Boise] ojs2: 404 Not Found

I’m using latest OJS 3.2.1.1 and ORCID plugin v1.1.2.4

Journal’s User registration page: https://horizonepublishing.com/journals/index.php/PST/user/register

What could be the fix? Any suggestions, please.