Open pvgenuchten opened 4 years ago
Relevancy is correct, no? It is fixed in v4.
It looks like it takes the name from the 'Field', and {field: 'relevancy'}
is in small caps.
It is fixed in v4
@fxprunayre What is v4?
@fxprunayre What is v4?
In branch 4.0.x, labels for sort options are lower case https://github.com/geonetwork/core-geonetwork/blob/4.0.x/web-ui/src/main/resources/catalog/locales/en-core.json#L201-L210 and capitalized in CSS when needed. Not sure it is the best practice in that case but it works and make sense.
Similar issue can occur when you've ":" which in some language are with a space before or not - so in general we should always store them in labels ? but sometimes we do, sometimes not...
Branch 4.0, of course. Thanks
This particular case happens in GeoNetwork 3.6, in gn_search.less
: https://github.com/geonetwork/core-geonetwork/blob/c034f9996541c59551e67ef14a28b12de03126a9/web-ui/src/main/resources/catalog/style/gn_search.less#L188-L194
in the sort by field in search the term relevancy is lower cased when selected, this does not happen for the other modes