Skip to content

Commit

Permalink
add links of specimen to other datasetversions using the same
Browse files Browse the repository at this point in the history
  • Loading branch information
olinux committed Oct 24, 2022
1 parent ea9af87 commit 35931a1
Show file tree
Hide file tree
Showing 5 changed files with 121 additions and 34 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ public DatasetVersion translate(DatasetVersionV3 datasetVersion, DataStage dataS
return null;
}).filter(Objects::nonNull).collect(Collectors.toList()));
}
final BasicHierarchyElement<DatasetVersion.DSVSpecimenOverview> specimenBySubject = new SpecimenV3Translator().translateToHierarchy(datasetVersion.getStudiedSpecimen());
final BasicHierarchyElement<DatasetVersion.DSVSpecimenOverview> specimenBySubject = new SpecimenV3Translator(datasetVersion.getId()).translateToHierarchy(datasetVersion.getStudiedSpecimen());
if (specimenBySubject != null) {
if (specimenBySubject.getData().getSpecies() != null) {
d.setSpeciesFilter(specimenBySubject.getData().getSpecies().stream().map(TargetInternalReference::getValue).filter(Objects::nonNull).distinct().map(Value::new).collect(Collectors.toList()));
Expand Down
Loading

0 comments on commit 35931a1

Please sign in to comment.