Commit 3b112aee authored by Jean-Baptiste Nizet's avatar Jean-Baptiste Nizet
Browse files

fix: use empty value for DUPLSITE in export of MCPD

parent 8a95a386
...@@ -104,11 +104,7 @@ public class GermplasmExportService { ...@@ -104,11 +104,7 @@ public class GermplasmExportService {
.map(DonorInfoVO::getDonorAccessionNumber) .map(DonorInfoVO::getDonorAccessionNumber)
.collect(Collectors.joining(";")))); .collect(Collectors.joining(";"))));
map.put(OTHERNUMB, withFieldAsHeader(OTHERNUMB, vo -> String.join(";", vo.getAlternateIDs()))); map.put(OTHERNUMB, withFieldAsHeader(OTHERNUMB, vo -> String.join(";", vo.getAlternateIDs())));
map.put(DUPLSITE, withFieldAsHeader(DUPLSITE, vo -> map.put(DUPLSITE, withFieldAsHeader(DUPLSITE, vo -> null)); // no value available for DUPLSITE
vo.getSafetyDuplicateInstitutes()
.stream()
.map(InstituteVO::getInstituteCode)
.collect(Collectors.joining(";"))));
map.put(DUPLINSTNAME, withFieldAsHeader(DUPLINSTNAME, vo -> map.put(DUPLINSTNAME, withFieldAsHeader(DUPLINSTNAME, vo ->
vo.getSafetyDuplicateInstitutes() vo.getSafetyDuplicateInstitutes()
.stream() .stream()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment