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.4.tar.gz
(19.6 kB
view hashes)
Built Distribution
Close
Hashes for ckanext_or_facet-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 05dc49f35d429fbc2d50f731237d62dab02b80b995108198ff079c662968605a |
|
MD5 | e489fa6be21459fa5b13e6580f713939 |
|
BLAKE2b-256 | 104a4cae33f69258e278e5c17476441fa20fa26fe41c919a4d517c203c2a5ab1 |