Swirrl / ook

Structural search engine
https://search-prototype.gss-data.org.uk/
Eclipse Public License 1.0
6 stars 0 forks source link

Filter datasets by codelist #36

Closed Robsteranium closed 3 years ago

Robsteranium commented 3 years ago

A possible next step for ook would be to introduce facets that allow you to find datasets by codelist.

This would basically remove the code-search functionality (for a moment) and instead focus on facets.

The initial view would show you controls for adding facets.

Each facet configuration just lists the dimensions or parent-dimension involved (per https://github.com/Swirrl/ook/issues/22#issuecomment-802657494).

When you add a facet you're presented with a list of possible codelists. Each has a checkbox (which defaults to selected). We could add a select-all affordance (implicitly "select dimension, regardless of codelist"), but let's skip this - defaulting to selected should suffice.

When you apply the facet a column is added to the datasets results, with cells showing the codelist(s) that apply the dataset on each row (note that this depends on the specific dimension that the dataset uses). The dataset results are limited to only those which feature the selected codelists.

Thus we recreate the codelist by dataset & dimension matrix (subject-overview) with an incremental workflow.

kiramclean commented 3 years ago

Done in #37