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
Built Distribution
File details
Details for the file ckanext-or_facet-0.0.3.tar.gz
.
File metadata
- Download URL: ckanext-or_facet-0.0.3.tar.gz
- Upload date:
- Size: 19.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.1.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 169a5e1c978e12591bea0bfde28efd84b83850cfe6c1e866ee528402cd167eb8 |
|
MD5 | a1ec5f4f92e3bd9df0551faaa5b77db0 |
|
BLAKE2b-256 | b51aed2d1f2894de78352da7848e442a887eae20436e05ad43742d3c712dd5c5 |
File details
Details for the file ckanext_or_facet-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: ckanext_or_facet-0.0.3-py3-none-any.whl
- Upload date:
- Size: 18.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.1.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a7150e24fb31dc4f045f922b8be733b0b79022a1738aa68eb1969bf9932bda2 |
|
MD5 | 99e9d7413cd996b0f83c0bdccf22fcab |
|
BLAKE2b-256 | 2bc829d7035b46c0fe354a7867d9f5404f365eae91c83ef30db23a2ba0d7ffcb |