-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathmetadata.model.ts
More file actions
73 lines (66 loc) · 1.71 KB
/
metadata.model.ts
File metadata and controls
73 lines (66 loc) · 1.71 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
import { UserPermissions } from '@shared/enums/user-permissions.enum';
import { IdentifierModel } from '@shared/models/identifiers/identifier.model';
import { Institution } from '@shared/models/institutions/institutions.models';
import { LicenseModel } from '@shared/models/license/license.model';
export interface MetadataModel {
id: string;
title: string;
description: string;
tags?: string[];
resourceType?: string;
resourceLanguage?: string;
publicationDoi?: string;
license: LicenseModel | null;
category?: string;
dateCreated: string;
dateModified: string;
identifiers: IdentifierModel[];
affiliatedInstitutions?: Institution[];
provider?: string;
nodeLicense?: {
copyrightHolders: string[];
year: string;
};
public?: boolean;
currentUserPermissions: UserPermissions[];
registrationSupplement?: string;
}
export interface CustomItemMetadataRecord {
language?: string;
resourceTypeGeneral?: string;
funders?: Funder[];
}
export interface Funder {
funderName: string;
funderIdentifier: string;
funderIdentifierType: string;
awardNumber: string;
awardUri: string;
awardTitle: string;
}
export interface CrossRefFundersResponse {
status: string;
'message-type': string;
'message-version': string;
message: CrossRefFundersMessage;
}
export interface CrossRefFundersMessage {
'items-per-page': number;
query: CrossRefQuery;
'total-results': number;
items: CrossRefFunder[];
}
export interface CrossRefQuery {
'start-index': number;
'search-terms': string | null;
}
export interface CrossRefFunder {
id: string;
location: string;
name: string;
'alt-names': string[];
uri: string;
replaces: string[];
'replaced-by': string[];
tokens: string[];
}