Revision 57125
Added by Argiro Kokogiannaki over 4 years ago
ClaimHandler.java | ||
---|---|---|
181 | 181 |
else if(type.equals(ClaimUtils.CONTEXT)){ |
182 | 182 |
return ContextUtils.fetchContextById(id, useProductionIndex); |
183 | 183 |
}else if (type.equals(ClaimUtils.PROJECT)){ |
184 |
Project project = projectHandler.fetchProjectByID(id, false);
|
|
184 |
Project project = projectHandler.fetchProjectByID(id); |
|
185 | 185 |
if(project == null){ |
186 |
project = projectHandler.fetchProjectByID(id, true);
|
|
186 |
project = projectHandler.fetchProjectByID(id); |
|
187 | 187 |
} |
188 | 188 |
if(project == null){ |
189 | 189 |
logger.error("Project with id:"+id + " couldn't be fetched."); |
... | ... | |
226 | 226 |
IndexResultHandler indexResultHandler = new IndexResultHandler(); |
227 | 227 |
Result result = null; |
228 | 228 |
if(type.equals(ClaimUtils.PUBLICATION)){ |
229 |
result = indexResultHandler.fetchPublicationById(id,useProductionIndex);
|
|
229 |
result = indexResultHandler.fetchPublicationById(id); |
|
230 | 230 |
|
231 | 231 |
}else if(type.equals(ClaimUtils.DATASET)){ |
232 |
result = indexResultHandler.fetchDatasetById(id,useProductionIndex);
|
|
232 |
result = indexResultHandler.fetchDatasetById(id); |
|
233 | 233 |
}else if(type.equals(ClaimUtils.SOFTWARE)){ |
234 |
result = indexResultHandler.fetchSoftwareById(id,useProductionIndex);
|
|
234 |
result = indexResultHandler.fetchSoftwareById(id); |
|
235 | 235 |
}else if(type.equals(ClaimUtils.OTHER)){ |
236 |
result = indexResultHandler.fetchOtherById(id,useProductionIndex);
|
|
236 |
result = indexResultHandler.fetchOtherById(id); |
|
237 | 237 |
} |
238 | 238 |
if(result == null){ |
239 | 239 |
logger.error("Record with id:"+id + " and type " + type + " couldn't be fetched from openaire."); |
Also available in: Unified diff
Search utils, Project Handler, IndexResultHandler:
get search service url from properties
remove isProduction parameter
remove dedup result methods used in migration