Explore: Filter suggestions
The JSP version of accession Explorer features suggestions (shows numbers next to Historic or In MLS) and makes use of "filtered" autocomplete (it will suggest only ISO3 codes where data exists). Look at "Biological status of accession" at https://www.genesys-pgr.org/explore?filter=%7B%22crops%22%3A%5B%22barley%22%5D%7D:
The options in
SAMPSTAT are presented with numbers that match all other applied filters (in this case barley). Even if one filter option is selected, all other options remain visible to help with
Where we have checkboxes or radio boxes, the number of accessions for each option should be included:
The components need upgrading so that the "count" for each term can be passed from the parent component.
We require a new API call that extends the
/list accessions (by filter) that includes a
suggestions object. Because this comes from ES, we can try using the same data types as for the "Overview" page.
suggestions should return options for a limited set of accession fields:
sampStat, all booleans,
suggestions must be loaded from ES, but in a way that when aggregating for term numbers the actual filtering on that field is excluded.