Improve galleyLabels for multilang journals #6275
Labels
Enhancement:1:Minor
A new feature or improvement that can be implemented in less than 3 days.
Try Me
This issue might be good for a new contributor. Can you help us?
Describe the problem you would like to solve
The way the label of a galley is created (and the presentation) needs to be improved to fit better in multi-language journals.
Right now, if user's $currentLocale (navigation locale) is the same as the galley lang, you only get the label but, if is different, the locale of the galley will be concatenated after, getting labels as follows:
There are three problems here.
To start, the variable $galleyLabel that you can reach in galley_link.tpl is filled with "ArticleGalley::getGalleyLabel()" that is a wrapper method that automatically appends the language, hardcode the parenthesis... and this limits what you can do on the presentation layer.
Second, the logic behind adding those locales (hidden in currentLocale and forced in the rest) is not necessarily the way journals would like to work:
Finally, the locale naming is taken from locales.xml in registry and is the same for galleys, language selector, etc. when is not difficult to find scenarios where you would like to have different mapping for each part. For instance, I like to have galleys with shorter equivalences as follows:
Describe the solution you'd like
Who is asking for this feature?
I think every journal publishing multilang galleys would be happy with an improvement in this.
The text was updated successfully, but these errors were encountered: