From 2ebe89f720a5e779503018f72034a54f20da1dd3 Mon Sep 17 00:00:00 2001 From: floeschau Date: Thu, 5 Jan 2023 12:30:38 +0100 Subject: [PATCH] Minor formatting (2) --- .../Model/EarthObservation/CycleNumberMetadataExtractor.cs | 1 + .../OpenSearch/Model/EarthObservation/IdMetadataExtractor.cs | 3 +-- .../EarthObservation/InstrumentDescriptionMetadataExtractor.cs | 1 + .../EarthObservation/InstrumentShortNameMetadataExtractor.cs | 1 + .../Model/EarthObservation/InstrumentTypeMetadataExtractor.cs | 1 + 5 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Terradue.OpenSearch.Model.Base/Terradue/OpenSearch/Model/EarthObservation/CycleNumberMetadataExtractor.cs b/Terradue.OpenSearch.Model.Base/Terradue/OpenSearch/Model/EarthObservation/CycleNumberMetadataExtractor.cs index 880448ce..c5738501 100644 --- a/Terradue.OpenSearch.Model.Base/Terradue/OpenSearch/Model/EarthObservation/CycleNumberMetadataExtractor.cs +++ b/Terradue.OpenSearch.Model.Base/Terradue/OpenSearch/Model/EarthObservation/CycleNumberMetadataExtractor.cs @@ -6,6 +6,7 @@ namespace Terradue.OpenSearch.Model.EarthObservation { class CycleNumberMetadataExtractor : IMetadataExtractor { + #region IMetadataExtractor implementation public string GetMetadata(IOpenSearchResultItem item, string specifier) { diff --git a/Terradue.OpenSearch.Model.Base/Terradue/OpenSearch/Model/EarthObservation/IdMetadataExtractor.cs b/Terradue.OpenSearch.Model.Base/Terradue/OpenSearch/Model/EarthObservation/IdMetadataExtractor.cs index 84184c05..e9801762 100644 --- a/Terradue.OpenSearch.Model.Base/Terradue/OpenSearch/Model/EarthObservation/IdMetadataExtractor.cs +++ b/Terradue.OpenSearch.Model.Base/Terradue/OpenSearch/Model/EarthObservation/IdMetadataExtractor.cs @@ -10,10 +10,9 @@ class IdMetadataExtractor : Terradue.OpenSearch.Model.GeoTime.IdentifierMetadata { #region IMetadataExtractor implementation public override string GetMetadata(Terradue.OpenSearch.Result.IOpenSearchResultItem item, string specifier) { - - return item.Id; } + public override string Description { get { return "Id of the dataset within the collection"; diff --git a/Terradue.OpenSearch.Model.Base/Terradue/OpenSearch/Model/EarthObservation/InstrumentDescriptionMetadataExtractor.cs b/Terradue.OpenSearch.Model.Base/Terradue/OpenSearch/Model/EarthObservation/InstrumentDescriptionMetadataExtractor.cs index 2c2c6f37..38065f8e 100644 --- a/Terradue.OpenSearch.Model.Base/Terradue/OpenSearch/Model/EarthObservation/InstrumentDescriptionMetadataExtractor.cs +++ b/Terradue.OpenSearch.Model.Base/Terradue/OpenSearch/Model/EarthObservation/InstrumentDescriptionMetadataExtractor.cs @@ -6,6 +6,7 @@ namespace Terradue.OpenSearch.Model.EarthObservation { class InstrumentDescriptionMetadataExtractor : IMetadataExtractor { + #region IMetadataExtractor implementation public string GetMetadata(IOpenSearchResultItem item, string specifier) { diff --git a/Terradue.OpenSearch.Model.Base/Terradue/OpenSearch/Model/EarthObservation/InstrumentShortNameMetadataExtractor.cs b/Terradue.OpenSearch.Model.Base/Terradue/OpenSearch/Model/EarthObservation/InstrumentShortNameMetadataExtractor.cs index b3cd3796..0f0a27a7 100644 --- a/Terradue.OpenSearch.Model.Base/Terradue/OpenSearch/Model/EarthObservation/InstrumentShortNameMetadataExtractor.cs +++ b/Terradue.OpenSearch.Model.Base/Terradue/OpenSearch/Model/EarthObservation/InstrumentShortNameMetadataExtractor.cs @@ -3,6 +3,7 @@ namespace Terradue.OpenSearch.Model.EarthObservation { class InstrumentShortNameMetadataExtractor : IMetadataExtractor { + #region IMetadataExtractor implementation public string GetMetadata(IOpenSearchResultItem item, string specifier) { diff --git a/Terradue.OpenSearch.Model.Base/Terradue/OpenSearch/Model/EarthObservation/InstrumentTypeMetadataExtractor.cs b/Terradue.OpenSearch.Model.Base/Terradue/OpenSearch/Model/EarthObservation/InstrumentTypeMetadataExtractor.cs index d24bd687..4b491cf1 100644 --- a/Terradue.OpenSearch.Model.Base/Terradue/OpenSearch/Model/EarthObservation/InstrumentTypeMetadataExtractor.cs +++ b/Terradue.OpenSearch.Model.Base/Terradue/OpenSearch/Model/EarthObservation/InstrumentTypeMetadataExtractor.cs @@ -9,6 +9,7 @@ namespace Terradue.OpenSearch.Model.EarthObservation { class InstrumentTypeMetadataExtractor : IMetadataExtractor { + #region IMetadataExtractor implementation public string GetMetadata(IOpenSearchResultItem item, string specifier) {