gbv / cocoda

A web-based tool for creating mappings between knowledge organization systems.
https://coli-conc.gbv.de/cocoda/
MIT License
39 stars 5 forks source link

Numerically sort concepts by notations if configured #677

Closed nichtich closed 2 years ago

nichtich commented 2 years ago

sortConcepts allows to numerically sort concepts but this feature is not used in Cocoda yet. Whether to sort numerically depends on the vocabulary. The information should be available in JSKOS extension field DISPLAY where we already have hideNotation (also not respected in Cocoda yet). Requires https://github.com/gbv/bartoc.org/issues/162.

stefandesu commented 2 years ago

Is the DISPLAY extension field documented anywhere? hideNotation is clear (and is already set on a few vocabularies like GND), but I couldn't find any example for the sorting.

stefandesu commented 2 years ago

hideNotation is now respected. Notations are still shown when the label is not available or hidden.

nichtich commented 2 years ago

Could be DISPLAY.numericalNotation (with false as default)

stefandesu commented 2 years ago

DISPLAY.numericalNotation is now respected. Unfortunately, there is no vocabulary currently available to test, but it works well with a local test vocabulary.