Skip to main content

Combine search facets using OR operator

Project description

https://travis-ci.org/DataShades/ckanext-or_facet.svg?branch=master https://codecov.io/gh/DataShades/ckanext-or_facet/branch/master/graph/badge.svg

ckanext-or_facet

Installation

To install ckanext-or-facet:

  1. Activate your CKAN virtual environment, for example:

    . /usr/lib/ckan/default/bin/activate
  2. Install the ckanext-or_facet Python package into your virtual environment:

    pip install ckanext-or-facet
  3. Add or_facet to the ckan.plugins setting in your CKAN config file (by default the config file is located at /etc/ckan/default/production.ini).

  4. Restart CKAN. For example if you’ve deployed CKAN with Apache on Ubuntu:

    sudo service apache2 reload

Config Settings

Document any optional config settings here. For example:

# List of facets that are using OR when applied.
# (optional, default: empty list).
or_facet.facets = tags res_format

Development Installation

To install ckanext-or_facet for development, activate your CKAN virtualenv and do:

git clone https://github.com/DataShades/ckanext-or_facet.git
cd ckanext-or_facet
python setup.py develop

Running the Tests

To run the tests, do:

pytest --ckan-ini test.ini

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ckanext-or_facet-0.0.2a4.tar.gz (17.9 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page