From 697bb555a5fc1948b3e4b4d781ea20b689a1dcd4 Mon Sep 17 00:00:00 2001 From: mjanez <96422458+mjanez@users.noreply.github.com> Date: Mon, 16 Dec 2024 18:57:58 +0100 Subject: [PATCH] Add DCAT-AP metadata enhancements and SSL verification configuration for schemingdcat_csw_harvester --- .../development/host_vars/development_01.yml | 10 ++++++++++ playbook/roles/ckan/templates/ckan.ini.j2 | 9 +++++++++ 2 files changed, 19 insertions(+) diff --git a/playbook/inventories/development/host_vars/development_01.yml b/playbook/inventories/development/host_vars/development_01.yml index d176989..bce27a8 100644 --- a/playbook/inventories/development/host_vars/development_01.yml +++ b/playbook/inventories/development/host_vars/development_01.yml @@ -223,6 +223,16 @@ ckanext__schemingdcat_social_linkedin: "https://www.linkedin.com/company/ckanpro ckanext__schemingdcat__postgres__geojson_chars_limit: 1000 ckanext__schemingdcat__postgres__geojson_tolerance: 0.001 ckanext__schemingdcat__api__private_fields: "private_name private_email" +ckanext__schemingdcat__csw__ssl_verify: True +#### DCAT-AP Metadata enhancements +ckanext__schemingdcat__dcat_ap__publisher__name: "Catalog Publishing Organization" +ckanext__schemingdcat__dcat_ap__publisher__identifier: "http://datos.gob.es/recurso/sector-publico/org/Organismo/EA0000000" +ckanext__schemingdcat__dcat_ap__publisher__email: "info@example.org" +ckanext__schemingdcat__dcat_ap__publisher__type: "http://purl.org/adms/publishertype/NationalAuthority" +ckanext__schemingdcat__dcat_ap__publisher__url: "https://orgn.example.org/" +ckanext__schemingdcat__dcat_ap__datastore_dataservice__title: "Datastore API service" +ckanext__schemingdcat__dcat_ap__datastore_dataservice__description: "This API provides live access to the Datastore portion of the Open Data Portal. Serve data resources in a machine-readable format." +ckanext__schemingdcat__dcat_ap__datastore_dataservice__endpoint_description: "{ckan_site_url}/openapi/datastore" solr_multivalued_fields: - endpoint_url - serves_dataset diff --git a/playbook/roles/ckan/templates/ckan.ini.j2 b/playbook/roles/ckan/templates/ckan.ini.j2 index 6791fb6..ad8319b 100644 --- a/playbook/roles/ckan/templates/ckan.ini.j2 +++ b/playbook/roles/ckan/templates/ckan.ini.j2 @@ -75,6 +75,15 @@ ckanext.schemingdcat.postgres.geojson_chars_limit = {{ ckanext__schemingdcat__po ckanext.schemingdcat.postgres.geojson_tolerance = {{ ckanext__schemingdcat__postgres__geojson_tolerance }} ckanext.schemingdcat.api.private_fields = {{ ckanext__schemingdcat__api__private_fields }} ckanext.schemingdcat.csw.ssl_verify = {{ ckanext__schemingdcat__csw__ssl_verify }} +#### DCAT-AP Metadata enhancements +ckanext.schemingdcat.dcat_ap.publisher.name = {{ ckanext__schemingdcat__dcat_ap__publisher__name }} +ckanext.schemingdcat.dcat_ap.publisher.identifier = {{ ckanext__schemingdcat__dcat_ap__publisher__identifier }} +ckanext.schemingdcat.dcat_ap.publisher.email = {{ ckanext__schemingdcat__dcat_ap__publisher__email }} +ckanext.schemingdcat.dcat_ap.publisher.type = {{ ckanext__schemingdcat__dcat_ap__publisher__type }} +ckanext.schemingdcat.dcat_ap.publisher.url = {{ ckanext__schemingdcat__dcat_ap__publisher__url }} +ckanext.schemingdcat.dcat_ap.datastore_dataservice.title = {{ ckanext__schemingdcat__dcat_ap__datastore_dataservice__title }} +ckanext.schemingdcat.dcat_ap.datastore_dataservice.description = {{ ckanext__schemingdcat__dcat_ap__datastore_dataservice__description }} +ckanext.schemingdcat.dcat_ap.datastore_dataservice.endpoint_description = {{ ckanext__schemingdcat__dcat_ap__datastore_dataservice__endpoint_description }} ### ckanext-openapi ckanext.openapi.endpoints = {{ ckanext__openapi__endpoints }}