invenio-app-ils icon indicating copy to clipboard operation
invenio-app-ils copied to clipboard

vocabularies: values order

Open kpsherva opened this issue 4 years ago • 0 comments

Is your feature request related to a problem? Please describe.

The users need to order the vocabularies values, especially if one of them is more commonly used in the create/edit forms

Describe the solution you'd like

introduce an order field in the vocab, and then put there an integer, e.g order: 0, order: 1... then, set CC as order: 0 and have the Elasticsearch query to sort=order and order:asc (the order field might be a better name eventually).

Describe alternatives you've considered

Possible alternative is to create a vocabulary JSON with already ordered values. Sometimes it could behave inconsistently in searches.

kpsherva avatar Feb 23 '21 13:02 kpsherva