mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-09 11:03:05 +00:00
[TLC-674] Refactor duplicates from item link to searchBy
This commit is contained in:
@@ -1,7 +1,14 @@
|
||||
import { autoserialize } from 'cerialize';
|
||||
import {autoserialize, deserialize} from 'cerialize';
|
||||
import { MetadataMap } from '../../../core/shared/metadata.models';
|
||||
import { HALLink} from '../../../core/shared/hal-link.model';
|
||||
import { CacheableObject } from '../../../core/cache/cacheable-object.model';
|
||||
import { DUPLICATE } from './duplicate.resource-type';
|
||||
import { ResourceType } from '../../../core/shared/resource-type';
|
||||
|
||||
export class Duplicate implements CacheableObject {
|
||||
|
||||
static type = DUPLICATE;
|
||||
|
||||
export class Duplicate {
|
||||
/**
|
||||
* The item title
|
||||
*/
|
||||
@@ -23,5 +30,13 @@ export class Duplicate {
|
||||
metadata: MetadataMap;
|
||||
|
||||
@autoserialize
|
||||
type: string;
|
||||
type: ResourceType;
|
||||
|
||||
/**
|
||||
* The {@link HALLink}s for this Bitstream
|
||||
*/
|
||||
@deserialize
|
||||
_links: {
|
||||
self: HALLink;
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user