inveniosoftware / react-searchkit

React component library for interacting with a REST API.
https://inveniosoftware.github.io/react-searchkit/
MIT License
78 stars 40 forks source link

Allow value mapping for aggregation bucket labels #131

Closed Glignos closed 3 years ago

Glignos commented 3 years ago

An example configuration for this functionality would be:

[{'aggName': 'access_right',
           'field': 'access_right',
           'title': 'Access_right',
           'mapping': {'open': 'Open'}},
    {'aggName': 'resource_type',
           'field': 'resource_type.type',
           'title': 'Resource_type'}]
lnielsen commented 3 years ago

Should be done on the REST API level.

ntarocco commented 3 years ago

This is was discussed in the vocabularies context and ILS implementation: such mapping is too simplistic. Limitations:

We should find a solution when implementing vocabularies.