Describe the issue or problem
After upgrading to OJS 3.4.0.10, scheduling or publishing some issues fails with the error “Unauthenticated ORCIDs detected for contributors” (Spanish UI: “Se han detectado ORCID no autenticados en los colaboradores/as”). Expected: contributors who already have an ORCID with a valid access token should not block publication. In our case, the database shows contributors with an ORCID value in author_settings but no orcidAccessToken. Some of these ORCIDs predate the upgrade; others were added after the upgrade by selecting an existing user with a validated ORCID. Removing and re-adding the ORCID on the contributor sometimes allows publication, and sometimes does not.
Steps I took leading up to the issue
Upgraded OJS to 3.4.0.10.
Opened an issue in “Publication” workflow and tried to schedule it for publication.
Opened the contributors tab, where the contributor has an ORCID with no authentication.
See error: “Se han detectado ORCID no autenticados en los colaboradores/as”.
What application are you using?
OJS 3.4.0.10, orcidProfile plugin 1.3.4.9 (installed from the plugin gallery).
Additional information
Database check (author_settings): 187 contributors with an orcid value, 143 with orcidAccessToken, 44 without.
No related entries were found in the PHP error log.
Question 1: Is the access token expected to be copied from the user profile to the author record when a user is added as a contributor? pkp-lib issue #12476 was reported for 3.5.0-3; was it present in 3.4.x too?
Question 2: Is the recommended fix for affected contributors to send the authorization email, or to delete only their ORCID and token?
The message comes from a check inside the ORCID Profile plugin itself. In the stable-3_4_0 branch, OrcidProfilePlugin::validate() runs on Publication::validatePublish and looks at every contributor of the publication being published:
a contributor with an ORCID iD (orcid in author_settings) but no orcidAccessToken on that same contributor record → hasUnauthenticatedOrcid (“Unauthenticated ORCIDs detected for contributors”);
two contributors with the same iD → hasDuplicateOrcids.
There is no plugin setting that turns this off, and it only reads the contributor (author) record — a token held anywhere else does not count. That is why removing and re-adding the iD only sometimes helps: it works when the re-added iD arrives with a token (the author completed the authorization), not when the iD is typed or copied back.
What works:
For each flagged contributor, send the ORCID authorization request from the contributor’s edit form and ask the author to complete it. Once the token is stored on that contributor, publishing goes through.
If you must publish before the authors respond: use “Delete ORCID iD and access token” on those contributors, publish, then request authorization afterwards.
To list every contributor that will block (read-only query, OJS 3.4 tables):
SELECT a.author_id, a.publication_id, s.setting_value AS orcid
FROM authors a
JOIN author_settings s ON s.author_id = a.author_id AND s.setting_name = 'orcid'
WHERE s.setting_value <> ''
AND NOT EXISTS (SELECT 1 FROM author_settings t
WHERE t.author_id = a.author_id
AND t.setting_name = 'orcidAccessToken' AND t.setting_value <> '');
The check is in OrcidProfilePlugin.php (stable-3_4_0), function validate().
Thank you very much for the explanation, it clarifies the rule.
We will follow the two options you describe: requesting authorization from each affected contributor, and removing the ORCID iD only where publication is urgent.
One open question remains for us: when a user is added as a contributor to a new submission, the access token is not copied from their user profile to the author record in OJS 3.4.0.10. Is this expected behaviour in 3.4.x, or is it a bug that was fixed in 3.5 (related to pkp-lib #12476)?
Hello @Elizabeth12, let me see if I understand this open question correctly and please let me know if I’m misunderstanding anything.
when a user is added as a contributor to a new submission, the access token is not copied from their user profile to the author record in OJS 3.4.0.10. Is this expected behaviour in 3.4.x, or is it a bug that was fixed in 3.5 (related to pkp-lib #12476)?
There is one ambiguity to the question that can cause some confusion. Particularly with, “..when a user is added” part, there are two ways and will discuss them below. I believe this is slightly different to the ticket #12476. That ticket dealt with ORCiD plugin integration into core OJS instead of a plugin and dealt with a scenario where a user has already been created in the user table (with ORCiD authentication) who then goes on to submit as an author. For your scenario when a user is added as a contributor to the new submission this can be done a few ways. During a new submission you can have an author role automatically added in the contributors list but they would already be in the user table. Or you can manually add a new contributor (author) but they are not registered in the system. Any contributor that is added this way will not have been registered in the user table. Therefore they will not have thier ORCiD access token is not copied and it is only available for that single submission. After the submission is created you can add other contributors to the submission and they also will not have any user registered in the user table. This is an interesting usecase that was not covered in #12476. I will chat with the team and see what can be done for this scenario.
Ok I followed up with our team and this scenario where the registered user author who creates a new submission is fixed in 3.5. And the other scenario I described will not be fixed and the reason for that is that if a Contributor who is an author on a submission is created then they are stamped in the metadata. If they then register a user (even with the same name or different name) with the journal they still must remain an author for the submission. I hope that clears it up.
My suggestion would be to upgrade to 3.5 to gain the benefit of #12476 among many other things :).
Thank you very much, grierb. This clarifies it a lot, and it confirms the two cases we were not sure how to separate.
We will request authorization from the affected contributors on each submission, and we will plan the upgrade to 3.5 with a backup and a test environment first.
One last question for our planning: is there any plan to backport #12476 to the 3.4.x line, or should we consider 3.5 the only path for this fix?