DS-3699 enhance wrapper to pass integration test;

DS-3484 catch generic Exception
This commit is contained in:
Luigi Andrea Pascarelli
2017-11-03 17:00:16 +01:00
parent cdd9049b6b
commit 216d7481bb
4 changed files with 64 additions and 18 deletions

View File

@@ -482,7 +482,7 @@ public abstract class DSpaceObjectServiceImpl<T extends DSpaceObject> implements
}
protected void getAuthoritiesAndConfidences(String fieldKey, Collection collection, List<String> values, List<String> authorities, List<Integer> confidences, int i) {
Choices c = choiceAuthorityService.getBestMatch(fieldKey, values.get(i), null, null);
Choices c = choiceAuthorityService.getBestMatch(fieldKey, values.get(i), collection, null);
authorities.add(c.values.length > 0 ? c.values[0].authority : null);
confidences.add(c.confidence);
}