DS-3489: Added HAL link factories for AuthorityEntryResource and SubmissionSectionResource

This commit is contained in:
Tom Desair
2017-11-20 16:48:27 +01:00
committed by Tom Desair
parent f9041df1c8
commit a0433f72ef
15 changed files with 152 additions and 62 deletions

View File

@@ -1219,7 +1219,7 @@ prevent the generation of resource policy entry values with null dspace_object a
@Override
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), collection, null);
authorities.add(c.values.length > 0 ? c.values[0].authority : null);
authorities.add(c.values.length > 0 && c.values[0] != null ? c.values[0].authority : null);
confidences.add(c.confidence);
}