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

Fix getSupportedLocales calls where submisison locales are meant to be #10726

Closed
bozana opened this issue Dec 17, 2024 · 5 comments
Closed

Fix getSupportedLocales calls where submisison locales are meant to be #10726

bozana opened this issue Dec 17, 2024 · 5 comments
Labels
Bug:1:Low A bug that does not have a severe consequence or affects a small number of users.
Milestone

Comments

@bozana
Copy link
Collaborator

bozana commented Dec 17, 2024

Now that we separated submission and metadata locales from context's UI and form locales (s. #9425), the places in the code where getSupportedLocales or getSupportedFormLocales are used need to be double checked and fixed if actually the submission and metadata locales are meant to be there.
Often this is used to get controlled vocabulary data like getKeywords, getSubjects, getDisciplines, getAgencies.

PRs:

@bozana bozana added this to the 3.5 Internal milestone Dec 17, 2024
@bozana bozana added the Bug:1:Low A bug that does not have a severe consequence or affects a small number of users. label Dec 17, 2024
bozana added a commit to bozana/citationStyleLanguage that referenced this issue Dec 17, 2024
bozana added a commit to bozana/jatsTemplate that referenced this issue Dec 17, 2024
bozana added a commit to bozana/pkp-lib that referenced this issue Dec 17, 2024
@bozana
Copy link
Collaborator Author

bozana commented Dec 17, 2024

Hi @touhidurabir, could you please review the PRs above? (They are connected with controlled vocabularies that you are currently working on...)

@touhidurabir
Copy link
Member

@bozana i suggest these to get merge a bit later after the merge of #10292 . Pretty all these DAO has been removed so these changes are need to be adjusted accordingly for new implementation .

@bozana bozana changed the title Fix getSupportedLocales calles where submisison locales are meant to be Fix getSupportedLocales calls where submisison locales are meant to be Jan 6, 2025
bozana added a commit to bozana/jatsTemplate that referenced this issue Jan 6, 2025
bozana added a commit to bozana/citationStyleLanguage that referenced this issue Jan 6, 2025
bozana added a commit to bozana/pkp-lib that referenced this issue Jan 6, 2025
bozana added a commit to bozana/pkp-lib that referenced this issue Jan 6, 2025
@touhidurabir
Copy link
Member

Hi @bozana the PRs from #10292 are merged . the changes for most of the above PRs are mostly have some conflict as those lines have updated . If I am not mistaken , the changes are like below

Repo::controlledVocab()->getBySymbolic(
    ControlledVocab::CONTROLLED_VOCAB_SUBMISSION_KEYWORD,
    Application::ASSOC_TYPE_PUBLICATION,
    $publication->getId(),
    $journal->getSupportedSubmissionLocales()
);

and considering your PRs , I think you mostly need to remove the param $journal->getSupportedSubmissionLocales() .

bozana added a commit to bozana/ojs that referenced this issue Jan 6, 2025
bozana added a commit to bozana/omp that referenced this issue Jan 6, 2025
bozana added a commit to bozana/ops that referenced this issue Jan 6, 2025
@bozana
Copy link
Collaborator Author

bozana commented Jan 6, 2025

Hi @touhidurabir, I rebased. Could you please review the PRs?
The pkp-lib PR contains one more change -- I think the allowed locales for a submission were wrong.
Thanks a lot!

@touhidurabir
Copy link
Member

Hi @bozana all seems ok but tests are failing for OMP/OPS , seems require a rebase with ui-library . Once all tests pass, it should be good to merge .

bozana added a commit to bozana/pkp-lib that referenced this issue Jan 8, 2025
bozana added a commit to bozana/pkp-lib that referenced this issue Jan 8, 2025
bozana added a commit to bozana/pkp-lib that referenced this issue Jan 9, 2025
bozana added a commit to bozana/pkp-lib that referenced this issue Jan 9, 2025
bozana added a commit to bozana/ojs that referenced this issue Jan 9, 2025
bozana added a commit to bozana/omp that referenced this issue Jan 9, 2025
bozana added a commit to bozana/jatsTemplate that referenced this issue Jan 9, 2025
bozana added a commit to bozana/citationStyleLanguage that referenced this issue Jan 9, 2025
bozana added a commit to bozana/ojs that referenced this issue Jan 9, 2025
bozana added a commit to bozana/omp that referenced this issue Jan 9, 2025
bozana added a commit to bozana/omp that referenced this issue Jan 9, 2025
bozana added a commit to bozana/ops that referenced this issue Jan 9, 2025
bozana added a commit to pkp/citationStyleLanguage that referenced this issue Jan 9, 2025
pkp/pkp-lib#10726 consider all existing submission metadata langauges
bozana added a commit to pkp/jatsTemplate that referenced this issue Jan 9, 2025
pkp/pkp-lib#10726 consider all existing submission metadata langauges
bozana added a commit that referenced this issue Jan 9, 2025
#10726 consider all existing submission metadata langauges
bozana added a commit to pkp/ojs that referenced this issue Jan 9, 2025
pkp/pkp-lib#10726 consider all existing submission metadata langauges
bozana added a commit to pkp/omp that referenced this issue Jan 9, 2025
pkp/pkp-lib#10726 consider all existing submission metadata langauges
bozana added a commit to pkp/ops that referenced this issue Jan 9, 2025
pkp/pkp-lib#10726 consider all existing submission metadata langauges
@bozana bozana closed this as completed Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug:1:Low A bug that does not have a severe consequence or affects a small number of users.
Projects
None yet
Development

No branches or pull requests

2 participants