-
Notifications
You must be signed in to change notification settings - Fork 447
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
[OJS/OMP] quickSubmit Plugin - switching submission language not working since 3.2.x #6773
Comments
Hi everyone, PR openend for Branch Best regards, Nils |
And for |
Thanks @isgrim, this looks good to me. We'll also need a PR to the @asmecher I notice that the QuickSubmit plugin sets the |
@NateWr, yes, please remove that line of code; it's not required and shouldn't be there. |
PR for stable_3-3-0: pkp/quickSubmit#54 |
Fix for pkp/pkp-lib#6773 in branch stable-3_2_1
Thanks @isgrim! I've merged those PRs so the fix is in @asmecher I removed the offending |
Describe the bug
Hi everyone,
a co-worker had problems with using the quicksubmit Plugin for adding submissions with different locales than the default journal locale.
When using the QuickSubmit Plugin:
It seems the switch of the submission language does not propagate to the publication object, so the AuthorGridHandler for the contributors grid still operates on the initial language set, which is saved when the QuickSubmitForm first creates a Submission and Publication object and saves to the database. This is still an issue in the 3.3 version of the plugin (main Branch).
Initial locale of the publication is set here:
https://github.com/pkp/quickSubmit/blob/main/QuickSubmitForm.inc.php#L229-L237
When switching the submission language in the form, the form is reloaded but no new submission or publication is created. Instead the submission language is updated here, but not for the publication:
https://github.com/pkp/quickSubmit/blob/main/QuickSubmitForm.inc.php#L52-L60
But Submission::setLocale is deprecated since 3.2, and only publication locale is used as default/required locale for the AuthorForm:
https://github.com/pkp/pkp-lib/blob/main/controllers/grid/users/author/form/PKPAuthorForm.inc.php#L34
This means you can't add a submission with a different locale other than the journal/press default using the quickSubmit Plugin. And becaue you cant see the locale of the submission after the submit, the issues with the metadata wont be obvious.
To Reproduce
Steps to reproduce the behavior (for a journal/press with at least two submission locales enabled):
What application are you using?
Tested in OJS 3.2.1-4 but should be in any version after 3.2.0 of OJS/OMP
Additional information
@NateWr @asmecher , this is related to #5502 , because you cant change the publication locale at the moment after submitting.
Thanks for your hard work in maintaining this codebase!
The text was updated successfully, but these errors were encountered: