Changeset 8322
- Timestamp:
- 21/05/12 12:35:46 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
mauRepo/revitalizationProject/branches/MEDIN/dpws/src/main/java/ndg/services/revitalization/executor/DiscoveryServiceExecutor.java
r8173 r8322 5 5 import java.util.ArrayList; 6 6 import java.util.List; 7 8 import javax.persistence.NoResultException;9 7 10 8 import ndg.common.MessageFormatter; … … 299 297 } 300 298 301 private void fillCustomInfo(CustomInfo info, OriginalDocument result) { 299 private CustomInfo fillCustomInfo(OriginalDocument result) { 300 CustomInfo info = of.createCustomInfo(); 302 301 info.setAuthors(result.getAuthors() != null ? result.getAuthors() : ""); 303 302 info.setOriginalFormatName(result.getOriginalFormatName() != null ? result.getOriginalFormatName() : ""); … … 313 312 info.setResourceLocator(result.getResourceLocator() != null ? result.getResourceLocator() : false); 314 313 info.setDataCustodian(result.getDataCustodian() != null ? result.getDataCustodian() : null); 315 info.setDataDistributor(result.getDataDistributor() != null ? result.getDataDistributor() : null); 314 info.setDataDistributor(result.getDataDistributor() != null ? result.getDataDistributor() : null); 315 return info; 316 316 } 317 317 … … 322 322 type.getSpatial().addAll(result.getSpatialType()); 323 323 type.getTemporal().addAll(type.getTemporal()); 324 CustomInfo info = of.createCustomInfo(); 325 fillCustomInfo(info, result); 324 type.setAdditionalInformation(fillCustomInfo(result)); 326 325 type.setDocument(result.getOriginalDocument()); 327 326 } … … 333 332 type.getSpatial().addAll(result.getSpatialType()); 334 333 type.getTemporal().addAll(type.getTemporal()); 335 CustomInfo info = of.createCustomInfo(); 336 fillCustomInfo(info, result); 334 type.setAdditionalInformation(fillCustomInfo(result)); 337 335 } 338 336 … … 340 338 type.setDocumentId(result.getOriginalDocumentFilename()); 341 339 type.setTitle(result.getDatasetName()); 342 CustomInfo info = of.createCustomInfo(); 343 fillCustomInfo(info, result); 340 type.setAdditionalInformation(fillCustomInfo(result)); 344 341 } 345 342
Note: See TracChangeset
for help on using the changeset viewer.