mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-13 13:03:04 +00:00
[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:
@@ -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
|
||||
|
Reference in New Issue
Block a user