iodepo / oih-ui

source code for the Ocean InfoHub (OIH) website
https://oceaninfohub.org/
MIT License
5 stars 4 forks source link

Create functionality to SORT search results using facets or metadata fields #99

Open emarzini opened 9 months ago

emarzini commented 9 months ago

@arnounesco @jmckenna @pbuttigieg @Lucy-Scott @fils

Approaching this point we have some doubts about how to find the fields you want to sort the results based of facet selected. We understand you want to set different sort option on different facet selection.

For example selecting Documents the UI shows the way to sort result by A, B, C fields, and selecting Experts the UI shows the way to sort result by D, E, F fields.

We are imaging that this type of dynamism could be performed using metadata coming from SOLR endpoint. As the UI read metadata to build different filter dropdown (Provider, Keyword, Contributor for Documents, etc...), we are thinking we can read something else to implement the sorting.

jmckenna commented 9 months ago

related to https://github.com/iodepo/oih-ui/issues/68