-
Notifications
You must be signed in to change notification settings - Fork 532
Expand file tree
/
Copy pathidentifier.model.ts
More file actions
40 lines (38 loc) · 1.14 KB
/
identifier.model.ts
File metadata and controls
40 lines (38 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import { typedObject } from '@dspace/core/cache/builders/build-decorators';
import { IDENTIFIER } from '@dspace/core/shared/identifiers-data/identifier.resource-type';
import { autoserialize } from 'cerialize';
/**
* Identifier model. Identifiers using this model are returned in lists from the /item/{id}/identifiers endpoint
*
* @author Kim Shepherd
*/
@typedObject
export class Identifier {
static type = IDENTIFIER;
/**
* Unique ID for this identifier object
*/
@autoserialize
id: string;
/**
* The value of the identifier, eg. http://hdl.handle.net/123456789/123 or https://doi.org/test/doi/1234
*/
@autoserialize
value: string;
/**
* The type of identifier, eg. "doi", or "handle", or "other"
*/
@autoserialize
identifierType: string;
/**
* The status of the identifier. Some schemes, like DOI, will have a different status based on whether it is
* queued for remote registration, reservation, or update, or has been registered, simply minted locally, etc.
*/
@autoserialize
identifierStatus: string;
/**
* The type of resource, in this case Identifier
*/
@autoserialize
type: string;
}