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 and fgravin committed Nov 19, 2024
1 parent f9593a1 commit 2bff3fc
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 @@ -239,8 +239,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 @@ -450,7 +450,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": "",
Expand Down
2 changes: 1 addition & 1 deletion translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,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",
Expand Down
2 changes: 1 addition & 1 deletion translations/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,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é",
Expand Down

0 comments on commit 2bff3fc

Please sign in to comment.