Skip to content

deniszgonjanin/ckanext-bcgov

 
 

Repository files navigation

In production, but maybe in Alpha or Beta. Intended to persist and be supported.

ckanext-bcgov

This extension provides the basic customized features on the BC Data Catalogue, such as schema updates, theme changes, etc.

Installation

  1. Activate virtual environment, e.g.

    $ . /usr/lib/ckan/default/bin/activate
    
  2. Install the extension. Switch to ckanext-bcgov extension directory and run the following command:

    python setup.py develop
    
  3. Update config file and add the following plugins to ckan.plugins list : edc_app edc_geo edc_ngeo edc_webservice edc_disqus.

  4. Add the following lines to ini file to the search setting section if they don’t exist:

    search.facets.limit = 500
    search.facets.default = 20
    ckan.search.show_all_types = true
    
    ...
    
    ckan.api_key = your-sysadmin-api-key
    
    ...
    
    # Path for licenses and sectors JSON files, e.g.:
    licenses_group_url = file:///etc/ckan/dlv/edc_licenses.json
    sectors_file_url = file:///etc/ckan/dlv/edc_sectors.json
    
    ...
    
    # (optional) Environment name
    edc.environment_name = MYDEVBOX
    
  5. Update (or create) import.ini file inside ckanext-bcgov/ckanext/bcgov/scripts/config. Add api_key, site_url options (they should be the same as in your CKAN .ini file).

  6. Create default vocabularies

    cd ckanext-bcgov/ckanext/bcgov/scripts
    $ python create_vocabs.py
    

Note: The following data files in ckanext-bcgov/ckanext/bcgov/scripts/data is required:

    edc-vocabs.json
  1. Create organizations

    $ cd ckanext-bcgov/ckanext/bcgov/scripts
    $ python create_orgs.py
    

Note: The following data files in ckanext-bcgov/ckanext/bcgov/scripts/data is required:

    org_suborg_sector_mapping_forEDC.csv


Originally converted from SVN Source

Original Repo Copyright 2015, Province of British Columbia

Packages

No packages published

Languages

  • Python 44.4%
  • HTML 28.1%
  • JavaScript 22.4%
  • CSS 5.1%