Description of the enhancement
Currently, some term/concept lists in the UI are sorted according to the collation rules of the UI language (e.g. narrower concepts in a concept display) while others are sorted by the content language (everything in the sidebar). This is inconsistent and can lead to confusing results.
In this example (https://test.dev.finto.fi/yso/en/page/p8691?clang=fi ), the UI language is English but the content language is Finnish. The list of narrower concepts is ordered using English collation rules, which in this case will put "äänialat" at the top of the list (WRONG):
However the sidebar uses content language for ordering, so the same narrower concepts are displayed according to Finnish collation rules where "abstraktisuus" is the first item (CORRECT):
Implementing this would require some changes to the PHP backend: In Model.getCollator() the collator should be initialized based on the content language (possibly passed as a parameter), not the current UI language.
Who are the users that would benefit from the enhancement and how?
Users who need to use different UI and content languages, for example because the UI is not available in the content language they need (Iconclass is avilable in Italian, French and German content languages but Finto doesn't support these as UI languages).
What new functionalities would the enhancement make possible?
Existing functionality, but more consistent.
Why is the enhancement important?
Issue #1420 is an example of user-facing bugs that happen because of this inconsistency.
Description of the enhancement
Currently, some term/concept lists in the UI are sorted according to the collation rules of the UI language (e.g. narrower concepts in a concept display) while others are sorted by the content language (everything in the sidebar). This is inconsistent and can lead to confusing results.
In this example (https://test.dev.finto.fi/yso/en/page/p8691?clang=fi ), the UI language is English but the content language is Finnish. The list of narrower concepts is ordered using English collation rules, which in this case will put "äänialat" at the top of the list (WRONG):
However the sidebar uses content language for ordering, so the same narrower concepts are displayed according to Finnish collation rules where "abstraktisuus" is the first item (CORRECT):
Implementing this would require some changes to the PHP backend: In Model.getCollator() the collator should be initialized based on the content language (possibly passed as a parameter), not the current UI language.
Who are the users that would benefit from the enhancement and how?
Users who need to use different UI and content languages, for example because the UI is not available in the content language they need (Iconclass is avilable in Italian, French and German content languages but Finto doesn't support these as UI languages).
What new functionalities would the enhancement make possible?
Existing functionality, but more consistent.
Why is the enhancement important?
Issue #1420 is an example of user-facing bugs that happen because of this inconsistency.