Skip to content
This repository has been archived by the owner on Dec 26, 2020. It is now read-only.

pdekraker-epa/ckanext-facetcollapse

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ckanext-facetcollapse

This extension makes the search facets collapsible.

https://i.imgur.com/lTn4bZB.png

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:

https://i.imgur.com/CB4BkTy.png

Some classes are added to each module, in case further styling is desirable:

  • expanded
  • collapsed
  • nothing-to-reveal (when no facets match the search)

Requirements

This extension assumes that JQuery and Bootstrap are included (as they are by default).

Installation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 62.5%
  • JavaScript 20.1%
  • HTML 17.4%