1 |
43785
|
argiro.kok
|
export class OpenaireProperties {
|
2 |
|
|
//landing Pages
|
3 |
43953
|
argiro.kok
|
private static baseSearchLink="/";
|
4 |
43926
|
konstantin
|
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 |
43955
|
argiro.kok
|
//Search pages
|
11 |
44309
|
argiro.kok
|
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 |
44778
|
argiro.kok
|
public static searchLinkToCompatibleDataProviders = "search/data-providers";
|
18 |
|
|
public static searchLinkToEntityRegistriesDataProviders = "search/entity-registries";
|
19 |
44309
|
argiro.kok
|
//Advanced Search pages
|
20 |
44726
|
argiro.kok
|
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 |
43785
|
argiro.kok
|
|
27 |
45482
|
argiro.kok
|
//http://beta.services.openaire.eu:8480/search/
|
28 |
43785
|
argiro.kok
|
// Services - APIs
|
29 |
|
|
|
30 |
44882
|
konstantin
|
private static metricsAPIURL = "http://vatopedi.di.uoa.gr:8080/stats/";
|
31 |
45429
|
konstantin
|
private static framesAPIURL = "http://vatopedi.di.uoa.gr/stats2/";
|
32 |
44882
|
konstantin
|
|
33 |
|
|
private static loginAPIURL = "http://mpagasas.di.uoa.gr:8080/uoa-user-management-1.0.0-SNAPSHOT/api/users/authenticate?username=";
|
34 |
|
|
|
35 |
43785
|
argiro.kok
|
// public claimsAPIURL = "http://rudie.di.uoa.gr:8080/dnet-openaire-connector-service-1.0.0-SNAPSHOT/rest/claimsService/"
|
36 |
45392
|
argiro.kok
|
private static claimsAPIURL = "http://scoobydoo.di.uoa.gr:8080/dnet-openaire-connector-service-1.0.0-SNAPSHOT/rest/claimsService/";
|
37 |
43785
|
argiro.kok
|
|
38 |
45392
|
argiro.kok
|
// private static searchAPIURL = "http://rudie.di.uoa.gr:8080/dnet-functionality-services-2.0.0-SNAPSHOT/rest/v2/api/";
|
39 |
44048
|
argiro.kok
|
// private searchAPIURL = "http://rudie.di.uoa.gr:8080/dnet-functionality-services-2.0.0-SNAPSHOT/rest/v2.0/api/";
|
40 |
45482
|
argiro.kok
|
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 |
43785
|
argiro.kok
|
|
43 |
44976
|
argiro.kok
|
// private static searchAPIURLLAst = "http://rudie.di.uoa.gr:8080/dnet-functionality-services-2.0.0-SNAPSHOT/rest/v2/api/";
|
44 |
45482
|
argiro.kok
|
private static searchAPIURLLAst = "http://beta.services.openaire.eu:8480/search/rest/v2/api/";
|
45 |
45390
|
konstantin
|
//private static searchAPIURLLAst = "http://scoobydoo.di.uoa.gr:8080/dnet-functionality-services-2.0.0-SNAPSHOT/rest/v2/api/";
|
46 |
44726
|
argiro.kok
|
|
47 |
44976
|
argiro.kok
|
// private static searchResourcesAPIURL = "http://rudie.di.uoa.gr:8080/dnet-functionality-services-2.0.0-SNAPSHOT/rest/v2/api/resources";
|
48 |
45482
|
argiro.kok
|
private static searchResourcesAPIURL = "http://beta.services.openaire.eu:8480/search/rest/v2/api/resources";
|
49 |
45408
|
konstantin
|
|
50 |
44035
|
konstantin
|
//private static searchServiveURL = "http://astero.di.uoa.gr:8080/dnet-functionality-services-2.0.0-SNAPSHOT/";
|
51 |
45482
|
argiro.kok
|
private static searchServiveURL = "http://beta.services.openaire.eu:8480/search/";
|
52 |
43785
|
argiro.kok
|
// 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 |
45482
|
argiro.kok
|
private static csvAPIURL = "http://beta.services.openaire.eu:8480/search/rest/v2/api/";//publications?format=csv
|
56 |
45408
|
konstantin
|
|
57 |
43785
|
argiro.kok
|
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 |
43926
|
konstantin
|
// 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 |
43785
|
argiro.kok
|
|
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 |
43953
|
argiro.kok
|
//searchPages
|
103 |
|
|
public static getLinkToSearchPublications():string{
|
104 |
|
|
return this.baseSearchLink + this.searchLinkToPublications;
|
105 |
|
|
}
|
106 |
43957
|
argiro.kok
|
public static getLinkToSearchProjects():string{
|
107 |
|
|
return this.baseSearchLink + this.searchLinkToProjects;
|
108 |
|
|
}
|
109 |
|
|
public static getLinkToSearchDataProviders():string{
|
110 |
|
|
return this.baseSearchLink + this.searchLinkToDataProviders;
|
111 |
|
|
}
|
112 |
43990
|
konstantin
|
public static getLinkToSearchDatasets():string{
|
113 |
|
|
return this.baseSearchLink + this.searchLinkToDatasets;
|
114 |
|
|
}
|
115 |
|
|
public static getLinkToSearchOrganizations():string{
|
116 |
|
|
return this.baseSearchLink + this.searchLinkToOrganizations;
|
117 |
|
|
}
|
118 |
44035
|
konstantin
|
public static getLinkToSearchPeople():string{
|
119 |
|
|
return this.baseSearchLink + this.searchLinkToPeople;
|
120 |
|
|
}
|
121 |
44766
|
argiro.kok
|
|
122 |
44893
|
konstantin
|
//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 |
43785
|
argiro.kok
|
// Services - APIs' getters
|
143 |
44766
|
argiro.kok
|
// public static getSearchAPIURL():string{
|
144 |
|
|
// return this.searchAPIURL;
|
145 |
|
|
// }
|
146 |
44726
|
argiro.kok
|
// Services - APIs' getters
|
147 |
45429
|
konstantin
|
public static getCsvAPIURL(): string {
|
148 |
|
|
return this.csvAPIURL;
|
149 |
|
|
}
|
150 |
|
|
|
151 |
|
|
public static getFramesAPIURL(): string {
|
152 |
|
|
return this.framesAPIURL;
|
153 |
|
|
}
|
154 |
|
|
|
155 |
44882
|
konstantin
|
public static getMetricsAPIURL(): string {
|
156 |
|
|
return this.metricsAPIURL;
|
157 |
|
|
}
|
158 |
|
|
|
159 |
|
|
public static getLoginAPIURL(): string {
|
160 |
|
|
return this.loginAPIURL;
|
161 |
|
|
}
|
162 |
|
|
|
163 |
44726
|
argiro.kok
|
public static getSearchAPIURLLast():string{
|
164 |
|
|
return this.searchAPIURLLAst;
|
165 |
|
|
}
|
166 |
44433
|
argiro.kok
|
//query using full query:
|
167 |
|
|
//
|
168 |
|
|
public static getSearchResourcesAPIURL():string{
|
169 |
|
|
return this.searchResourcesAPIURL;
|
170 |
|
|
}
|
171 |
44343
|
argiro.kok
|
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 |
44374
|
argiro.kok
|
suffix="datasources/";
|
183 |
44343
|
argiro.kok
|
}else if(entityType == "person"){
|
184 |
44374
|
argiro.kok
|
suffix="people/";
|
185 |
44343
|
argiro.kok
|
}
|
186 |
44766
|
argiro.kok
|
return this.searchAPIURLLAst + suffix;
|
187 |
44343
|
argiro.kok
|
}
|
188 |
43785
|
argiro.kok
|
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 |
43926
|
konstantin
|
// 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 |
43785
|
argiro.kok
|
}
|
247 |
43953
|
argiro.kok
|
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 |
|
|
}
|