diff --git a/src/app/submission/import-external/import-external-preview/submission-import-external-preview.component.html b/src/app/submission/import-external/import-external-preview/submission-import-external-preview.component.html index bbb0dbcc942..beecd68d700 100644 --- a/src/app/submission/import-external/import-external-preview/submission-import-external-preview.component.html +++ b/src/app/submission/import-external/import-external-preview/submission-import-external-preview.component.html @@ -18,10 +18,12 @@

{{'submission.import-external.preview.title.' + labelPrefix | translate}}
-
- {{'item.preview.' + metadata.key | translate}} -

{{metadata.value.value}}

-
+

+ {{'item.preview.' + metadata.key | translate}}
+ + {{metadatum.value}}
+
+

diff --git a/src/app/submission/import-external/import-external-preview/submission-import-external-preview.component.ts b/src/app/submission/import-external/import-external-preview/submission-import-external-preview.component.ts index ccc9ede1427..2c7b3a66bee 100644 --- a/src/app/submission/import-external/import-external-preview/submission-import-external-preview.component.ts +++ b/src/app/submission/import-external/import-external-preview/submission-import-external-preview.component.ts @@ -27,7 +27,7 @@ export class SubmissionImportExternalPreviewComponent implements OnInit { /** * The entry metadata list */ - public metadataList: { key: string, value: MetadataValue }[]; + public metadataList: { key: string, values: MetadataValue[] }[]; /** * The label prefix to use to generate the translation label */ @@ -62,7 +62,7 @@ export class SubmissionImportExternalPreviewComponent implements OnInit { metadataKeys.forEach((key) => { this.metadataList.push({ key: key, - value: Metadata.first(this.externalSourceEntry.metadata, key) + values: Metadata.all(this.externalSourceEntry.metadata, key) }); }); }