Skip to content

Commit

Permalink
geocat: change link to original metadata (#19)
Browse files Browse the repository at this point in the history
The link now points to the advanced GN formatter
  • Loading branch information
Angi-Kinas authored and jahow committed Nov 28, 2024
1 parent 4fde5d2 commit 2fed013
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 @@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion translations/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": "",
Expand Down
2 changes: 1 addition & 1 deletion translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion translations/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -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é",
Expand Down

0 comments on commit 2fed013

Please sign in to comment.