Background and strategic fit
For HEF AgriHUB we have three categories of Groups. "Main category", "Research stations" and "Theme". Under each of these categories, we have various groups. In order to represent this hierarchy, it was necessary to develop a new extension which principally works the same as the organization hierarchy.
Installations and Requirements
To install ckanext-grouphierarchy on a production site:
Activate your CKAN virtual environment, for example:
ENV /usr/lib/ckan/default/bin/activate
Install the ckanext-grouphierarchy Python package into your virtual environment:
pip install -e "git+https://github.com/MandanaMoshref/ckanext-grouphierarchy.git#egg=ckanext-grouphierarchy"
Then change your CKAN ini file (e.g. development.ini or production.ini). Note that display_group should come before form_group:
ckan.plugins = stats text_view recline_view ... display_group form_group
Restart CKAN. For example, if you've deployed CKAN with Apache on Ubuntu:
sudo service apache2 reload
User interaction and design
The design is different from for example organization hierarchy. Here our aim was to represent very clearly three different categories of groups and their sub-groups. However, for creating these parent-child relationships, we mainly followed the same design as ckanext.hierarchy.
Questions and Answers
Below is a list of Q&A from user sides:
Question | Answers |
---|---|