diff --git a/.env.example b/.env.example index ae6207c..6f6798b 100644 --- a/.env.example +++ b/.env.example @@ -98,11 +98,12 @@ CKAN_SITE_ID=default CKAN_SITE_URL=${PROXY_SERVER_URL} CKAN__ROOT_PATH=${PROXY_CKAN_LOCATION}/{{LANG}} CKAN__FAVICON=${PROXY_CKAN_LOCATION}/base/images/ckan.ico -CKAN__SITE_LOGO=/images/default/ckan-logo.png +CKAN__SITE_LOGO=${PROXY_CKAN_LOCATION}/images/default/ckan-logo.png # CKAN site info -CKAN__SITE_INTRO_TEXT="" -CKAN__SITE_DESCRIPTION="" -CKAN__SITE_ABOUT="" +CKAN__SITE_TITLE="CKAN Open Data" +CKAN__SITE_DESCRIPTION="ckan-docker *spatial Open Data portal" +CKAN__SITE_INTRO_TEXT="[![ckan-docker-spatial](https://img.shields.io/badge/ckan_docker_spatial-CKAN_${CKAN_VERSION}-brightgreen?style=social&logo=github#center)](https://github.com/mjanez/ckan-docker)\n[`ckan-docker *spatial`](https://github.com/mjanez/ckan-docker) is a ready-to-use development environment for [CKAN](https://github.com/ckan/ckan), the world’s leading open-source data portal platform." +CKAN__SITE_ABOUT=${CKAN__SITE_INTRO_TEXT} # Custom licenses that are aligned with DCAT-AP (Also works with DEV Mode) LICENSES_GROUP_URL=file://${APP_DIR}/src/ckanext-schemingdcat/ckanext/schemingdcat/public/static/licenses.json CKAN___BEAKER__SESSION__SECRET=CHANGE_ME @@ -153,7 +154,7 @@ CKAN__LOCALE_ORDER="en es pt_BR ja it cs_CZ ca fr el sv sr sr@latin no sk fi ru CKAN__LOCALES_OFFERED="en es pt_BR ja it cs_CZ ca fr el sv sr sr@latin no sk fi ru de pl nl bg ko_KR hu sa sl lv" # Extensions -CKAN__PLUGINS="stats image_view video_view audio_view webpage_view text_view datatables_view resourcedictionary datastore xloader spatial_metadata spatial_query spatial_harvest_metadata_api csw_harvester waf_harvester doc_harvester resource_proxy geo_view geojson_view wmts_view shp_view dcat dcat_rdf_harvester dcat_json_harvester dcat_json_interface schemingdcat schemingdcat_datasets schemingdcat_groups schemingdcat_organizations schemingdcat_ckan_harvester schemingdcat_xls_harvester harvest pdf_view pages fluent envvars" +CKAN__PLUGINS="activity stats image_view video_view audio_view webpage_view text_view datatables_view resourcedictionary datastore xloader spatial_metadata spatial_query spatial_harvest_metadata_api csw_harvester waf_harvester doc_harvester resource_proxy geo_view geojson_view wmts_view shp_view dcat dcat_rdf_harvester dcat_json_harvester dcat_json_interface schemingdcat schemingdcat_datasets schemingdcat_groups schemingdcat_organizations schemingdcat_ckan_harvester schemingdcat_xls_harvester harvest pdf_view pages fluent envvars" # ckanext-harvest CKAN__HARVEST__MQ__TYPE=redis @@ -203,6 +204,9 @@ CKANEXT__SCHEMINGDCAT_DEFAULT_PACKAGE_ITEM_SHOW_SPATIAL=True CKANEXT__SCHEMINGDCAT_SHOW_METADATA_TEMPLATES_TOOLBAR=False CKANEXT__METADATA_TEMPLATES_SEARCH_IDENTIFIER="schemingdcat_xls-template" CKANEXT__SCHEMINGDCAT_ENDPOINTS_YAML="endpoints.yaml" +CKANEXT__SCHEMINGDCAT__SOCIAL_GITHUB="https://github.com/mjanez/ckanext-schemingdcat" +CKANEXT__SCHEMINGDCAT__SOCIAL_X="https://x.com/ckanproject" +CKANEXT__SCHEMINGDCAT__SOCIAL_LINKEDIN="https://www.linkedin.com/company/ckanproject" # ckanext-pages CKANEXT__PAGES__ALOW_HTML=False @@ -210,4 +214,29 @@ CKANEXT__PAGES__ORGANIZATION=True CKANEXT__PAGES__GROUP=True CKANEXT__PAGES__ABOUT_MENU=False CKANEXT__PAGES__GROUP_MENU=True -CKANEXT__PAGES__ORGANIZATION_MENU=True \ No newline at end of file +CKANEXT__PAGES__ORGANIZATION_MENU=True + +# ckan-pycsw +CSW_IDENTIFICATION_TITLE="Sample Geospatial Catalogue" +CSW_IDENTIFICATION_ABSTRACT="OGC CSW server powered by pycsw" +CSW_PROVIDER_NAME="ckan-docker development team" +CSW_PROVIDER_URL="https://github.com/mjanez/ckan-docker" +CSW_CONTACT_NAME="ckan-docker development team" +CSW_CONTACT_POSITION="Site Administrator" +CSW_CONTACT_ADDRESS="ckan-docker development team" +CSW_CONTACT_CITY="Madrid" +CSW_CONTACT_STATE_OR_PROVINCE="Madrid" +CSW_CONTACT_POSTAL_CODE="28001" +CSW_CONTACT_COUNTRY="Spain" +CSW_CONTACT_EMAIL=${CKAN_SYSADMIN_EMAIL} +CSW_CONTACT_URL=${CKAN_URL} +## Date of the last update of the metadata. ISO 8601 format): YYYY-MM-DD +CSW_INSPIRE_DATE="2024-01-01" +## Keywords separated by commas based on the GEMET Thesaurus keywordValue: https://inspire.ec.europa.eu/schemas/common/1.0/enums/enum_eng.xsd +CSW_INSPIRE_GEMET_KEYWORDS="Utility and governmental services" +# The level of INSPIRE conformance for spatial data sets and services (conformant, notConformant, notEvaluated) +CSW_INSPIRE_CONFORMITY="notEvaluated" +CSW_INSPIRE_CONTACT_NAME=${CSW_CONTACT_NAME} +CSW_INSPIRE_CONTACT_EMAIL=${CKAN_SYSADMIN_EMAIL} +# Temporal extent of the service (in ISO 8601 format). Either a single date (i.e. YYYY-MM-DD), or an extent (i.e. YYYY-MM-DD/YYYY-MM-DD) +CSW_INSPIRE_TEMP_EXTENT="2024-01-01" diff --git a/ckan-pycsw/Dockerfile b/ckan-pycsw/Dockerfile index 4fa1f0e..4052ed4 100644 --- a/ckan-pycsw/Dockerfile +++ b/ckan-pycsw/Dockerfile @@ -15,6 +15,27 @@ ENV TIMEOUT=300 ENV PYCSW_CRON_DAYS_INTERVAL=2 ENV PYCSW_CRON_HOUR_START=4 +# PYCSW Catalog configuration +ENV CSW_IDENTIFICATION_TITLE="Sample Geospatial Catalogue" \ + CSW_IDENTIFICATION_ABSTRACT="OGC CSW server powered by pycsw" \ + CSW_PROVIDER_NAME="ckan-docker development team" \ + CSW_PROVIDER_URL="https://github.com/mjanez/ckan-docker" \ + CSW_CONTACT_NAME="ckan-docker development team" \ + CSW_CONTACT_POSITION="Site Administrator" \ + CSW_CONTACT_ADDRESS="ckan-docker development team" \ + CSW_CONTACT_CITY="Madrid" \ + CSW_CONTACT_STATE_OR_PROVINCE="Madrid" \ + CSW_CONTACT_POSTAL_CODE="28001" \ + CSW_CONTACT_COUNTRY="Spain" \ + CSW_CONTACT_EMAIL=${CKAN_SYSADMIN_EMAIL} \ + CSW_CONTACT_URL=${CKAN_URL} \ + CSW_INSPIRE_DATE="2024-01-01" \ + CSW_INSPIRE_GEMET_KEYWORDS="Utility and governmental services" \ + CSW_INSPIRE_CONFORMITY="notEvaluated" \ + CSW_INSPIRE_CONTACT_NAME=${CSW_CONTACT_NAME} \ + CSW_INSPIRE_CONTACT_EMAIL=${CKAN_SYSADMIN_EMAIL} \ + CSW_INSPIRE_TEMP_EXTENT="2024-01-01/2024-12-31" + WORKDIR ${APP_DIR} # Update files if needed diff --git a/ckan-pycsw/pycsw/conf/pycsw.conf.template b/ckan-pycsw/pycsw/conf/pycsw.conf.template index 8fa945b..e15908d 100644 --- a/ckan-pycsw/pycsw/conf/pycsw.conf.template +++ b/ckan-pycsw/pycsw/conf/pycsw.conf.template @@ -23,27 +23,27 @@ allowed_ips=127.0.0.1 #csw_harvest_pagesize=10 [metadata:main] -identification_title=Sample Geospatial Catalogue -identification_abstract=OGC CSW server powered by pycsw +identification_title=${CSW_IDENTIFICATION_TITLE} +identification_abstract=${CSW_IDENTIFICATION_ABSTRACT} identification_keywords=catalogue,discovery,metadata,spatial identification_keywords_type=theme identification_fees=None identification_accessconstraints=None -provider_name=Sample -provider_url=https://example.org/ -#contact_name=admin -#contact_position=Position Title -#contact_address=Mailing Address -#contact_city=Madrid -#contact_stateorprovince=Administrative Area -#contact_postalcode=Zip or Postal Code -contact_country=Spain +provider_name=${CSW_PROVIDER_NAME} +provider_url=${CSW_PROVIDER_URL} +contact_name=${CSW_CONTACT_NAME} +contact_position=${CSW_CONTACT_POSITION} +contact_address=${CSW_CONTACT_ADDRESS} +contact_city=${CSW_CONTACT_CITY} +contact_stateorprovince=${CSW_CONTACT_STATE_OR_PROVINCE} +contact_postalcode=${CSW_CONTACT_POSTAL_CODE} +contact_country=${CSW_CONTACT_COUNTRY} #contact_phone=+xx-xxx-xxx-xxxx #contact_fax=+xx-xxx-xxx-xxxx -contact_email=admin@example.org -#contact_url=https://example.org/members/admin -#contact_hours=Hours of Service -#contact_instructions=During hours of service. Off on weekends. +contact_email=${CSW_CONTACT_EMAIL} +contact_url=${CSW_CONTACT_URL} +contact_hours=Hours of Service +contact_instructions=During hours of service. Off on weekends. contact_role=pointOfContact [repository] @@ -61,9 +61,9 @@ table=records enabled=true languages_supported=eng,spa default_language=eng -date=YYYY-MM-DD -gemet_keywords=Utility and governmental services -conformity_service=notEvaluated -contact_name=Organization Name -contact_email=Email Address -temp_extent=YYYY-MM-DD/YYYY-MM-DD \ No newline at end of file +date=${CSW_INSPIRE_DATE} +gemet_keywords=${CSW_INSPIRE_GEMET_KEYWORDS} +conformity_service=${CSW_INSPIRE_CONFORMITY} +contact_name=${CSW_INSPIRE_CONTACT_NAME} +contact_email=${CSW_INSPIRE_CONTACT_EMAIL} +temp_extent=${CSW_INSPIRE_TEMP_EXTENT} \ No newline at end of file