Revision 58494
Added by Argiro Kokogiannaki almost 4 years ago
SearchUtils.java | ||
---|---|---|
94 | 94 |
} |
95 | 95 |
public String fetchResultXMLFromOrcid(String id) throws Exception{ |
96 | 96 |
|
97 |
return getRequest(getOrcidUrl(id)); |
|
97 |
return getRequest(getOrcidUrl(id.substring(0, 19), id.substring( 20)));
|
|
98 | 98 |
} |
99 | 99 |
public String fetchContext(String suffix) throws Exception{ |
100 | 100 |
|
... | ... | |
127 | 127 |
return dataciteUrl+id; |
128 | 128 |
} |
129 | 129 |
|
130 |
private static String getOrcidUrl(String id) { |
|
130 |
private static String getOrcidUrl(String id, String putcode) {
|
|
131 | 131 |
|
132 |
return orcidUrlPrefix+id+orcidUrlSuffix; |
|
132 |
return orcidUrlPrefix+id+orcidUrlSuffix+putcode;
|
|
133 | 133 |
} |
134 | 134 |
private static String getContextsAPIUrl() { |
135 | 135 |
|
Also available in: Unified diff
Fix1: set type after parsing response from external sources - this fix puts the record in the proper file path
Fix2: Update orcid parser, use single orcid work response
update ExternalParserTest