1
|
export class OpenaireProperties {
|
2
|
//landing Pages
|
3
|
private static baseSearchLink="/";
|
4
|
private static searchLinkToPublication = "search/publication?articleId=";
|
5
|
private static searchLinkToProject = "search/project?projectId=";
|
6
|
private static searchLinkToPerson = "search/person?personId=";
|
7
|
private static searchLinkToDataProvider = "search/dataprovider?datasourceId=";
|
8
|
private static searchLinkToDataset = "search/dataset?datasetId=";
|
9
|
private static searchLinkToOrganization = "search/organization?organizationId=";
|
10
|
//Search pages
|
11
|
private static searchLinkToPublications = "search/find/publications";
|
12
|
private static searchLinkToDataProviders = "search/find/dataproviders";
|
13
|
private static searchLinkToProjects = "search/find/projects";
|
14
|
private static searchLinkToDatasets = "search/find/datasets";
|
15
|
private static searchLinkToOrganizations = "search/find/organizations";
|
16
|
private static searchLinkToPeople = "search/find/people";
|
17
|
public static searchLinkToCompatibleDataProviders = "search/data-providers";
|
18
|
public static searchLinkToEntityRegistriesDataProviders = "search/entity-registries";
|
19
|
//Advanced Search pages
|
20
|
public static searchLinkToAdvancedPublications = "search/advanced/publications";
|
21
|
public static searchLinkToAdvancedProjects = "search/advanced/projects";
|
22
|
public static searchLinkToAdvancedDatasets = "search/advanced/datasets";
|
23
|
public static searchLinkToAdvancedDataProviders = "search/advanced/dataproviders";
|
24
|
public static searchLinkToAdvancedOrganizations = "search/advanced/organizations";
|
25
|
public static searchLinkToAdvancedPeople = "search/advanced/people";
|
26
|
|
27
|
|
28
|
// Services - APIs
|
29
|
|
30
|
// public claimsAPIURL = "http://rudie.di.uoa.gr:8080/dnet-openaire-connector-service-1.0.0-SNAPSHOT/rest/claimsService/"
|
31
|
private static claimsAPIURL = "http://scoobydoo.di.uoa.gr:8181/dnet-openaire-connector-service-1.0.0-SNAPSHOT/rest/claimsService/";
|
32
|
|
33
|
|
34
|
// private static searchAPIURL = "http://rudie.di.uoa.gr:8080/dnet-functionality-services-2.0.0-SNAPSHOT/rest/v2/api/";
|
35
|
// private static searchAPIURL = "http://astero.di.uoa.gr:8080/dnet-functionality-services-2.0.0-SNAPSHOT/rest/v2/api/";
|
36
|
// private searchAPIURL = "http://rudie.di.uoa.gr:8080/dnet-functionality-services-2.0.0-SNAPSHOT/rest/v2.0/api/";
|
37
|
// private static searchAPIURL = "http://scoobydoo.di.uoa.gr:8181/dnet-functionality-services-2.0.0-SNAPSHOT/rest/v2/api/";
|
38
|
|
39
|
private static searchAPIURLLAst = "http://scoobydoo.di.uoa.gr:8181/dnet-functionality-services-2.0.0-SNAPSHOT-new/rest/v2/api/";
|
40
|
|
41
|
private static searchResourcesAPIURL = "http://scoobydoo.di.uoa.gr:8181/dnet-functionality-services-2.0.0-SNAPSHOT-new/rest/v2/api/resources";
|
42
|
|
43
|
//private static searchServiveURL = "http://astero.di.uoa.gr:8080/dnet-functionality-services-2.0.0-SNAPSHOT/";
|
44
|
private static searchServiveURL = "http://scoobydoo.di.uoa.gr:8181/dnet-functionality-services-2.0.0-SNAPSHOT/";
|
45
|
// private static searchServiveURL = "http://services.openaire.eu:8380/search/";
|
46
|
//private static searchServiveURL = "http://rudie.di.uoa.gr:8080/dnet-functionality-services-2.0.0-SNAPSHOT/";
|
47
|
|
48
|
private static searchCrossrefAPIURL = "http://api.crossref.org/works";
|
49
|
private static searchDataciteAPIURL = "http://search.datacite.org/api";
|
50
|
private static searchOrcidURL = "https://pub.orcid.org/";
|
51
|
|
52
|
// Identifiers
|
53
|
private static pmidURL = "http://www.ncbi.nlm.nih.gov/pubmed/";
|
54
|
private static doiURL = "http://dx.doi.org/";
|
55
|
private static cordisURL = "http://cordis.europa.eu/projects/";
|
56
|
private static pmcURL = "http://europepmc.org/articles/";
|
57
|
|
58
|
// Zenodo's url
|
59
|
private static zenodo = "https://zenodo.org/";
|
60
|
// Open access link
|
61
|
private static openAccess = "https://www.openaire.eu/support/faq#article-id-234";
|
62
|
// Open access repository link
|
63
|
private static openAccessRepo = "https://www.openaire.eu/support/faq#article-id-310";
|
64
|
// FP7 link
|
65
|
private static fp7Guidlines = "https://www.openaire.eu/open-access-in-fp7-seventh-research-framework-programme";
|
66
|
// H2020 link
|
67
|
private static h2020Guidlines = "https://www.openaire.eu/oa-publications/h2020/open-access-in-horizon-2020";
|
68
|
// ERC Guidlines
|
69
|
private static ercGuidlines = "http://erc.europa.eu/sites/default/files/document/file/ERC_Open_Access_Guidelines-revised_2014.pdf";
|
70
|
// helpdesk link
|
71
|
private static helpdesk = "https://www.openaire.eu/support/helpdesk";
|
72
|
|
73
|
|
74
|
//landing Pages' getters
|
75
|
public static getsearchLinkToPublication():string{
|
76
|
return this.baseSearchLink + this.searchLinkToPublication;
|
77
|
}
|
78
|
public static getsearchLinkToDataset():string{
|
79
|
return this.baseSearchLink + this.searchLinkToDataset;
|
80
|
}
|
81
|
public static getsearchLinkToProject():string{
|
82
|
return this.baseSearchLink + this.searchLinkToProject;
|
83
|
}
|
84
|
public static getsearchLinkToPerson():string{
|
85
|
return this.baseSearchLink + this.searchLinkToPerson;
|
86
|
}
|
87
|
public static getsearchLinkToOrganization():string{
|
88
|
return this.searchLinkToOrganization;
|
89
|
}
|
90
|
public static getsearchLinkToDataProvider():string{
|
91
|
return this.searchLinkToDataProvider;
|
92
|
}
|
93
|
//searchPages
|
94
|
public static getLinkToSearchPublications():string{
|
95
|
return this.baseSearchLink + this.searchLinkToPublications;
|
96
|
}
|
97
|
public static getLinkToSearchProjects():string{
|
98
|
return this.baseSearchLink + this.searchLinkToProjects;
|
99
|
}
|
100
|
public static getLinkToSearchDataProviders():string{
|
101
|
return this.baseSearchLink + this.searchLinkToDataProviders;
|
102
|
}
|
103
|
public static getLinkToSearchDatasets():string{
|
104
|
return this.baseSearchLink + this.searchLinkToDatasets;
|
105
|
}
|
106
|
public static getLinkToSearchOrganizations():string{
|
107
|
return this.baseSearchLink + this.searchLinkToOrganizations;
|
108
|
}
|
109
|
public static getLinkToSearchPeople():string{
|
110
|
return this.baseSearchLink + this.searchLinkToPeople;
|
111
|
}
|
112
|
|
113
|
// Services - APIs' getters
|
114
|
// public static getSearchAPIURL():string{
|
115
|
// return this.searchAPIURL;
|
116
|
// }
|
117
|
// Services - APIs' getters
|
118
|
public static getSearchAPIURLLast():string{
|
119
|
return this.searchAPIURLLAst;
|
120
|
}
|
121
|
//query using full query:
|
122
|
//
|
123
|
public static getSearchResourcesAPIURL():string{
|
124
|
return this.searchResourcesAPIURL;
|
125
|
}
|
126
|
public static getSearchAPIURLForEntity(entityType:string):string{
|
127
|
var suffix = "";
|
128
|
if(entityType == "project"){
|
129
|
suffix="projects/";
|
130
|
}else if(entityType == "publication"){
|
131
|
suffix="publications/";
|
132
|
}else if(entityType == "dataset"){
|
133
|
suffix="datasets/";
|
134
|
}else if(entityType == "organization"){
|
135
|
suffix="organizations/";
|
136
|
}else if(entityType == "dataprovider"){
|
137
|
suffix="datasources/";
|
138
|
}else if(entityType == "person"){
|
139
|
suffix="people/";
|
140
|
}
|
141
|
return this.searchAPIURLLAst + suffix;
|
142
|
}
|
143
|
public static getSearchServiceURL():string{
|
144
|
return this.searchServiveURL;
|
145
|
}
|
146
|
public static getClaimsAPIURL():string{
|
147
|
return this.claimsAPIURL;
|
148
|
}
|
149
|
public static getSearchCrossrefAPIURL():string{
|
150
|
return this.searchCrossrefAPIURL;
|
151
|
}
|
152
|
public static getSearchDataciteAPIURL():string{
|
153
|
return this.searchDataciteAPIURL;
|
154
|
}
|
155
|
public static getSearchOrcidURL():string{
|
156
|
return this.searchOrcidURL;
|
157
|
}
|
158
|
|
159
|
// Identifiers' getters
|
160
|
public static getPmidURL():string{
|
161
|
return this.pmidURL;
|
162
|
}
|
163
|
public static getDoiURL():string{
|
164
|
return this.doiURL;
|
165
|
}
|
166
|
public static getCordisURL():string{
|
167
|
return this.cordisURL;
|
168
|
}
|
169
|
public static getPmcURL():string{
|
170
|
return this.pmcURL;
|
171
|
}
|
172
|
|
173
|
// Zenodo's getter
|
174
|
public static getZenodoURL():string{
|
175
|
return this.zenodo;
|
176
|
}
|
177
|
// Open access getter
|
178
|
public static getOpenAccess():string{
|
179
|
return this.openAccess;
|
180
|
}
|
181
|
// Open access repository getter
|
182
|
public static getOpenAccessRepo():string{
|
183
|
return this.openAccessRepo;
|
184
|
}
|
185
|
// FP7 link getter
|
186
|
public static getFP7Guidlines():string{
|
187
|
return this.fp7Guidlines;
|
188
|
}
|
189
|
// H2020 link getter
|
190
|
public static getH2020Guidlines():string{
|
191
|
return this.h2020Guidlines;
|
192
|
}
|
193
|
// ERC Guidlines getter
|
194
|
public static getERCGuidlines():string{
|
195
|
return this.ercGuidlines;
|
196
|
}
|
197
|
// helpdesk link getter
|
198
|
public static getHelpdesk():string{
|
199
|
return this.helpdesk;
|
200
|
}
|
201
|
}
|
202
|
export class ErrorCodes {
|
203
|
public LOADING = 0;
|
204
|
public DONE = 1;
|
205
|
public NONE = 2;
|
206
|
public ERROR = 3;
|
207
|
public NOT_AVAILABLE = 4;
|
208
|
}
|