From 6a8562930dd570917c2e129d2d50db0d023b44b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jose=20Garc=C3=ADa?= Date: Tue, 14 Jan 2025 11:40:47 +0100 Subject: [PATCH] Metadata indexing / parse process steps and measure dates to check that are valid. If the dates are not valid causes an error in the index, failing the search when the metadata is returned --- .../plugin/iso19115-3.2018/index-fields/index.xsl | 13 ++++++++----- .../src/main/plugin/iso19139/index-fields/index.xsl | 9 +++++++-- 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/schemas/iso19115-3.2018/src/main/plugin/iso19115-3.2018/index-fields/index.xsl b/schemas/iso19115-3.2018/src/main/plugin/iso19115-3.2018/index-fields/index.xsl index 91b9e6d83d0..6e161eb8da1 100644 --- a/schemas/iso19115-3.2018/src/main/plugin/iso19115-3.2018/index-fields/index.xsl +++ b/schemas/iso19115-3.2018/src/main/plugin/iso19115-3.2018/index-fields/index.xsl @@ -1180,10 +1180,13 @@ + + { "descriptionObject": - + ,"date": "" @@ -1247,16 +1250,16 @@ select="mdq:valueUnit//gml:identifier"/> - - + select="normalize-space(mdq:dateTime/gco:DateTime)"/> + { "name": "", "description": "", - + "date": "", diff --git a/schemas/iso19139/src/main/plugin/iso19139/index-fields/index.xsl b/schemas/iso19139/src/main/plugin/iso19139/index-fields/index.xsl index 6f711e96804..9511c1ad4d0 100644 --- a/schemas/iso19139/src/main/plugin/iso19139/index-fields/index.xsl +++ b/schemas/iso19139/src/main/plugin/iso19139/index-fields/index.xsl @@ -1033,12 +1033,14 @@ select="(../../gmd:measureDescription/gco:CharacterString)[1]"/> + { "name": "", "description": "", - + "date": "", @@ -1060,10 +1062,13 @@ + + { "descriptionObject": - + ,"date": ""