mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-14 21:43:04 +00:00
68405: separate resource types, missing @link paras/followLinks, start test fix
This commit is contained in:

committed by
Art Lowel

parent
b2f966eb83
commit
f17e204712
@@ -2,14 +2,14 @@ import { Observable } from 'rxjs';
|
||||
import { link } from '../cache/builders/build-decorators';
|
||||
import { RemoteData } from '../data/remote-data';
|
||||
import { BitstreamFormat } from './bitstream-format.model';
|
||||
import { Bundle } from './bundle.model';
|
||||
import { BITSTREAM_FORMAT } from './bitstream-format.resource-type';
|
||||
import { BITSTREAM } from './bitstream.resource-type';
|
||||
import { DSpaceObject } from './dspace-object.model';
|
||||
import { HALResource } from './hal-resource.model';
|
||||
import { HALLink } from './hal-link.model';
|
||||
import { ResourceType } from './resource-type';
|
||||
import { HALResource } from './hal-resource.model';
|
||||
|
||||
export class Bitstream extends DSpaceObject implements HALResource {
|
||||
static type = new ResourceType('bitstream');
|
||||
static type = BITSTREAM;
|
||||
|
||||
/**
|
||||
* The size of this bitstream in bytes
|
||||
@@ -34,19 +34,13 @@ export class Bitstream extends DSpaceObject implements HALResource {
|
||||
/**
|
||||
* The Bitstream Format for this Bitstream
|
||||
*/
|
||||
@link(BitstreamFormat.type)
|
||||
@link(BITSTREAM_FORMAT)
|
||||
format?: Observable<RemoteData<BitstreamFormat>>;
|
||||
|
||||
_links: {
|
||||
// @link(Bitstream.type)
|
||||
self: HALLink;
|
||||
|
||||
// @link(Bundle.type)
|
||||
bundle: HALLink;
|
||||
|
||||
// @link(BitstreamFormat.type)
|
||||
format: HALLink;
|
||||
|
||||
content: HALLink;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user