Skip to content

Commit

Permalink
chore(DH): Change link to original metadata (#19)
Browse files Browse the repository at this point in the history
* chore(DH): Change link to original metadata

* chore(DH): Add geocat specific comment
  • Loading branch information
Angi-Kinas authored Jun 17, 2024
1 parent 3e047a3 commit 5d92423
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,10 @@ <h5 translate class="font-medium text-black text-sm mb-[2px] mt-[16px]">
<div *ngIf="metadata.landingPage">
<p class="text-sm" translate>record.metadata.sheet</p>
<p class="text-primary font-medium" translate>
<a [href]="metadata.landingPage" target="_blank">
<span class="break-all" gnUiLinkify>{{ metadata.landingPage }}</span>
<a [href]="metadataLandingPageAdvanced" target="_blank">
<span class="break-all" gnUiLinkify>{{
metadataLandingPageAdvanced
}}</span>
</a>
</p>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion translations/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion translations/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 5d92423

Please sign in to comment.