-
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
Make submission language selection and metadata forms independent from website language settings #9425
Comments
Hi @jyhein, I went over pkp-lib and ojs changes. Lots of work! Thanks a lot, it looks great! |
What about the case when a journal removes a (metadata) locale that was already used and the data exist in (and is not submission primary locale)? |
Thanks for the review, @bozana ! I try to answer your questions: Q: Could we user the journal primary locale for supportedDefaultSubmissionLocale? Q: What about the case when a journal removes a (metadata) locale that was already used and the data exist in (and is not submission primary locale)? |
…ndent from website language settings
…s independent from website language settings
…s independent from website language settings
…ndent from website language settings
…s independent from website language settings
…s independent from website language settings
…s independent from website language settings
…s independent from website language settings
…s independent from website language settings
…s independent from website language settings
…s independent from website language settings
…ndent from website language settings
…ndent from website language settings
…s independent from website language settings
…ndent from website language settings
…ndent from website language settings
…ndent from website language settings
…s independent from website language settings
…ndent from website language settings
…ndent from website language settings
…s independent from website language settings
Hi @jyhein, I went through the code once again. The changes in PKP-LIB and OJS looks very good! I left a few questions in OMP and OPS PRs -- I think you still need to finish them, right? |
"-- sometimes I am not sure if submission->getPublicationLanguages() should be used or publication->getLanguages. " |
Yes... I was just a little bit confused because it was differently in OMP and OPS -- but I suppose OMP and OPS need to be adapted still? |
Yes, I haven't updated OMP/OPS yet. lib/pkp/classes/publication/Repository.php: add() vs edit(): I'm not sure about this |
Hi @jyhein, |
Hi @jyhein, I roughly tested it and all is good, except that one comment for the upgrade script in the pkp-lib: It seems it should be TABLE_CATALOG instead of TABLE_SCHEMA for postgresql. |
Related issues:
Issue description
The language settings should be separated into two independent entities. This allows us to serve more use cases and makes a clear distinction between UI and website language selection and the language settings for submissions.
The Website Languages entity works like before. It controls which languages are available for the user interface. The forms selection is used to control the language versions for context settings fields. The available languages are based on the available application translations.
The Submission Language is controlled separately. Instead of being tied to the limitation of available application locales, it will use a standard ISO 639-1 list for available languages. It will also allow the managers to activate just the metadata fields for a language, but activating Submissions should also activate the Forms automatically.
The current Submission Language settings only reflect the current language policy of the journal. This means that if a journal imports German language back content but does not publish in German anymore, the metadata forms and the submission primary language should always work independently. If therefore the primary language of a submission is for example German, the submission metadata should be editable without activating the German language metadata forms in the settings. Technically this means that the UI for the publication metadata fields will always take into account the submission metadata when loading available forms. The editor can be notified with a visual cue that the submission language is no longer used in the context.
Changes
Questions
Q: Could we not use the journal primary locale for supportedDefaultSubmissionLocale? Also, should maybe journal primary locale always be part of supportedAddedSubmissionLocales, supportedSubmissionLocales, and supportedSubmissionMetadataLocales?
A: The idea is to separate the two: UI language and submission language. The journal might publish using a language not available as UI language. We should not force them to accept submissions also with the UI language they end up using.
The attached PR's includes the following code changes:
PRs:
PKP: #9309
OJS: pkp/ojs#4040
OMP: pkp/omp#1461
OPS: pkp/ops#569
The text was updated successfully, but these errors were encountered: