mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-17 06:53:03 +00:00
refactored requestCacheReducer
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
import { autoserialize, inheritSerialization } from "cerialize";
|
||||
import { autoserialize, inheritSerialization, autoserializeAs } from "cerialize";
|
||||
import { DSpaceObject } from "./dspace-object.model";
|
||||
import { Bitstream } from "./bitstream.model";
|
||||
import { Item } from "./item.model";
|
||||
import { RemoteData } from "../data/remote-data";
|
||||
|
||||
@inheritSerialization(DSpaceObject)
|
||||
export class Collection extends DSpaceObject {
|
||||
@@ -54,7 +56,7 @@ export class Collection extends DSpaceObject {
|
||||
/**
|
||||
* The Bitstream that represents the logo of this Collection
|
||||
*/
|
||||
logo: Bitstream;
|
||||
logo: RemoteData<Bitstream>;
|
||||
|
||||
/**
|
||||
* An array of Collections that are direct parents of this Collection
|
||||
@@ -66,4 +68,7 @@ export class Collection extends DSpaceObject {
|
||||
*/
|
||||
owner: Collection;
|
||||
|
||||
@autoserializeAs(RemoteData)
|
||||
items: RemoteData<Item[]>;
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user