Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to submit review data with multilingual submission #322

Closed
jnugent opened this issue Oct 16, 2024 · 5 comments
Closed

Unable to submit review data with multilingual submission #322

jnugent opened this issue Oct 16, 2024 · 5 comments
Assignees

Comments

@jnugent
Copy link
Member

jnugent commented Oct 16, 2024

Describe the bug
we've a client using OJS 3.3, with a member API account. They are trying to integrate the reviewer thanking component and the review submission to ORCID is failing with

2024-10-16 11:18:51.921 INFO Publication fail: {"response-code":400,"developer-message":"400 Bad request: invalid JSON - cvc-complex-type.2.4.a: Invalid content was found starting with element '{\"http://www.orcid.org/ns/common\":translated-title}'. One of '{\"http://www.orcid.org/ns/common\":title}' is expected.","user-message":"Invalid JSON.","error-code":9047,"more-info":"https://members.orcid.org/api/resources/troubleshooting"}

Looking at the code it seems that the translated-title stuff is added to the payload if the default language is not the language of the submission. I'm not really sure why the translated title is showing up ahead of the regular title. All of the title metadata is filled in in all locales.

I can provide access to the installation and the orcid.log if necessary.

OJS 3.3

@ewhanson ewhanson self-assigned this Oct 17, 2024
@ewhanson
Copy link

ewhanson commented Oct 17, 2024

Thanks @jnugent, I don't remember the exact details, but I had run into something similar when moving the plugin into the main library for 3.5. I'll have a look and get it fixed. I shouldn't need anything specific, but if I do need to see the orcid.log I'll let you know.

ewhanson added a commit to ewhanson/orcidProfile that referenced this issue Dec 6, 2024
ewhanson added a commit to ewhanson/ojs that referenced this issue Dec 6, 2024
ewhanson added a commit to ewhanson/orcidProfile that referenced this issue Dec 6, 2024
ewhanson added a commit to ewhanson/orcidProfile that referenced this issue Dec 6, 2024
@ewhanson
Copy link

ewhanson commented Dec 6, 2024

@bozana, could you have a look at these PRs? They update the needed code to send along titles/translated titles. Titles are always required and we will now send translated titles where they exist. I have confirmed that they do not appear as part of the metadata displayed in the reviewers ORCID profile. Thanks!

@bozana
Copy link

bozana commented Dec 9, 2024

Hi @ewhanson, I took a look and left a comment and a question in the PR for the main branch, but those are relevant to all 3 :-)
Thanks!

@ewhanson
Copy link

Merged!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants