Revision 52857
Added by Argiro Kokogiannaki over 5 years ago
SearchUtils.java | ||
---|---|---|
88 | 88 |
return xml; |
89 | 89 |
} |
90 | 90 |
|
91 |
|
|
91 |
public static String fetchOtherXmlFromIndex(String id, boolean production) throws Exception{ |
|
92 |
String xml=getRequest(getOtherApiUrl(id,production)); |
|
93 |
return xml; |
|
94 |
} |
|
92 | 95 |
/** |
93 | 96 |
*Look up in API, if there is no result, |
94 | 97 |
* consider that id is a dedup id and search for the objIdentifier id. |
... | ... | |
135 | 138 |
return ((production)?apiUrlForResultsProduction:apiUrlForResults)+"/publications?openairePublicationID="+id; |
136 | 139 |
} |
137 | 140 |
public static String getSoftwareApiUrl(String id, boolean production) { |
138 |
//TODO change to beta when it's ready |
|
139 | 141 |
return ((production)?apiUrlForResultsProduction:apiUrlForResults)+"/software?openaireSoftwareID="+id; |
140 |
// return "http://rudie.di.uoa.gr:8080/dnet-functionality-services-2.0.0-SNAPSHOT/api"+"/software?openaireSoftwareID="+id; |
|
141 | 142 |
} |
143 |
public static String getOtherApiUrl(String id, boolean production) { |
|
144 |
return ((production)?apiUrlForResultsProduction:apiUrlForResults)+"/other?openaireOtherID="+id; |
|
145 |
} |
|
142 | 146 |
// public static String getDedupPublicationApiUrl(String id) { |
143 | 147 |
// |
144 | 148 |
// return apiUrlForDedupResults+"/publications?openairePublicationID="+id; |
Also available in: Unified diff
Enable claiming for ORPs
Set direct index url in properties
Migration:
save orphan Ids, claims
uncomment fetch dedup