[TLC-674] Refactor duplicates from item link to searchBy

This commit is contained in:
Kim Shepherd
2024-02-01 11:29:16 +13:00
parent 140cb88510
commit db8d47e598
7 changed files with 64 additions and 33 deletions

View File

@@ -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;
};
}