Commits

Lotte Hofstede authored 868c42e6179
40416: renaming and implemented uri field
No tags

src/app/core/shared/item.model.ts

Modified
1 -import { inheritSerialization, autoserialize } from "cerialize";
1 +import { inheritSerialization, autoserialize, autoserializeAs } from "cerialize";
2 2 import { DSpaceObject } from "./dspace-object.model";
3 3 import { Collection } from "./collection.model";
4 4
5 5 @inheritSerialization(DSpaceObject)
6 6 export class Item extends DSpaceObject {
7 7
8 8 /**
9 9 * A string representing the unique handle of this Item
10 10 */
11 11 @autoserialize
22 22 isArchived: boolean;
23 23
24 24 /**
25 25 * A boolean representing if this Item is currently withdrawn or not
26 26 */
27 27 isWithdrawn: boolean;
28 28
29 29 /**
30 30 * An array of Collections that are direct parents of this Item
31 31 */
32 + @autoserializeAs(Collection)
32 33 parents: Array<Collection>;
33 34
34 35 /**
35 36 * The Collection that owns this Item
36 37 */
37 38 owner: Collection;
38 39
39 40 }

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut