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 {
.map(DonorInfoVO::getDonorAccessionNumber)
.collect(Collectors.joining(";"))));
map.put(OTHERNUMB, withFieldAsHeader(OTHERNUMB, vo -> String.join(";", vo.getAlternateIDs())));
map.put(DUPLSITE, withFieldAsHeader(DUPLSITE, vo ->
vo.getSafetyDuplicateInstitutes()
.stream()
.map(InstituteVO::getInstituteCode)
.collect(Collectors.joining(";"))));
map.put(DUPLSITE, withFieldAsHeader(DUPLSITE, vo -> null)); // no value available for DUPLSITE
map.put(DUPLINSTNAME, withFieldAsHeader(DUPLINSTNAME, vo ->
vo.getSafetyDuplicateInstitutes()
.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