mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
Added fallback strategy for DSONameService to get name for dspace object without a dc.tile metadata
This commit is contained in:
@@ -28,7 +28,8 @@ export class DSONameService {
|
||||
return dso.firstMetadataValue('organization.legalName');
|
||||
},
|
||||
Default: (dso: DSpaceObject): string => {
|
||||
return dso.firstMetadataValue('dc.title');
|
||||
// If object doesn't have dc.title metadata use name property
|
||||
return dso.firstMetadataValue('dc.title') || dso.name;
|
||||
}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user