pkp-lib icon indicating copy to clipboard operation
pkp-lib copied to clipboard

Globe icon shows wrong color when more languages are completed than available

Open mpbraendle opened this issue 7 months ago • 0 comments

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:

  1. Create a multijournal platform
  2. Define more than one language used by the platform (e.g. 3 languages, en, fr, de)
  3. Create a journal (or reuse a journal if already available)
  4. In the backend for the journal, menu Website > Tab Setup > Languages enable all languages (UI and form columns)
  5. 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)
  6. Untick one or more languages in Website > Tab Setup > Languages (UI and form, see example screenshot language_setup)
  7. 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

language_setup journal_masthead

mpbraendle avatar Jul 18 '24 11:07 mpbraendle