Requirements:
- Developed and tested with CKAN 2.3.1
- Python 2.6 or 2.7
Development Installation:
1. Activate your CKAN virtual environment
2. Clone the repository:
git clone https://github.com/DataShades/ckanext-disable_related.git
cd ckanext-disable_related
3. Install in development mode:
python setup.py develop
4. Add ‘disable_related’ to the ckan.plugins setting in your CKAN config file
5. Restart CKAN
Features:
- Returns HTTP 404s for all related items URLs
- Returns authorization denied responses for related items API methods
- Removes the Related Items tab from dataset pages
- Completely disables Related Items functionality
Testing:
Run tests:
nosetests –nologcapture –with-pylons=test.ini
Run tests with coverage:
nosetests –nologcapture –with-pylons=test.ini –with-coverage –cover-package=ckanext.disable_related –cover-inclusive –cover-erase –cover-tests
Note: This extension is useful for CKAN instances that prefer to use the newer Showcase extension (ckanext-showcase) instead of the older Related Items feature.
Development Status: Beta
License: GNU Affero General Public License (AGPL) v3.0
Copyright © 2015 Link Web Services Pty Ltd