From 5d924239c1ddf7ea5daf7be30ecda52f603b7d0c Mon Sep 17 00:00:00 2001 From: Angi-Kinas <133115263+Angi-Kinas@users.noreply.github.com> Date: Mon, 17 Jun 2024 15:53:03 +0200 Subject: [PATCH] chore(DH): Change link to original metadata (#19) * chore(DH): Change link to original metadata * chore(DH): Add geocat specific comment --- .../src/lib/metadata-info/metadata-info.component.html | 6 ++++-- .../src/lib/metadata-info/metadata-info.component.ts | 7 +++++++ translations/de.json | 2 +- translations/en.json | 2 +- translations/fr.json | 2 +- 5 files changed, 14 insertions(+), 5 deletions(-) diff --git a/libs/ui/elements/src/lib/metadata-info/metadata-info.component.html b/libs/ui/elements/src/lib/metadata-info/metadata-info.component.html index 8977999eb..641556d48 100644 --- a/libs/ui/elements/src/lib/metadata-info/metadata-info.component.html +++ b/libs/ui/elements/src/lib/metadata-info/metadata-info.component.html @@ -200,8 +200,10 @@

record.metadata.sheet

- - {{ metadata.landingPage }} + + {{ + metadataLandingPageAdvanced + }}

diff --git a/libs/ui/elements/src/lib/metadata-info/metadata-info.component.ts b/libs/ui/elements/src/lib/metadata-info/metadata-info.component.ts index 55379fc5f..92f8af47b 100644 --- a/libs/ui/elements/src/lib/metadata-info/metadata-info.component.ts +++ b/libs/ui/elements/src/lib/metadata-info/metadata-info.component.ts @@ -90,6 +90,13 @@ export class MetadataInfoComponent { return this.metadata.contactsForResource?.[0] } + // geocat specific + get metadataLandingPageAdvanced() { + return ( + this.metadata.landingPage + `/formatters/xsl-view?root=div&view=advanced` + ) + } + fieldReady(propName: string) { return !this.incomplete || propName in this.metadata } diff --git a/translations/de.json b/translations/de.json index 4cf84839e..85c619a5d 100644 --- a/translations/de.json +++ b/translations/de.json @@ -256,7 +256,7 @@ "record.metadata.quality.updateFrequency.failed": "Aktualisierungsfrequenz nicht angegeben", "record.metadata.quality.updateFrequency.success": "Aktualisierungsfrequenz angegeben", "record.metadata.related": "Ähnliche Datensätze", - "record.metadata.sheet": "Weitere Informationen verfügbar unter:", + "record.metadata.sheet": "Weitere detaillierte Informationen verfügbar unter:", "record.metadata.status": "Status", "record.metadata.technical": "Technische Informationen", "record.metadata.temporalExtent": "Zeitlicher Umfang", diff --git a/translations/en.json b/translations/en.json index cbd2c0250..4db8d48bc 100644 --- a/translations/en.json +++ b/translations/en.json @@ -256,7 +256,7 @@ "record.metadata.quality.updateFrequency.failed": "Update frequency is not specified", "record.metadata.quality.updateFrequency.success": "Update frequency is specified", "record.metadata.related": "Related records", - "record.metadata.sheet": "Original metadata", + "record.metadata.sheet": "Detailed original metadata", "record.metadata.status": "Status", "record.metadata.technical": "Technical information", "record.metadata.temporalExtent": "Temporal extent", diff --git a/translations/fr.json b/translations/fr.json index 722b630b7..1a471f4e2 100644 --- a/translations/fr.json +++ b/translations/fr.json @@ -256,7 +256,7 @@ "record.metadata.quality.updateFrequency.failed": "Fréquence de mise à jour n'est pas renseignée", "record.metadata.quality.updateFrequency.success": "Fréquence de mise à jour est renseignée", "record.metadata.related": "Voir aussi", - "record.metadata.sheet": "Fiche de métadonnées d'origine", + "record.metadata.sheet": "Fiche de métadonnées détaillée d'origine", "record.metadata.status": "Statut", "record.metadata.technical": "Informations techniques", "record.metadata.temporalExtent": "Etendue temporelle",