Revision 52274
Added by Argiro Kokogiannaki almost 6 years ago
SearchUtils.java | ||
---|---|---|
44 | 44 |
private static String dataciteNewAPIUrl="https://api.datacite.org/works/"; |
45 | 45 |
private static String orcidUrlPrefix="https://pub.orcid.org/v2.1/"; |
46 | 46 |
private static String orcidUrlSuffix="/works"; |
47 |
// private static String contextsAPIUrl="https://dev-openaire.d4science.org/openaire/context"; |
|
48 |
private static String contextsAPIUrl="http://beta.services.openaire.eu:8080/openaire/context"; |
|
47 | 49 |
private boolean useApi=true; |
48 | 50 |
private ClaimValidation claimValidation = null; |
49 | 51 |
|
... | ... | |
113 | 115 |
|
114 | 116 |
return getRequest(getOrcidUrl(id)); |
115 | 117 |
} |
118 |
public static String fetchContext(String suffix) throws Exception{ |
|
116 | 119 |
|
120 |
return getRequest(getContextsAPIUrl()+suffix); |
|
121 |
} |
|
122 |
|
|
117 | 123 |
public static String getProjectApiUrl(String id, boolean production) { |
118 | 124 |
|
119 | 125 |
return ((production)?apiUrlForProjectsProduction:apiUrlForProjects)+"/projects?openaireProjectID="+id; |
... | ... | |
146 | 152 |
|
147 | 153 |
return orcidUrlPrefix+id+orcidUrlSuffix; |
148 | 154 |
} |
155 |
private static String getContextsAPIUrl() { |
|
149 | 156 |
|
157 |
return contextsAPIUrl; |
|
158 |
} |
|
150 | 159 |
|
151 | 160 |
/** |
152 | 161 |
* Get result and objIdentifier form openaire Search |
Also available in: Unified diff
Change ContextUtils to get concept label from new Context API