Revision 50333
Added by Panagiotis Kanakakis about 6 years ago
modules/uoa-repository-manager-service/trunk/src/main/java/eu/dnetlib/repo/manager/service/utils/Converter.java | ||
---|---|---|
313 | 313 |
|
314 | 314 |
JSONArray rs = new JSONArray(repositoryObject.get("aggregationHistory").toString()); |
315 | 315 |
|
316 |
LOGGER.debug(rs.length()); |
|
317 |
|
|
316 | 318 |
List<AggregationDetails> aggregationDetailsList = new ArrayList<>(); |
317 | 319 |
for(int i=0;i<rs.length();i++) |
318 | 320 |
aggregationDetailsList.add(jsonToAggregationDetails(rs.getJSONObject(i))); |
... | ... | |
324 | 326 |
AggregationDetails aggregationDetails = new AggregationDetails(); |
325 | 327 |
|
326 | 328 |
aggregationDetails.setAggregationStage(aggregationObject.get("aggregationStage").toString()); |
327 |
//aggregationDetails.setCollectionMode(aggregationObject.get("collectionMode").toString()); |
|
329 |
if(aggregationObject.has("collectionMode")) |
|
330 |
aggregationDetails.setCollectionMode(aggregationObject.get("collectionMode").toString()); |
|
328 | 331 |
aggregationDetails.setDate(convertStringToDate(aggregationObject.get("date").toString())); |
329 | 332 |
aggregationDetails.setNumberOfRecords(Integer.parseInt(aggregationObject.get("numberOfRecords").toString())); |
330 | 333 |
return aggregationDetails; |
Also available in: Unified diff
Bug fix on collection mode for aggregation history