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 details)

Uploaded Source

File details

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

File metadata

  • Download URL: ckanext-or_facet-0.0.2a4.tar.gz
  • Upload date:
  • Size: 17.9 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.2a4.tar.gz
Algorithm Hash digest
SHA256 12cabe7bdd5d88c82270388e56070e7d749e9450e884881b7171bcbe86214a74
MD5 6534f14fe7a04dea08907b3fb2e64de6
BLAKE2b-256 cbcf6acfef7adf3574611978e980d4e165a406d9d7fbc2c0b192299cfe6c3ab9

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