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
|
//http://beta.services.openaire.eu:8480/search/
|
28
|
// Services - APIs
|
29
|
|
30
|
private static metricsAPIURL = "http://vatopedi.di.uoa.gr:8080/stats/";
|
31
|
private static framesAPIURL = "http://vatopedi.di.uoa.gr/stats2/";
|
32
|
|
33
|
private static loginAPIURL = "http://mpagasas.di.uoa.gr:8080/uoa-user-management-1.0.0-SNAPSHOT/api/users/authenticate?username=";
|
34
|
|
35
|
// public claimsAPIURL = "http://rudie.di.uoa.gr:8080/dnet-openaire-connector-service-1.0.0-SNAPSHOT/rest/claimsService/"
|
36
|
private static claimsAPIURL = "http://scoobydoo.di.uoa.gr:8080/dnet-openaire-connector-service-1.0.0-SNAPSHOT/rest/claimsService/";
|
37
|
|
38
|
// private static searchAPIURL = "http://rudie.di.uoa.gr:8080/dnet-functionality-services-2.0.0-SNAPSHOT/rest/v2/api/";
|
39
|
// private searchAPIURL = "http://rudie.di.uoa.gr:8080/dnet-functionality-services-2.0.0-SNAPSHOT/rest/v2.0/api/";
|
40
|
private static searchAPIURL = "http://beta.services.openaire.eu:8480/search/rest/v2/api/";
|
41
|
//"http://scoobydoo.di.uoa.gr:8080/dnet-functionality-services-2.0.0-SNAPSHOT/rest/v2/api/";
|
42
|
|
43
|
// private static searchAPIURLLAst = "http://rudie.di.uoa.gr:8080/dnet-functionality-services-2.0.0-SNAPSHOT/rest/v2/api/";
|
44
|
private static searchAPIURLLAst = "http://beta.services.openaire.eu:8480/search/rest/v2/api/";
|
45
|
//private static searchAPIURLLAst = "http://scoobydoo.di.uoa.gr:8080/dnet-functionality-services-2.0.0-SNAPSHOT/rest/v2/api/";
|
46
|
|
47
|
// private static searchResourcesAPIURL = "http://rudie.di.uoa.gr:8080/dnet-functionality-services-2.0.0-SNAPSHOT/rest/v2/api/resources";
|
48
|
private static searchResourcesAPIURL = "http://beta.services.openaire.eu:8480/search/rest/v2/api/resources";
|
49
|
|
50
|
//private static searchServiveURL = "http://astero.di.uoa.gr:8080/dnet-functionality-services-2.0.0-SNAPSHOT/";
|
51
|
private static searchServiveURL = "http://beta.services.openaire.eu:8480/search/";
|
52
|
// private static searchServiveURL = "http://services.openaire.eu:8380/search/";
|
53
|
//private static searchServiveURL = "http://rudie.di.uoa.gr:8080/dnet-functionality-services-2.0.0-SNAPSHOT/";
|
54
|
|
55
|
private static csvAPIURL = "http://beta.services.openaire.eu:8480/search/rest/v2/api/";//publications?format=csv
|
56
|
|
57
|
private static searchCrossrefAPIURL = "http://api.crossref.org/works";
|
58
|
private static searchDataciteAPIURL = "http://search.datacite.org/api";
|
59
|
private static searchOrcidURL = "https://pub.orcid.org/";
|
60
|
|
61
|
// Identifiers
|
62
|
private static pmidURL = "http://www.ncbi.nlm.nih.gov/pubmed/";
|
63
|
private static doiURL = "http://dx.doi.org/";
|
64
|
private static cordisURL = "http://cordis.europa.eu/projects/";
|
65
|
private static pmcURL = "http://europepmc.org/articles/";
|
66
|
|
67
|
// Zenodo's url
|
68
|
private static zenodo = "https://zenodo.org/";
|
69
|
// Open access link
|
70
|
private static openAccess = "https://www.openaire.eu/support/faq#article-id-234";
|
71
|
// Open access repository link
|
72
|
private static openAccessRepo = "https://www.openaire.eu/support/faq#article-id-310";
|
73
|
// FP7 link
|
74
|
private static fp7Guidlines = "https://www.openaire.eu/open-access-in-fp7-seventh-research-framework-programme";
|
75
|
// H2020 link
|
76
|
private static h2020Guidlines = "https://www.openaire.eu/oa-publications/h2020/open-access-in-horizon-2020";
|
77
|
// ERC Guidlines
|
78
|
private static ercGuidlines = "http://erc.europa.eu/sites/default/files/document/file/ERC_Open_Access_Guidelines-revised_2014.pdf";
|
79
|
// helpdesk link
|
80
|
private static helpdesk = "https://www.openaire.eu/support/helpdesk";
|
81
|
|
82
|
|
83
|
//landing Pages' getters
|
84
|
public static getsearchLinkToPublication():string{
|
85
|
return this.baseSearchLink + this.searchLinkToPublication;
|
86
|
}
|
87
|
public static getsearchLinkToDataset():string{
|
88
|
return this.baseSearchLink + this.searchLinkToDataset;
|
89
|
}
|
90
|
public static getsearchLinkToProject():string{
|
91
|
return this.baseSearchLink + this.searchLinkToProject;
|
92
|
}
|
93
|
public static getsearchLinkToPerson():string{
|
94
|
return this.baseSearchLink + this.searchLinkToPerson;
|
95
|
}
|
96
|
public static getsearchLinkToOrganization():string{
|
97
|
return this.searchLinkToOrganization;
|
98
|
}
|
99
|
public static getsearchLinkToDataProvider():string{
|
100
|
return this.searchLinkToDataProvider;
|
101
|
}
|
102
|
//searchPages
|
103
|
public static getLinkToSearchPublications():string{
|
104
|
return this.baseSearchLink + this.searchLinkToPublications;
|
105
|
}
|
106
|
public static getLinkToSearchProjects():string{
|
107
|
return this.baseSearchLink + this.searchLinkToProjects;
|
108
|
}
|
109
|
public static getLinkToSearchDataProviders():string{
|
110
|
return this.baseSearchLink + this.searchLinkToDataProviders;
|
111
|
}
|
112
|
public static getLinkToSearchDatasets():string{
|
113
|
return this.baseSearchLink + this.searchLinkToDatasets;
|
114
|
}
|
115
|
public static getLinkToSearchOrganizations():string{
|
116
|
return this.baseSearchLink + this.searchLinkToOrganizations;
|
117
|
}
|
118
|
public static getLinkToSearchPeople():string{
|
119
|
return this.baseSearchLink + this.searchLinkToPeople;
|
120
|
}
|
121
|
|
122
|
//Advanced searchPages
|
123
|
public static getLinkToAdvancedSearchPublications():string{
|
124
|
return this.baseSearchLink + this.searchLinkToAdvancedPublications;
|
125
|
}
|
126
|
public static getLinkToAdvancedSearchProjects():string{
|
127
|
return this.baseSearchLink + this.searchLinkToAdvancedProjects;
|
128
|
}
|
129
|
public static getLinkToAdvancedSearchDataProviders():string{
|
130
|
return this.baseSearchLink + this.searchLinkToAdvancedDataProviders;
|
131
|
}
|
132
|
public static getLinkToAdvancedSearchDatasets():string{
|
133
|
return this.baseSearchLink + this.searchLinkToAdvancedDatasets;
|
134
|
}
|
135
|
public static getLinkToAdvancedSearchOrganizations():string{
|
136
|
return this.baseSearchLink + this.searchLinkToAdvancedOrganizations;
|
137
|
}
|
138
|
public static getLinkToAdvancedSearchPeople():string{
|
139
|
return this.baseSearchLink + this.searchLinkToAdvancedPeople;
|
140
|
}
|
141
|
|
142
|
// Services - APIs' getters
|
143
|
// public static getSearchAPIURL():string{
|
144
|
// return this.searchAPIURL;
|
145
|
// }
|
146
|
// Services - APIs' getters
|
147
|
public static getCsvAPIURL(): string {
|
148
|
return this.csvAPIURL;
|
149
|
}
|
150
|
|
151
|
public static getFramesAPIURL(): string {
|
152
|
return this.framesAPIURL;
|
153
|
}
|
154
|
|
155
|
public static getMetricsAPIURL(): string {
|
156
|
return this.metricsAPIURL;
|
157
|
}
|
158
|
|
159
|
public static getLoginAPIURL(): string {
|
160
|
return this.loginAPIURL;
|
161
|
}
|
162
|
|
163
|
public static getSearchAPIURLLast():string{
|
164
|
return this.searchAPIURLLAst;
|
165
|
}
|
166
|
//query using full query:
|
167
|
//
|
168
|
public static getSearchResourcesAPIURL():string{
|
169
|
return this.searchResourcesAPIURL;
|
170
|
}
|
171
|
public static getSearchAPIURLForEntity(entityType:string):string{
|
172
|
var suffix = "";
|
173
|
if(entityType == "project"){
|
174
|
suffix="projects/";
|
175
|
}else if(entityType == "publication"){
|
176
|
suffix="publications/";
|
177
|
}else if(entityType == "dataset"){
|
178
|
suffix="datasets/";
|
179
|
}else if(entityType == "organization"){
|
180
|
suffix="organizations/";
|
181
|
}else if(entityType == "dataprovider"){
|
182
|
suffix="datasources/";
|
183
|
}else if(entityType == "person"){
|
184
|
suffix="people/";
|
185
|
}
|
186
|
return this.searchAPIURLLAst + suffix;
|
187
|
}
|
188
|
public static getSearchServiceURL():string{
|
189
|
return this.searchServiveURL;
|
190
|
}
|
191
|
public static getClaimsAPIURL():string{
|
192
|
return this.claimsAPIURL;
|
193
|
}
|
194
|
public static getSearchCrossrefAPIURL():string{
|
195
|
return this.searchCrossrefAPIURL;
|
196
|
}
|
197
|
public static getSearchDataciteAPIURL():string{
|
198
|
return this.searchDataciteAPIURL;
|
199
|
}
|
200
|
public static getSearchOrcidURL():string{
|
201
|
return this.searchOrcidURL;
|
202
|
}
|
203
|
|
204
|
// Identifiers' getters
|
205
|
public static getPmidURL():string{
|
206
|
return this.pmidURL;
|
207
|
}
|
208
|
public static getDoiURL():string{
|
209
|
return this.doiURL;
|
210
|
}
|
211
|
public static getCordisURL():string{
|
212
|
return this.cordisURL;
|
213
|
}
|
214
|
public static getPmcURL():string{
|
215
|
return this.pmcURL;
|
216
|
}
|
217
|
|
218
|
// Zenodo's getter
|
219
|
public static getZenodoURL():string{
|
220
|
return this.zenodo;
|
221
|
}
|
222
|
// Open access getter
|
223
|
public static getOpenAccess():string{
|
224
|
return this.openAccess;
|
225
|
}
|
226
|
// Open access repository getter
|
227
|
public static getOpenAccessRepo():string{
|
228
|
return this.openAccessRepo;
|
229
|
}
|
230
|
// FP7 link getter
|
231
|
public static getFP7Guidlines():string{
|
232
|
return this.fp7Guidlines;
|
233
|
}
|
234
|
// H2020 link getter
|
235
|
public static getH2020Guidlines():string{
|
236
|
return this.h2020Guidlines;
|
237
|
}
|
238
|
// ERC Guidlines getter
|
239
|
public static getERCGuidlines():string{
|
240
|
return this.ercGuidlines;
|
241
|
}
|
242
|
// helpdesk link getter
|
243
|
public static getHelpdesk():string{
|
244
|
return this.helpdesk;
|
245
|
}
|
246
|
}
|
247
|
export class ErrorCodes {
|
248
|
public LOADING = 0;
|
249
|
public DONE = 1;
|
250
|
public NONE = 2;
|
251
|
public ERROR = 3;
|
252
|
public NOT_AVAILABLE = 4;
|
253
|
}
|