mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-18 07:23:03 +00:00
refactor all remaining self links in mocks
This commit is contained in:
@@ -52,12 +52,22 @@ export class DSpaceObject extends ListableObject implements CacheableObject {
|
||||
type: ResourceType;
|
||||
|
||||
/**
|
||||
* A shorthand for this DSpaceObject's self link
|
||||
* A shorthand to get this DSpaceObject's self link
|
||||
*/
|
||||
get self(): string {
|
||||
return this._links.self.href;
|
||||
}
|
||||
|
||||
/**
|
||||
* A shorthand to set this DSpaceObject's self link
|
||||
*/
|
||||
set self(v: string) {
|
||||
debugger;
|
||||
this._links.self = {
|
||||
href: v
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* The name for this DSpaceObject
|
||||
*/
|
||||
|
Reference in New Issue
Block a user