geosolutions-it/ckanext-provbz

Name: ckanext-provbz

Owner: GeoSolutions

Description: Provincia di Bolzano Ckan Theme

Created: 2015-07-27 13:20:12.0

Updated: 2016-01-26 12:10:57.0

Pushed: 2018-05-23 17:10:30.0

Homepage: null

Size: 5106

Language: HTML

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README


ckanext-provbz

The ckanext-provbz CKAN's extension provide some customizations for the CKAN Look and Feel. In addition this extension provides an harvester that merge functionalities between two other harvesters built on the ckanext-spatial extension like:


Requirements

The ckanext-provbz extension has been developed for CKAN 2.4. Other extensions needed as dependencies are:


Development Installation

To install ckanext-provbz:

  1. Activate your CKAN virtual environment, for example::

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

  2. Go into your CKAN path for extension (like /usr/lib/ckan/default/src)

  3. git clone https://github.com/geosolutions-it/ckanext-provbz

  4. cd ckanext-provbz

  5. python setup.py develop

  6. Initilize the provbz additional DB table for custom metadata fields:

    paster --plugin=ckanext-provbz provbzdb initdb --config=/etc/ckan/default/production.ini
    
  7. Add provbz_theme and provbz_harvester to the ckan.plugins setting in your CKAN config file (by default the config file is located at /etc/ckan/default/production.ini).

  8. The ckanext-provbz extension provides some updates for the i18n files for 'it' and 'de' languages. Locale files in CKAN (.mo and .po) for these languages must be replaced with files located in this extension at the ckanext-provbz/ckanext/provbz/i18n/ path.

  9. Update the production.ini configuration finding the default property licenses_group_url and change the value:

     licenses_group_url = file:///usr/lib/ckan/default/src/ckanext-provbz/ckanext/provbz/licenses/ckan.json
    
  10. Restart CKAN.


Harvest Configuration

Using the ckanext-provbz harvester you can use an additional configuration property in addition to the other allowed for the ckanext-geonetwork and ckanext-multilang harvesters:

Below the complete configuration to use:

    {
        "private_datasets": "False", 
        "version": "2.6", 
        "harvest_iso_categories": "True",
        "default_extras": {
            "geocat_layer_url": "http://geocatalogo.retecivica.bz.it/geokatalog/#!home&layer="
        },
        "organisation_mapping": [
            {
                "key": "pab-foreste",
                "value": "Ufficio 32.3 - Ufficio Pianificazione forestale",
                "value_it":"PAB: Rip. Foreste",
                "value_de":"APB: Abt. Frostwirtschaft"
            },
            {
                "key": "pab-foreste",
                "value": "Ufficio 32.4 - Ufficio Caccia e pesca",
                "value_it":"PAB: Rip. Foreste",
                "value_de":"APB: Abt. Frostwirtschaft"
            },
            {
                "key": "comune-bolzano-sistema-informativo-territoriale",
                "value": "Ufficio Sistema Informativo Territoriale, Comune di Bolzano",
                "value_it":"Comune Bolzano",
                "value_de":"Gemeinde Bozen"
            },
            {
                "key": "pab-agenzia-provinciale-per-l-ambiente",
                "value": "Ripartizione 29 - Agenzia provinciale per l'ambiente",
                "value_it":"PAB: Agenzia per l´ambiente",
                "value_de":"APB: Agentur für Umwelt"
            },
            {
                "key": "pab-servizio-strade",
                "value": "Ripartizione 12 - Servizio Strade",
                "value_it":"PAB: Rip. Servizio strade",
                "value_de":"APB: Abt. Straßendienst"
            },
            {
                "key": "pab-servizio-strade",
                "value": "Ripartizione 12 - Servizio strade",
                "value_it":"PAB: Rip. Servizio strade",
                "value_de":"APB: Abt. Straßendienst"
            },
            {
                "key": "pab-protezione-antincendi-e-civile",
                "value": "Ripartizione 26 - Protezione antincendi e civile",
                "value_it":"Agenzia per la protezione civile",
                "value_de":"Agentur für Bevölkerungsschutz"
            },
            {
                "key": "pab-protezione-antincendi-e-civile",
                "value": "Ripartizione 26 - protezione antincendi e civile",
                "value_it":"Agenzia per la protezione civile",
                "value_de":"Agentur für Bevölkerungsschutz"
            },
            {
                "key": "pab-protezione-antincendi-e-civile",
                "value": "Abteilung 26 - Brand- und Zivilschutz",
                "value_it":"Agenzia per la protezione civile",
                "value_de":"Agentur für Bevölkerungsschutz"
            },
            {
                "key": "pab-natura-paesaggio-e-sviluppo-del-territorio",
                "value": "Ripartizione 28 - Natura, paesaggio e sviluppo del territorio",
                "value_it":"PAB: Rip. Natura, paesaggio e sviluppo del territorio",
                "value_de":"APB: Abt. Natur, Landschaft und Raumentwicklung"
            },
            {
                "key": "pab-protezione-antincendi-e-civile",
                "value": "Ripartizione 30 - Opere idrauliche",
                "value_it":"Agenzia per la protezione civile",
                "value_de":"Agentur für Bevölkerungsschutz"
            },
            {
                "key": "pab-libro-fondiario-catasto-fondiario-e-urbano",
                "value": "Ripartizione 41 - Libro fondiario, catasto fondiario e urbano",
                "value_it":"PAB: Rip.  Libro fondiario e Catasto",
                "value_de":"APB: Abt.  Grundbuch und Kataster"
            },
            {
                "key": "pab-foreste",
                "value": "Ripartizione 32 - Foreste",
                "value_it":"PAB: Rip. Foreste",
                "value_de":"APB: Abt. Frostwirtschaft"
            },
            {
                "key": "comune-merano-urbanistica-ed-edilizia-privata",
                "value": "Ufficio urbanistica ed edilizia privata del comune di Merano",
                "value_it":"Comune Merano",
                "value_de":"Gemenide Meran"
            },
            {
                "key": "pab-agricoltura",
                "value": "Ripartizione 31 - agricoltura",
                "value_it":"PAB: Rip. Agricoltura",
                "value_de":"APB: Abt. Landwitschaft"
            },
            {
                "key": "pab-agricoltura",
                "value": "Ripartizione 31 - Agricoltura",
                "value_it":"PAB: Rip. Agricoltura",
                "value_de":"APB: Abt. Landwitschaft"
            },
            {
                "key": "pab-dipartimento-economia-innovazione-e-europa",
                "value": "Dipartimento Economia, Innovazione e Europa",
                "value_it":"Dip. economia, innovazione e Europa",
                "value_de":"Ressort Wirtschaft, Innovation und Europa"
            },
            {
                "key": "pab-edilizia-e-servizio-tecnico",
                "value": "Ripartizione 11 - Edilizia e servizio tecnico",
                "value_it":"PAB: Rip.  Edilizia",
                "value_de":"APB: Abt.  Hochbau"
            },
                    {
                "key": "pab-edilizia-e-servizio-tecnico",
                "value": "Abteilung 11 - Hochbau und technischer Dienst",
                "value_it":"PAB: Rip.  Edilizia",
                "value_de":"APB: Abt.  Hochbau"
            },
            {
                "key": "pab-beni-culturali",
                "value": "Ripartizione 13 - Beni culturali",
                "value_it":"PAB: Rip. Beni culturali",
                "value_de":"APB: Abt. Denkmalpflege"
            },
            {
                "key": "pab-economia",
                "value": "Ripartizione 35 - Economia",
                "value_it":"PAB: Rip. Economia",
                "value_de":"APB: Abt. Wirtschaft"
            },
            {
                "key": "eurac",
                "value": "Istituto di Telerilevamento Applicato, EURAC",
                "value_it":"EURAC research",
                "value_de":"EURAC research"
            },
                    {
                "key": "ras",
                "value": "RAS - Radiotelevisione Azienda Speciale",
                "value_it":"RAS",
                "value_de":"RAS"
            },
            {
                "key": "pab-natura-paesaggio-e-sviluppo-del-territorio",
                "value": "Cartografia provinciale e coordinamento geodati - Ripartizione 28",
                "value_it":"PAB: Rip. Natura, paesaggio e sviluppo del territorio",
                "value_de":"APB: Abt. Natur, Landschaft und Raumentwicklung"
            },
            {
                "key": "provincia-autonoma-di-bolzano-alto-adige-astat",
                "value": "Istituto Provinciale di Statistica ASTAT",
                "value_it":"PAB: Uff. Statistica (ASTAT)",
                "value_de":"APB: Amt für Statistik (ASTAT)"
            },
            {
                "key": "pab-agenzia-provinciale-per-l-ambiente",
                "value": "29. Agenzia provinciale per l'ambiente",
                "value_it":"PAB: Agenzia per l´ambiente",
                "value_de":"APB: Agentur für Umwelt"
            }
        ],
        "group_mapping": {
            "farming": "farming", 
            "utilitiesCommunication": "boundaries", 
            "transportation": "boundaries", 
            "inlandWaters": "environment", 
            "geoscientificInformation": "geoscientificinformation", 
            "environment": "environment", 
            "climatologyMeteorologyAtmosphere": "climatologymeteorologyatmosphere", 
            "planningCadastre": "boundaries", 
            "imageryBaseMapsEarthCover": "boundaries", 
            "elevation": "boundaries", 
            "boundaries": "boundaries",
            "structure": "boundaries", 
            "location": "boundaries", 
            "economy": "economy",
            "society": "economy",
            "biota": "environment",
            "intelligenceMilitary": "boundaries",
            "oceans": "environment",
            "health": "health"
        },
        "ckan_locales_mapping":{
            "ita": "it",
            "ger": "de"
        },
        "default_license": "cc-zero"
    }

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.