1
|
export interface Project {
|
2
|
id: string;
|
3
|
acronym: string;
|
4
|
title: string;
|
5
|
funderShortname: string;
|
6
|
funderName: string;
|
7
|
funding?: string;
|
8
|
code: string;
|
9
|
budget?: string;
|
10
|
contribution?: string;
|
11
|
currency?: string;
|
12
|
provenanceAction?: string;
|
13
|
inline?: boolean
|
14
|
}
|
15
|
|
16
|
export interface Author {
|
17
|
fullName: string;
|
18
|
orcid: string;
|
19
|
}
|
20
|
|
21
|
export interface ResultTitle {
|
22
|
name: string;
|
23
|
accessMode: string;
|
24
|
sc39: string;
|
25
|
}
|
26
|
|
27
|
export interface Organization {
|
28
|
id: string;
|
29
|
name: string;
|
30
|
shortname?: string;
|
31
|
websiteUrl?: string;
|
32
|
country?: string;
|
33
|
trust?: number;
|
34
|
}
|
35
|
|
36
|
export class SearchResult {
|
37
|
title: ResultTitle;
|
38
|
id: string;
|
39
|
DOI: string;
|
40
|
|
41
|
//publications & datasets & orp & software & organizations:
|
42
|
projects: Project[];
|
43
|
|
44
|
//datasets & orp & publications & software
|
45
|
description: string;
|
46
|
year: string;
|
47
|
embargoEndDate: Date | string;
|
48
|
authors: Author[];
|
49
|
countriesForResults: string[];
|
50
|
languages: string[];
|
51
|
|
52
|
//datasets & orp & software:
|
53
|
publisher: string;
|
54
|
|
55
|
//software
|
56
|
programmingLanguages: string[];
|
57
|
|
58
|
//dataproviders & projects:
|
59
|
organizations: Organization[];
|
60
|
|
61
|
//projects:
|
62
|
acronym: string;
|
63
|
code: string;
|
64
|
funderShortname: string;
|
65
|
budget?: string;
|
66
|
contribution?: string;
|
67
|
currency?: string;
|
68
|
startYear: number;
|
69
|
endYear: number;
|
70
|
openAccessMandatePublications: boolean;
|
71
|
openAccessMandateDatasets: boolean;
|
72
|
|
73
|
//organizations:
|
74
|
country: string;
|
75
|
|
76
|
//dataproviders:
|
77
|
englishname: string;
|
78
|
type: string;
|
79
|
websiteURL: string;
|
80
|
OAIPMHURL: string;
|
81
|
compatibility: string;
|
82
|
compatibilityUNKNOWN: boolean;
|
83
|
countries: string[];
|
84
|
subjects: string[];
|
85
|
|
86
|
entityType: string;
|
87
|
types: string[];
|
88
|
|
89
|
constructor() {
|
90
|
}
|
91
|
|
92
|
}
|