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

Removed handle field and the setter from community and collection models.
This commit is contained in:
Alessandro Martelli
2020-11-18 12:08:57 +01:00
parent fa8ecd16a7
commit 2369892c3f
8 changed files with 47 additions and 45 deletions

View File

@@ -1,4 +1,4 @@
import { deserialize, deserializeAs, inheritSerialization } from 'cerialize';
import { deserialize, inheritSerialization } from 'cerialize';
import { Observable } from 'rxjs';
import { link, typedObject } from '../cache/builders/build-decorators';
import { PaginatedList } from '../data/paginated-list';
@@ -11,17 +11,12 @@ import { COMMUNITY } from './community.resource-type';
import { DSpaceObject } from './dspace-object.model';
import { HALLink } from './hal-link.model';
import { ChildHALResource } from './child-hal-resource.model';
import { excludeFromEquals } from '../utilities/equals.decorators';
@typedObject
@inheritSerialization(DSpaceObject)
export class Community extends DSpaceObject implements ChildHALResource {
static type = COMMUNITY;
@excludeFromEquals
@deserializeAs('handle')
private _handle: string;
/**
* The {@link HALLink}s for this Community
*/
@@ -70,10 +65,6 @@ export class Community extends DSpaceObject implements ChildHALResource {
return this.firstMetadataValue('dc.identifier.uri');
}
set handle(value: string) {
this._handle = value;
}
/**
* The introductory text of this Community
* Corresponds to the metadata field dc.description