[Backport 4.2.x] Editor / Keyword dropdown / Sort keywords by label - #8684
[Backport 4.2.x] Editor / Keyword dropdown / Sort keywords by label#8684geonetworkbuild wants to merge 2 commits into
Conversation
…usService.js Co-authored-by: François Prunayre <fx.prunayre@gmail.com>
|
|
@joachimnielandt I have tested with INSPIRE themes and Data themes (DCAT) vocabularies in Dutch and I get the terms sorted alphabetically without requiring this code. Do you have any vocabulary I can use to test? |
Hello @josegar74 , I needed this modification to sort the labels of the following thesaurus: https://vocab.belgif.be/auth/datatheme. This would be in the context of the VL fork (https://github.com/Informatievlaanderen/metadata-geonetwork), using the dcat-ap editor (https://github.com/metadata101/dcat-ap). |
|
@joachimnielandt probably something specific about the DCAT-AP plugin, I tried 4.2.x without the pull request with your vocabulary and it seems sorted fine.
|
|
With @fxprunayre I have retested a bit and we found that it's about the translated labels vs the default labels, both in ISO and in DCAT (probably due to KeywordsApi.java doing some sorting on defaultLabels). The following was tested on core-geonetwork develop vs 4.2.x, in an ISO record, for the GEMET thesaurus. with the fix I proposed, both /dut/ and /eng/ UI will show a dropdown with sorted translated labels without the fix: the dropdown is sorted for english labels, but not for translated labels |








Backport #8666
Authored by: @joachimnielandt