From b874f86e6e53a8c09d31154216174148addae4dd Mon Sep 17 00:00:00 2001 From: Francois Prunayre Date: Mon, 5 Aug 2024 18:18:57 +0200 Subject: [PATCH] Index / Add maintenance details. Before only maintenance frequency was displayed but more information may be provided about the maintenance (eg. custom frequency, next update date, note). --- .../geonet/kernel/search/EsSearchManager.java | 1 + .../iso19115-3.2018/index-fields/index.xsl | 16 ++++++++ .../plugin/iso19139/index-fields/index.xsl | 16 ++++++++ .../main/resources/catalog/locales/en-v4.json | 3 ++ .../templates/recordView/maintenance.html | 38 +++++++++++++++++++ .../templates/recordView/technical.html | 17 +-------- 6 files changed, 76 insertions(+), 15 deletions(-) create mode 100644 web-ui/src/main/resources/catalog/views/default/templates/recordView/maintenance.html diff --git a/core/src/main/java/org/fao/geonet/kernel/search/EsSearchManager.java b/core/src/main/java/org/fao/geonet/kernel/search/EsSearchManager.java index bfd783bc5f4..122e7e2930a 100644 --- a/core/src/main/java/org/fao/geonet/kernel/search/EsSearchManager.java +++ b/core/src/main/java/org/fao/geonet/kernel/search/EsSearchManager.java @@ -573,6 +573,7 @@ private void checkIndexResponse(BulkResponse bulkItemResponses, .add("status_text") .add("coordinateSystem") .add("identifier") + .add("maintenance") .add("responsibleParty") .add("mdLanguage") .add("otherLanguage") 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 fb86b5a225a..35ed82ac5bf 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 @@ -712,6 +712,22 @@ + + { + "frequency": "" + + ,"nextUpdateDate": "" + + + ,"userDefinedFrequency": "" + + + ,"noteObject": + + + } + + 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 15f081abb99..c2a7ee33ec8 100644 --- a/schemas/iso19139/src/main/plugin/iso19139/index-fields/index.xsl +++ b/schemas/iso19139/src/main/plugin/iso19139/index-fields/index.xsl @@ -656,6 +656,22 @@ + + { + "frequency": "" + + ,"nextUpdateDate": "" + + + ,"userDefinedFrequency": "" + + + ,"noteObject": + + + } + + diff --git a/web-ui/src/main/resources/catalog/locales/en-v4.json b/web-ui/src/main/resources/catalog/locales/en-v4.json index e412c79f700..266f5e5bf43 100644 --- a/web-ui/src/main/resources/catalog/locales/en-v4.json +++ b/web-ui/src/main/resources/catalog/locales/en-v4.json @@ -405,6 +405,9 @@ "measureDescription": "Description", "measureValue": "Value", "measureDate": "Date", + "nextUpdateDate": "Next update", + "userDefinedFrequency": "Update frequency", + "maintenanceNote": "Maintenance note", "switchPortals": "Switch to another Portal", "dataPreview": "Discover data", "tableOfContents": "Table of Contents", diff --git a/web-ui/src/main/resources/catalog/views/default/templates/recordView/maintenance.html b/web-ui/src/main/resources/catalog/views/default/templates/recordView/maintenance.html new file mode 100644 index 00000000000..a2672e5df09 --- /dev/null +++ b/web-ui/src/main/resources/catalog/views/default/templates/recordView/maintenance.html @@ -0,0 +1,38 @@ +
+
+ + + +
+

updateFrequency

+

{{maintenance.frequency | translate}}

+
+
+
+ + + +
+

maintenanceNote

+

{{maintenance.noteObject.default}}

+
+
+
+ + + +
+

nextUpdateDate

+

{{maintenance.nextUpdateDate}}

+
+
+
+ + + +
+

userDefinedFrequency

+

+
+
+
diff --git a/web-ui/src/main/resources/catalog/views/default/templates/recordView/technical.html b/web-ui/src/main/resources/catalog/views/default/templates/recordView/technical.html index a6bfc157cba..5c68e76a547 100644 --- a/web-ui/src/main/resources/catalog/views/default/templates/recordView/technical.html +++ b/web-ui/src/main/resources/catalog/views/default/templates/recordView/technical.html @@ -22,6 +22,8 @@

{{date.type | translate}}

+
+
@@ -49,21 +51,6 @@

cl_couplingType

{{c.default}}

- -
- - - -
-

updateFrequency

-

- {{c.default}} -

-
-