Skip to content

keitaroinc/ckanext-noresource

Repository files navigation

Tests

ckanext-noresource

With this ckan extension you can choose to add a dataset with or without a resoruce, it provides us with 3 settings that can be set by a sysadmin with pressing the added button on the admin header.

image

The settings are:

  1. create dataset normaly(with resource),
  2. create dataset without resource.
  3. let the user choose at dataset creation.

ddmenu

If we set it to the first option and save nothing happens we can use ckan as defaulty intended.

If we set it to the second option and save, when we go to the dateset creation form the Add Dataset button should/will change to Add Dataset metadata button which will allow us to create a dataset without a resource:

image

Lastly if we set it to the third option and save, when we go to the dataset creation form, press Add Dataset button a prompt should show asking us to choose if we want to create a normal dataset or one without a resource:

image

Requirements

Compatibility with core CKAN versions:

CKAN version Compatible?
2.6 and earlier not tested
2.7 not tested
2.8 not tested
2.9 yes

Installation

To install ckanext-noresource:

  1. Activate your CKAN virtual environment, for example:

    . /usr/lib/ckan/default/bin/activate

  2. Clone the source and install it on the virtualenv

    git clone git@github.com:keitaroinc/ckanext-noresource.git
    cd ckanext-noresource
    pip install -e .
    pip install -r requirements.txt
    
  3. Add noresource to the ckan.plugins setting in your CKAN config file (by default the config file is located at /etc/ckan/default/ckan.ini).

  4. Restart CKAN. For example if you've deployed CKAN with Apache on Ubuntu:

    sudo service apache2 reload

Developer installation

To install ckanext-noresource for development, activate your CKAN virtualenv and do:

git clone git@github.com:keitaroinc/ckanext-noresource.git
cd ckanext-noresource
python setup.py develop
pip install -r dev-requirements.txt

License

AGPL

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors