mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-11 20:13:17 +00:00
DS-3699 enhance wrapper to pass integration test;
DS-3484 catch generic Exception
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user