CKAN EC Portal Extension
Status: Production
CKAN Version: release-v1.8.1-ecportal
This extension was developed for the European Union Open Data Portal. It provides several advanced features for large-scale data portal management.
Features
Search Cloud
The search cloud functionality on the homepage requires special tables and indexes. Install with:
paster --plugin=ckanext-ecportal ecportal searchcloud-install-tables -c config.ini
The workflow:
1. User searches are saved to the search_query table
2. A daily cron job generates unapproved search lists
3. Sysadmin moderates terms at /data/searchcloud
4. Approved terms appear on homepage search cloud
Most Viewed Datasets
Based on CKAN’s TrackingMiddleware functionality. Each unique visitor is tracked via hash of user agent, IP, language, and encoding. Daily cron job aggregates data:
paster --plugin=ckan tracking update -c config.ini
Boolean Search Operators
Users can choose between:
- all - 100% term match
- exact - quoted terms
- any - 0% minimum match
The choice is remembered in the session.
Testing
To run the tests with sqlite:
nosetests --ckan --with-pylons=test.ini tests
Or with postgres:
nosetests --ckan --with-pylons=test-core.ini tests
Note: This is a legacy extension developed for CKAN 1.8.x and has not been updated for modern CKAN versions.