80369: Add thumbnail link to Item & Bitstream models

This commit is contained in:
Yura Bondarenko
2021-06-25 17:17:56 +02:00
parent 0d5fc8a1c0
commit acff2186b4
3 changed files with 15 additions and 2 deletions

View File

@@ -43,13 +43,14 @@ export class Bitstream extends DSpaceObject implements HALResource {
bundle: HALLink;
format: HALLink;
content: HALLink;
thumbnail: HALLink;
};
/**
* The thumbnail for this Bitstream
* Needs to be resolved first, but isn't available as a {@link HALLink} yet
* Use BitstreamDataService.getThumbnailFor(…) for now.
* Will be undefined unless the thumbnail {@link HALLink} has been resolved.
*/
@link(BITSTREAM, false, 'thumbnail')
thumbnail?: Observable<RemoteData<Bitstream>>;
/**