diff --git a/iso19139.che/src/main/plugin/iso19139.che/convert/functions.xsl b/iso19139.che/src/main/plugin/iso19139.che/convert/functions.xsl
deleted file mode 100644
index ea1b73f3f6..0000000000
--- a/iso19139.che/src/main/plugin/iso19139.che/convert/functions.xsl
+++ /dev/null
@@ -1,90 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/iso19139.che/src/main/plugin/iso19139.che/extract-relations.xsl b/iso19139.che/src/main/plugin/iso19139.che/extract-relations.xsl
index 1dc8ad3806..9f0ba91aae 100644
--- a/iso19139.che/src/main/plugin/iso19139.che/extract-relations.xsl
+++ b/iso19139.che/src/main/plugin/iso19139.che/extract-relations.xsl
@@ -1,4 +1,27 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+
+
+
-
+
-
-
+
+
+
+
+
+
+
+ select="gmd:MD_BrowseGraphic/gmd:fileName"/>
+ select="gmd:MD_BrowseGraphic/gmd:fileDescription"/>
thumbnail
@@ -73,48 +133,85 @@
-
-
+
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- onlinesrc
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ onlinesrc
+
+
+
diff --git a/iso19139.che/src/main/plugin/iso19139.che/index-fields/index.xsl b/iso19139.che/src/main/plugin/iso19139.che/index-fields/index.xsl
index f24d092e61..14161bb0d7 100644
--- a/iso19139.che/src/main/plugin/iso19139.che/index-fields/index.xsl
+++ b/iso19139.che/src/main/plugin/iso19139.che/index-fields/index.xsl
@@ -34,6 +34,7 @@
xmlns:che="http://www.geocat.ch/2008/che"
xmlns:gn-fn-index="http://geonetwork-opensource.org/xsl/functions/index"
xmlns:index="java:org.fao.geonet.kernel.search.EsSearchManager"
+ xmlns:digestUtils="java:org.apache.commons.codec.digest.DigestUtils"
xmlns:util="java:org.fao.geonet.util.XslUtil"
xmlns:date-util="java:org.fao.geonet.utils.DateUtil"
xmlns:daobs="http://daobs.org"
@@ -54,7 +55,7 @@
encoding="utf-8"
escape-uri-attributes="yes"/>
-
+
+
@@ -139,6 +141,7 @@
+
@@ -156,6 +159,10 @@
+
+
+
+
@@ -191,19 +198,6 @@
-
-
- dataset
-
-
-
-
-
-
-
-
-
-
- map
- map/static
+ map-static
- map/interactive
+ map-interactive
+
+ dataset
+
+
+
+
+
+
+
+
@@ -280,32 +283,34 @@
select="string(gmd:date[1]/gco:Date|gmd:date[1]/gco:DateTime)"/>
-
+
+
-
+
-
+
-
+
{
- "string": "indexingErrorMsg-invalidDateFormat",
- "type": "warning",
- "values": {
- "dateType": "",
- "date": ""
- }
+ "string": "indexingErrorMsg-invalidDateFormat",
+ "type": "warning",
+ "values": {
+ "dateType": "",
+ "date": ""
+ }
}
@@ -343,9 +348,9 @@
-
+
{
- "code": "",
+ "code": "",
"codeSpace": "",
"link": ""
}
@@ -402,7 +407,7 @@
,
"nameObject":
- }
+ }
+ select="if ($thesaurusRef != '')
+ then normalize-space($thesaurusRef/text())
+ else util:getThesaurusIdByTitle($thesaurusTitle)"/>
@@ -531,12 +538,19 @@
+
+
+
+
+
+
@@ -566,12 +580,12 @@
{
- "string": "indexingErrorMsg-keywordNotFoundInThesaurus",
- "type": "warning",
- "values": {
- "keyword": "",
- "thesaurus": ""
- }
+ "string": "indexingErrorMsg-keywordNotFoundInThesaurus",
+ "type": "warning",
+ "values": {
+ "keyword": "",
+ "thesaurus": ""
+ }
}
@@ -607,6 +621,25 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -614,7 +647,7 @@
-
+
@@ -635,12 +668,30 @@
-
+
+
+ {
+ "frequency": ""
+
+ ,"nextUpdateDate": ""
+
+
+ ,"userDefinedFrequency": ""
+
+
+ ,"noteObject":
+
+
+ }
+
+
-
@@ -685,7 +735,10 @@
-
+
+
+
+
+
+ {"type": "Point", "coordinates":
+
+
@@ -802,9 +859,9 @@
{
- "string": "indexingErrorMsg-invalidBounds",
- "type": "warning",
- "values": { }
+ "string": "indexingErrorMsg-invalidBounds",
+ "type": "warning",
+ "values": { }
}
@@ -815,12 +872,12 @@
and $start > $end">
{
- "string": "indexingErrorMsg-temporalRangeLowerGreaterThanUpper",
- "type": "warning",
- "values": {
- "lowerBound": "",
- "upperBound": ""
- }
+ "string": "indexingErrorMsg-temporalRangeLowerGreaterThanUpper",
+ "type": "warning",
+ "values": {
+ "lowerBound": "",
+ "upperBound": ""
+ }
}
@@ -837,19 +894,22 @@
- {
- "gte": ""
-
- ,"lte": ""
-
- }
+
+ {
+ "gte":
+
+ ,"lte":
+
+ }
+
-
+
@@ -891,10 +951,10 @@
{
- "code": "",
- "codeSpace": "",
- "name": "",
- "url": ""
+ "code": "",
+ "codeSpace": "",
+ "name": "",
+ "url": ""
}
@@ -904,6 +964,48 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {
+ "title": "",
+
+ "date": "",
+
+
+ "link": "",
+
+
+ "explanation": "",
+
+ "pass": ""
+ }
+
+
+
+
+
+
+
+
+
+
@@ -917,9 +1019,10 @@
then 'remote'
else 'catalog'"/>",
"to": "",
- "title": "",
+ "title": "",
"url": ""
}
+
@@ -939,7 +1042,7 @@
then 'remote'
else 'catalog'"/>",
"to": "",
- "title": "",
+ "title": "",
"url": ""
}
@@ -948,44 +1051,106 @@
gmd:statement, $allLanguages)"/>
-
+
+ select="(../../gmd:nameOfMeasure/gco:CharacterString)[1]"/>
+ select="(gmd:value)[1]"/>
+ select="(gmd:valueUnit//(gml:identifier|gml320:identifier))[1]"/>
+ select="(../../gmd:measureDescription/gco:CharacterString)[1]"/>
+
{
- "name": "",
+ "name": "",
- "description": "",
+ "description": "",
+
+
+ "date": "",
- "value": "",
+ "value": "",
- "unit": "",
+ "unit": "",
"type": ""
}
-
+
+
+
+
+ {
+ "descriptionObject":
+
+ ,"date": ""
+
+
+ ,"source": [
+
+ {
+ "descriptionObject":
+ }
+ ,
+
+ ]
+
+
+
+
+
+ ,"processor": [
+
+ {
+ "organisationObject":
+
+ ,"individual":""
+
+ }
+ ,
+
+ ]
+
+ }
+
+
+
+
+
+
+
+
+
+
+ select="gmd:distributionFormat/*/gmd:name/*[. != '']">
+
-
-
-
+
+
+
+
+
+
+
+
{
- "protocol":"",
+ "hash": "",
+ "idx": ,
+ "protocol":"",
+ "mimeType":"",
"urlObject":{},
- "nameObject": ,
- "descriptionObject": ,
"nilReason": "",
"function":"",
- "applicationProfile":"",
+ "applicationProfile":"",
"group":
}
+
+
+ view
+
+
+ download
+
+
@@ -1093,7 +1280,7 @@
-
+
@@ -1114,6 +1301,13 @@
+
+
+
+
@@ -1125,6 +1319,7 @@
+
@@ -1194,50 +1389,40 @@
+
+
+
- ,
- ,
+
+
-
-
-
-
-
- {
- "organisationObject": ,
- "role":"",
- "email":"",
- "websiteObject":{},
- "logo":"",
- "individual":"",
- "position":"",
- "phone":"",
- "address":""
- }
-
-
-
-
- {
- "role":"",
- "email":"",
- "websiteObject":{},
- "logo":"",
- "individual":"",
- "position":"",
- "phone":"",
- "address":""
- }
-
-
-
-
+
+ {
+
+ "organisationObject": ,
+
+ "role":"",
+ "email":"",
+ "websiteObject":{},
+ "logo":"",
+ "individual":"",
+ "position":"",
+ "phone":"",
+ "address":""
+
+ ,"nilReason": ""
+
+ }
+
@@ -1254,7 +1439,7 @@
+ regex=".*[i|I][d|D]=([a-zA-Z0-9\-\.\{{\}}]*).*">
@@ -1280,6 +1465,7 @@
@@ -1303,7 +1489,7 @@
Remote is supposed to be ISO19139. -->
+ *[local-name(.) = 'metadataIdentifier']/*/*[local-name(.) = 'code']/*/text())" />
@@ -1331,7 +1517,7 @@
-
+
diff --git a/iso19139.che/src/main/plugin/iso19139.che/process/onlinesrc-add.xsl b/iso19139.che/src/main/plugin/iso19139.che/process/onlinesrc-add.xsl
index 5dac142199..56b5d7b30a 100644
--- a/iso19139.che/src/main/plugin/iso19139.che/process/onlinesrc-add.xsl
+++ b/iso19139.che/src/main/plugin/iso19139.che/process/onlinesrc-add.xsl
@@ -25,13 +25,23 @@
+ xmlns:che="http://www.geocat.ch/2008/che"
+ exclude-result-prefixes="#all"
+ version="2.0">
@@ -51,32 +63,39 @@ Insert is made in first transferOptions found.
in this one. -->
-
-
-
-
-
+
-
+
+
+
-
+
+
+
+ select="(gmd:MD_Metadata|*[@gco:isoType='gmd:MD_Metadata'])/gmd:language/gmd:LanguageCode/@codeListValue"/>
-
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
+
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+
+
+
--->
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
@@ -211,7 +261,7 @@ Insert is made in first transferOptions found.
- che:PT_FreeURL_PropertyType
+ che:PT_FreeURL_PropertyType
-
-
-
+
@@ -269,7 +317,7 @@ Insert is made in first transferOptions found.
+ test="$useOnlyPTFreeText = 'false' and $nameLang = $mainLang">
@@ -284,10 +332,10 @@ Insert is made in first transferOptions found.
select="substring-after(., '#')">
+ test="$useOnlyPTFreeText = 'true' or $nameLang != $mainLang">
+ locale="{concat('#', $nameLang)}">
@@ -305,28 +353,105 @@ Insert is made in first transferOptions found.
-
+
+
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+ codeList="http://standards.iso.org/iso/19139/resources/gmxCodelists.xml#CI_OnLineFunctionCode"
+ codeListValue="{$function}"/>
@@ -336,7 +461,6 @@ Insert is made in first transferOptions found.
-
@@ -348,7 +472,7 @@ Insert is made in first transferOptions found.
- che:PT_FreeURL_PropertyType
+ che:PT_FreeURL_PropertyType
-
-
-
+
@@ -409,7 +531,7 @@ Insert is made in first transferOptions found.
+ test="$useOnlyPTFreeText = 'false' and $nameLang = $mainLang">
@@ -424,10 +546,10 @@ Insert is made in first transferOptions found.
select="substring-after(., '#')">
+ test="$useOnlyPTFreeText = 'true' or $nameLang != $mainLang">
+ locale="{concat('#', $nameLang)}">
@@ -447,9 +569,7 @@ Insert is made in first transferOptions found.
-
-
@@ -457,8 +577,9 @@ Insert is made in first transferOptions found.
select="substring-before(., '#')">
+
+ test="$useOnlyPTFreeText = 'false' and $nameLang = $mainLang">
@@ -473,10 +594,10 @@ Insert is made in first transferOptions found.
select="substring-after(., '#')">
+ test="$useOnlyPTFreeText = 'true' or $nameLang != $mainLang">
+ locale="{concat('#', $nameLang)}">
@@ -504,7 +625,7 @@ Insert is made in first transferOptions found.
+ test="$useOnlyPTFreeText = 'false' and $descLang = $mainLang">
@@ -518,10 +639,10 @@ Insert is made in first transferOptions found.
+ test="$useOnlyPTFreeText = 'true' or $descLang != $mainLang">
+ locale="{concat('#', $descLang)}">
@@ -541,8 +662,8 @@ Insert is made in first transferOptions found.
+ codeList="http://standards.iso.org/iso/19139/resources/gmxCodelists.xml#CI_OnLineFunctionCode"
+ codeListValue="{$function}"/>
@@ -552,6 +673,26 @@ Insert is made in first transferOptions found.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/iso19139.che/src/main/plugin/iso19139.che/process/onlinesrc-remove.xsl b/iso19139.che/src/main/plugin/iso19139.che/process/onlinesrc-remove.xsl
index 910eb9fd21..a8eab07639 100644
--- a/iso19139.che/src/main/plugin/iso19139.che/process/onlinesrc-remove.xsl
+++ b/iso19139.che/src/main/plugin/iso19139.che/process/onlinesrc-remove.xsl
@@ -1,4 +1,27 @@
+
+
@@ -6,35 +29,61 @@ Stylesheet used to remove a reference to a online resource.
xmlns:gco="http://www.isotc211.org/2005/gco"
xmlns:che="http://www.geocat.ch/2008/che"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:xs="http://www.w3.org/2001/XMLSchema"
+ xmlns:digestUtils="java:org.apache.commons.codec.digest.DigestUtils"
+ xmlns:exslt="http://exslt.org/common"
+ exclude-result-prefixes="#all"
version="2.0">
-
-
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
+
+
+