This extension makes the search facets collapsible.
There are four available default states, which can be set via the ckanext.facetcollpase.default
configuration option:
- Collapse all:
collapse
(This is the default value) - Collapse all but first:
expand-first
- Collapse empty:
expand-navs
- Collapse none:
expand-all
This settings can also be modified via the Administrator Interface:
Some classes are added to each module, in case further styling is desirable:
expanded
collapsed
nothing-to-reveal
(when no facets match the search)
This extension assumes that JQuery and Bootstrap are included (as they are by default).
To install ckanext-facetcollapse for development, activate your CKAN virtualenv and do:
git clone https://github.com/okfn/ckanext-facetcollapse.git cd ckanext-facetcollapse python setup.py develop