Skip to content

Commit f9b04ef

Browse files
NikitaKr1vonosovatarix83
authored andcommitted
Merged in task/dspace-cris-2023_02_x/DSC-1669-2 (pull request DSpace#1992)
[DSC-1669] - fix issue with translation for nested fields Approved-by: Giuseppe Digilio
2 parents 8f7eb39 + 051bb4a commit f9b04ef

File tree

1 file changed

+1
-1
lines changed
  • src/app/cris-layout/cris-layout-matrix/cris-layout-box-container/boxes/metadata/rendering-types/metadataGroup

1 file changed

+1
-1
lines changed

src/app/cris-layout/cris-layout-matrix/cris-layout-box-container/boxes/metadata/rendering-types/metadataGroup/metadata-group.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ export abstract class MetadataGroupComponent extends RenderingTypeStructuredMode
8888
* Returns the translated label, if exists, otherwiuse returns a fallback value
8989
*/
9090
getLabel(field: LayoutField): string {
91-
return this.getTranslationIfExists(`${this.fieldI18nPrefix}.${this.item.entityType}.${this.nestedMetadataPrefix}[${field.metadata}]}`) ??
91+
return this.getTranslationIfExists(`${this.fieldI18nPrefix}.${this.item.entityType}.${this.nestedMetadataPrefix}[${field.metadata}]`) ??
9292
this.getTranslationIfExists(`${this.fieldI18nPrefix}.${this.item.entityType}.[${field.metadata}]`) ??
9393
this.getTranslationIfExists(`${this.fieldI18nPrefix}.${this.item.entityType}.${field.metadata}`) ?? // old syntax - do not use
9494
this.getTranslationIfExists(`${this.fieldI18nPrefix}.[${field.metadata}]`) ??

0 commit comments

Comments
 (0)