Skip to content

Commit

Permalink
Merge pull request #4615 from inception-project/feature/4554-Allow-di…
Browse files Browse the repository at this point in the history
…splaying-comments-from-annotators-on-hover-when-curating-using-curation-sidebar-on-the-annotation-page

#4554 - Allow displaying comments from annotators on hover when curating using curation sidebar on the annotation page
  • Loading branch information
reckart authored Mar 10, 2024
2 parents 1a58b2c + 26d993a commit 7da064b
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -321,14 +321,14 @@ public List<VLazyDetailGroup> lookupLazyDetails(SourceDocument aDocument, User a
var detailGroups = new ArrayList<VLazyDetailGroup>();
for (var aFeature : annotationService.listAnnotationFeature(aLayer)) {
if (aFeature.getLinkMode() == LinkMode.WITH_ROLE) {
return emptyList();
continue;
}

var vid = VID.parse(aVid.getExtensionPayload());
var representative = predictions.getPredictionByVID(aDocument, vid);
if (representative.isEmpty()
|| !representative.get().getFeature().equals(aFeature.getName())) {
return emptyList();
continue;
}

var sao = representative.get();
Expand All @@ -340,7 +340,7 @@ public List<VLazyDetailGroup> lookupLazyDetails(SourceDocument aDocument, User a
.findFirst();

if (group.isEmpty()) {
return emptyList();
continue;
}

var pref = recommendationService.getPreferences(aUser, aDocument.getProject());
Expand Down

0 comments on commit 7da064b

Please sign in to comment.