From 7d2b92cd9e627d508cbdbd6ce66ff20e7d813e96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Prunayre?= Date: Mon, 10 Aug 2020 14:58:15 +0200 Subject: [PATCH] Associated record / Store all relations in index. (#84) Related to https://github.com/geonetwork/core-geonetwork/pull/4912 --- .../iso19115-3.2018/index-fields/index.xsl | 119 ++++-------------- 1 file changed, 27 insertions(+), 92 deletions(-) diff --git a/src/main/plugin/iso19115-3.2018/index-fields/index.xsl b/src/main/plugin/iso19115-3.2018/index-fields/index.xsl index 7b6ee67..2725518 100644 --- a/src/main/plugin/iso19115-3.2018/index-fields/index.xsl +++ b/src/main/plugin/iso19115-3.2018/index-fields/index.xsl @@ -42,6 +42,7 @@ xmlns:gfc="http://standards.iso.org/iso/19110/gfc/1.1" xmlns:gml="http://www.opengis.net/gml/3.2" xmlns:util="java:org.fao.geonet.util.XslUtil" + xmlns:related="java:org.fao.geonet.api.records.MetadataUtils" xmlns:index="java:org.fao.geonet.kernel.search.EsSearchManager" xmlns:gn-fn-index="http://geonetwork-opensource.org/xsl/functions/index" xmlns:xlink="http://www.w3.org/1999/xlink" @@ -611,7 +612,7 @@ {"value": "" , - "link": "" + "link": "" } , @@ -996,19 +997,7 @@ - { - "type": "fcats", - "origin": "", - "to": "", - "title": "", - "url": "" - } + @@ -1024,19 +1013,7 @@ - { - "type": "sources", - "origin": "", - "to": "", - "title": "", - "url": "" - } + @@ -1112,23 +1089,7 @@ - - - - { - "type": "parent", - "to": "", - "url": "", - "title": "", - "origin": "" - } + @@ -1139,6 +1100,7 @@ + - { - "type": "parent", - "to": "", - "url": "", - "title": "", - "origin": "" - } + - { - "type": "siblings", - "associationType": "", - "initiativeType": "", - "to": "", - "url": "", - "title": "", - "origin": "" - } + + +

+

+ + + + + + + + + @@ -1329,13 +1282,7 @@ /*[local-name(.) = 'citation']/* /*[local-name(.) = 'title']/*/text()" /> - { - "type": "datasets", - "origin": "remote", - "to": "", - "title": "", - "url": "" - } + @@ -1346,19 +1293,7 @@ - { - "type": "datasets", - "origin": "", - "to": "", - "title": "", - "url": "" - } +