Skip to content

CKAN extension to integrate your custom DataPub.js based dataset and resource editor

License

Notifications You must be signed in to change notification settings

ViderumGlobal/ckanext-datapub

 
 

Repository files navigation

Enable Datapub apps in your CKAN instance.

Find out about Datapub here - https://github.com/datopian/datapub.

Installation

This extension requires https://github.com/datopian/ckanext-blob-storage to be enabled as it uses storage_service_url for uploading files.

Just follow standard procedure for setting up an extension for the CKAN and add datapub into list of the plugins. Note that this extension was developed and tested using version 2.8.

Setup JS modules:

sh sync.sh

It would:

Next, you need to update the template to include correct bundles. In /templates/datapub/snippets/upload_module.html, edit the file names of the modules.

Note, if you are developing a React app, e.g., custom datapub app, you can use the following attributes passed from the /templates/datapub/snippets/upload_module.html:

<div id="ResourceEditor"
     data-dataset-id="{{ pkg_name }}"
     data-api="{{ base_url }}"
     data-lfs="{{ h.extstorage_lfs_url() }}"
     data-auth-token="{{ api_key }}"
     data-organization-id="{{ h.extstorage_organization_name(pkg_name) }}"
     data-resource-id="{{ resource_id }}">
</div>

About

CKAN extension to integrate your custom DataPub.js based dataset and resource editor

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 61.5%
  • Shell 22.9%
  • HTML 15.6%