From ba9975973bb0f004b682f46214638fb3adae57e3 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] geocat: change link to original metadata (#19) The link now points to the advanced GN formatter --- .../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 cb88a3fcb..e7bff52d7 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 @@ -239,8 +239,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 21b363ad7..e95a0f3ad 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 @@ -127,6 +127,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 d0b48b1ea..086fc2232 100644 --- a/translations/de.json +++ b/translations/de.json @@ -452,7 +452,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.status.notPublished": "", "record.metadata.status.published": "", diff --git a/translations/en.json b/translations/en.json index 8c1a12c50..5d35df37c 100644 --- a/translations/en.json +++ b/translations/en.json @@ -452,7 +452,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.status.notPublished": "Not published", "record.metadata.status.published": "Published", diff --git a/translations/fr.json b/translations/fr.json index 2459eb4c7..4352fbd5d 100644 --- a/translations/fr.json +++ b/translations/fr.json @@ -452,7 +452,7 @@ "record.metadata.quality.updateFrequency.failed": "La fréquence de mise à jour n'est pas renseignée", "record.metadata.quality.updateFrequency.success": "La 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.status.notPublished": "Non publié", "record.metadata.status.published": "Publié",