Skip to content

Dashboard displaying the latest harvester jobs with links to harvesters and organizations

License

Notifications You must be signed in to change notification settings

opendata-swiss/ckanext-harvester_dashboard

Repository files navigation

Harvester Dashboard

Ckan extension that add a harvester dashboard that shows all the latest harvester jobs for the harvesters a user has access to

Prerequisites

  • ckanext-harvest needs to be installed

Purpose

The extensions adds a named route: harvester_dashboard for displaying a harvester dashboard The harvester dashboard displays the latest harvester job for all harvesters that a user is allowed to administer. (The user's adminstration rights are directly retrieved by check_access on 'harvest_source_update'.)

For each harvester job on the list links to the harvester-admin and the organization that the harvester belongs to are provided.

Setup

  • Add a tab on your header.html template to give access to the new route:

Update translations

The extension is ready for adding translations, but so far no translations have been added.

To generate an updated ckanext-harvester_dashboard.pot file inside the Docker container, use the following commands:

docker-compose exec ckan bash
source /usr/lib/ckan/venv/bin/activate
cd /usr/lib/ckanext/ckanext-harvester_dashboard/
python setup.py extract_messages

Copy any new strings that you want to translate from the new ckanext-harvester_dashboard.pot into the ckanext-harvester_dashboard.po file for each language, and add the translations.

After that compile the po files into mo files:

python setup.py compile_catalog

Log out of the ckan container (ctrl+D) and restart it for the new translations to be used:

docker-compose restart ckan

About

Dashboard displaying the latest harvester jobs with links to harvesters and organizations

Resources

License

Stars

Watchers

Forks

Packages

No packages published