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.2a2.tar.gz (17.8 kB view details)

Uploaded Source

File details

Details for the file ckanext-or_facet-0.0.2a2.tar.gz.

File metadata

  • Download URL: ckanext-or_facet-0.0.2a2.tar.gz
  • Upload date:
  • Size: 17.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.20.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2

File hashes

Hashes for ckanext-or_facet-0.0.2a2.tar.gz
Algorithm Hash digest
SHA256 d7e53b542755bc764386491ea43be99d09ae22abf92999bda78706343ff1bd0b
MD5 c0158ab9dcccf3b181a753d90e58a35d
BLAKE2b-256 6450c70bd9841d4f5bb7b681574751cbc54f32b34feb725a04b847cb94b728bd

See more details on using hashes here.

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