Skip to content

Commit 1619d33

Browse files
eskander17steph-ieffam
authored andcommitted
Merged in task/dspace-cris-2023_02_x/DSC-2094 (pull request DSpace#2641)
[DSC-2094] fix OrgUnit name Approved-by: Stefano Maffei
2 parents 4982559 + fc95ad9 commit 1619d33

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/app/core/breadcrumbs/dso-name.service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export class DSONameService {
5050
}
5151
},
5252
OrgUnit: (dso: DSpaceObject): string => {
53-
return dso.firstMetadataValue('organization.legalName') || this.translateService.instant('dso.name.untitled') || dso.firstMetadataValue('dc.title');
53+
return dso.firstMetadataValue('organization.legalName') || dso.firstMetadataValue('dc.title') || this.translateService.instant('dso.name.untitled');
5454
},
5555
Default: (dso: DSpaceObject): string => {
5656
// If object doesn't have dc.title metadata use name property
@@ -106,7 +106,7 @@ export class DSONameService {
106106
}
107107
return `${familyName}, ${givenName}`;
108108
} else if (entityType === 'OrgUnit') {
109-
return this.firstMetadataValue(object, dso, 'organization.legalName') || this.translateService.instant('dso.name.untitled') || this.firstMetadataValue(object, dso, 'dc.title');
109+
return this.firstMetadataValue(object, dso, 'organization.legalName') || this.firstMetadataValue(object, dso, 'dc.title') || this.translateService.instant('dso.name.untitled');
110110
}
111111
return this.firstMetadataValue(object, dso, 'dc.title') || dso.name || this.translateService.instant('dso.name.untitled');
112112
}

0 commit comments

Comments
 (0)