[CSTPER-222] handle metadata reading for communities and collections

This commit is contained in:
Alessandro Martelli
2020-11-10 12:37:38 +01:00
parent 65516b3880
commit 5c7a111a61
4 changed files with 9 additions and 21 deletions

View File

@@ -67,8 +67,7 @@ export class Community extends DSpaceObject implements ChildHALResource {
* A string representing the unique handle of this Community
*/
get handle(): string {
const metadataValue = this.firstMetadataValue('dc.identifier.uri');
return metadataValue ? metadataValue : this._handle;
return this.firstMetadataValue('dc.identifier.uri');
}
set handle(value: string) {