From c2a3f5fd6295676e1e523e7bed233907df3b5680 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Prunayre?= Date: Wed, 5 Jul 2023 13:15:53 +0200 Subject: [PATCH] Harvester / Simple URL / ODS / Improve mapping Follow up of https://github.com/geonetwork/core-geonetwork/pull/7059 * Add elements taking into account the API version 1 or 2 * Do not put free text in an ISO field which is an enumeration (which avoids to mix facet icons and translations for topic category) * Provide a mapping based on default ODS values for french and english * Add a dedicated keyword block with the free text values --- .../convert/fromJsonOpenDataSoft.xsl | 84 +++++++----- .../convert/odstheme-mapping.xsl | 43 ++++++ .../convert/protocol-mapping.xsl | 123 +++++++++--------- 3 files changed, 155 insertions(+), 95 deletions(-) create mode 100644 schemas/iso19115-3.2018/src/main/plugin/iso19115-3.2018/convert/odstheme-mapping.xsl diff --git a/schemas/iso19115-3.2018/src/main/plugin/iso19115-3.2018/convert/fromJsonOpenDataSoft.xsl b/schemas/iso19115-3.2018/src/main/plugin/iso19115-3.2018/convert/fromJsonOpenDataSoft.xsl index a14cd81ca4a..04e69e18483 100644 --- a/schemas/iso19115-3.2018/src/main/plugin/iso19115-3.2018/convert/fromJsonOpenDataSoft.xsl +++ b/schemas/iso19115-3.2018/src/main/plugin/iso19115-3.2018/convert/fromJsonOpenDataSoft.xsl @@ -45,7 +45,8 @@ xmlns:java-xsl-util="java:org.fao.geonet.util.XslUtil" exclude-result-prefixes="#all"> - + + @@ -130,26 +131,30 @@ - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + @@ -264,15 +269,33 @@ - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + @@ -292,6 +315,7 @@ + diff --git a/schemas/iso19115-3.2018/src/main/plugin/iso19115-3.2018/convert/odstheme-mapping.xsl b/schemas/iso19115-3.2018/src/main/plugin/iso19115-3.2018/convert/odstheme-mapping.xsl new file mode 100644 index 00000000000..c5046e099cf --- /dev/null +++ b/schemas/iso19115-3.2018/src/main/plugin/iso19115-3.2018/convert/odstheme-mapping.xsl @@ -0,0 +1,43 @@ + + + + + Santé + Health + + + Environnement + Environment + + + Transports, Déplacements + Transport, Movements + + + Aménagement du territoire, Urbanisme, Bâtiments, Equipements, Habitat + Spatial planning, Town planning, Buildings, Equipment, Housing + + + Economie, Entreprise, PME, Développement économique, Emploi + Economy, Business, SME, Economic development, Employment + + + Patrimoine culturel + Culture, Heritage + Education, Formation, Recherche, Enseignement + Education, Training, Research, Teaching + Administration, Gouvernement, Finances publiques, Citoyenneté + Administration, Government, Public finances, Citizenship + Justice, Sécurité, Police, Criminalité + Justice, Safety, Police, Crime + Sports, Loisirs + Sports, Leisure + Hébergement, industrie hôtelière + Accommodation, Hospitality Industry + Services sociaux + Services, Social + + + diff --git a/schemas/iso19115-3.2018/src/main/plugin/iso19115-3.2018/convert/protocol-mapping.xsl b/schemas/iso19115-3.2018/src/main/plugin/iso19115-3.2018/convert/protocol-mapping.xsl index 81062b32791..a3429faa6dd 100644 --- a/schemas/iso19115-3.2018/src/main/plugin/iso19115-3.2018/convert/protocol-mapping.xsl +++ b/schemas/iso19115-3.2018/src/main/plugin/iso19115-3.2018/convert/protocol-mapping.xsl @@ -1,71 +1,64 @@ - - - - - - csv - WWW:DOWNLOAD:text/csv - - - geojson - WWW:DOWNLOAD:application/vnd.geo+json - - - kml - WWW:DOWNLOAD:application/vnd.google-earth.kml+xml - - - zip - WWW:DOWNLOAD:application/zip - - - shapefile - shp - WWW:DOWNLOAD:x-gis/x-shapefile - - - json - WWW:DOWNLOAD:application/json - - - pdf - WWW:DOWNLOAD:application/pdf - - - xls - WWW:DOWNLOAD:application/vnd.ms-excel - - - xlsx - excel - WWW:DOWNLOAD:application/vnd.openxmlformats-officedocument.spreadsheetml.sheet - - - rtf - WWW:DOWNLOAD:application/rtf - - - web page - html - arcgis - WWW:LINK-1.0-http--link - - - wms - OGC:WMS - - - wfs - OGC:WFS - - + + + csv + WWW:DOWNLOAD:text/csv + + + geojson + WWW:DOWNLOAD:application/vnd.geo+json + + + kml + WWW:DOWNLOAD:application/vnd.google-earth.kml+xml + + + zip + WWW:DOWNLOAD:application/zip + + + shapefile + shp + WWW:DOWNLOAD:x-gis/x-shapefile + + + json + WWW:DOWNLOAD:application/json + + + pdf + WWW:DOWNLOAD:application/pdf + + + xls + WWW:DOWNLOAD:application/vnd.ms-excel + + + xlsx + excel + WWW:DOWNLOAD:application/vnd.openxmlformats-officedocument.spreadsheetml.sheet + + + rtf + WWW:DOWNLOAD:application/rtf + + + web page + html + arcgis + WWW:LINK-1.0-http--link + + + wms + OGC:WMS + + + wfs + OGC:WFS + +