Target release1.0
Source (e.g. Github)https://github.com/MandanaMoshref/ckanext-grouphierarchy
Main featuresProvides a new field on the group edit form to select a parent group.
Prerequisite / Dependencies

-

LicenseAGPL-3.0 License
Installed by
Document status

COMPLETED

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:

  1. Activate your CKAN virtual environment, for example:

    ENV /usr/lib/ckan/default/bin/activate
  2. Install the ckanext-grouphierarchy Python package into your virtual environment:

    pip install -e "git+https://github.com/MandanaMoshref/ckanext-grouphierarchy.git#egg=ckanext-grouphierarchy"
  3. 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
  4. 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:

QuestionAnswers

Further steps