Combine search facets using OR operator
Project description
ckanext-or_facet
Installation
To install ckanext-or-facet:
Activate your CKAN virtual environment, for example:
. /usr/lib/ckan/default/bin/activate
Install the ckanext-or_facet Python package into your virtual environment:
pip install ckanext-or-facet
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).
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
Release history Release notifications | RSS feed
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.3.tar.gz
(19.6 kB
view hashes)
Built Distribution
Close
Hashes for ckanext_or_facet-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a7150e24fb31dc4f045f922b8be733b0b79022a1738aa68eb1969bf9932bda2 |
|
MD5 | 99e9d7413cd996b0f83c0bdccf22fcab |
|
BLAKE2b-256 | 2bc829d7035b46c0fe354a7867d9f5404f365eae91c83ef30db23a2ba0d7ffcb |