pkp-lib
pkp-lib copied to clipboard
Globe icon shows wrong color when more languages are completed than available
Describe the bug The globe icon for a multi-language field is red instead of green when all languages are completed, but less are used in the language settings for a journal. This is confusing, since journal editors may think that the fields are not completed. This is probably due to a bug which just checks for inequality (number of completed fields compared with number of used languages). However, it should check for completeness.
To Reproduce Steps to reproduce the behavior:
- Create a multijournal platform
- Define more than one language used by the platform (e.g. 3 languages, en, fr, de)
- Create a journal (or reuse a journal if already available)
- In the backend for the journal, menu Website > Tab Setup > Languages enable all languages (UI and form columns)
- In menu Journal > Tab Masthead, enter journal title and journal summary in each of the language fields (these fields are used for OJS central site home page)
- Untick one or more languages in Website > Tab Setup > Languages (UI and form, see example screenshot language_setup)
- Go back to journal setup, check the fields (see screenshot journal_masthead). Click on the red globe icon to see how many languages are completed. It shows x/y languages completed (where x > y).
What application are you using? OJS 3.3.0-17, may also occur in OJS 3.4
Additional information