Added fallback strategy for DSONameService to get name for dspace object without a dc.tile metadata

This commit is contained in:
Giuseppe Digilio
2020-04-02 19:10:22 +02:00
parent fab11e9055
commit 4f14e546a5

View File

@@ -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;
}
};