Diese CKAN-Extension enthält die wichtigsten Features und das Layout für das Tranzparenzportal Schleswig-Holstein.
Sie ist eine Weiterentwicklung der gleichnamigen Extension, die im Zuge der Entwicklung des Open Data Portals Schleswig-Holstein entwickelt wurde.
## Branches
### master
Dieser Branch enthält den aktuell auf den Stage- bzw. Prod-Servern laufenden Code.
This CKAN extension provides custom features and the layout of the Open Data Portal Schleswig-Holstein.
### dev
Dieser Branch enthält den aktuellsten Stand mit allen fertig entwickelten Features.
## Table of Contents
### andere Branches
Für die Entwicklung neuer Features soll jeweils ein eigener Branch vom dev-Branch abgezweigt werden. Für den Branch soll ein sprechender Name gewählt werden.
-[Getting Started](#getting-started)
-[Contributing](#contributing)
-[Versioning](#versioning)
-[Acknowledgement](#acknowledgement)
-[Authors](#authors)
-[License](#license)
## Deployment auf Produktivsystem
Das Deployment auf das Produktivsystem geschieht über Ansible. Die dafür benötigten Skripte befinden sich im Repository `tpsh_deploy`.
## Getting Started
## Manuelle Installation
These instructions will get you a copy of the project up and running on your local
machine for development and testing purposes.
### Prerequisites
## Konfiguration
Die Extension benötigt Konfigurationsparameter in der CKAN-Konfigurationsdatei (z.B. `production.ini`). Die korrekten Parameter für das Produktivsystem befinden sich im Repository `tpsh_deploy` unter `resources/production.ini`. Folgende Parameter sollten für Enwicklungssysteme geändert werden:
This project requires the following CKAN extensions to work properly:
| Parameter | Erläuterung | Wert für Entwicklungssysteme |
3. Add `odsh` to the `ckan.plugins` setting in your CKAN config file (by default the config file is located at `/etc/ckan/default/production.ini`).
You may also add `odsh_autocomplete`, `odsh_dcat_harvest`, `kiel_harvester` and `statistikamtnord_harvester` to the plugin list, to enable custom functionality, e.g.:
```ini
ckan.plugins =
ckan_harvester
dcat
dcatde
dcat_json_harvester
dcat_json_interface
dcat_rdf_harvester
dcatde_rdf_harvester
harvest
image_view
kiel_harvester
odsh
odsh_autocomplete
odsh_dcat_harvest
qa
archiver
recline_view
report
spatial_metadata
spatial_query
statistikamtnord_harvester
stats
structured_data
text_view
```
4. Restart CKAN.
### Configuration
The extension requires configuration parameters in the CKAN configuration file (e.g., `production.ini`). The following parameters should be set:
Parameter | Type | Description
--------- | ----- | -----------
ckanext.odsh.home | `string` | Absolute path to base directory, e.g., `/usr/lib/ckan/default/src/ckanext-odsh`.
ckanext.odsh.public_url | `string` | The public URL, e.g., `https://opendata.schleswig-holstein.de`.
ckanext.odsh.showtestbanner | `boolean` | `true` switches on the banner "test system". Must be `false` for production server.
ckanext.odsh.language_mapping | `string` | Absolute path to language mapping file, e.g., `/usr/lib/ckan/default/src/ckanext-odsh/language_mapping.json`.