When creating a zenodo DOI handle more properly empty DMP description

This commit is contained in:
George Kalampokis 2020-02-24 12:13:50 +02:00
parent be97645bf0
commit 524b1d68be
1 changed files with 1 additions and 1 deletions

View File

@ -1280,7 +1280,7 @@ public class DataManagementPlanManager {
" \"title\": \"" + dmp.getLabel() + "\",\n" +
" \"upload_type\": \"publication\",\n" +
" \"publication_type\": \"datamanagementplan\",\n" +
" \"description\": \"" + dmp.getDescription() + "\",\n" +
" \"description\": \"" + (dmp.getDescription() != null ? dmp.getDescription() : "<p></p>") + "\",\n" +
" \"version\": \"" + dmp.getVersion() + "\",\n" +
" \"creators\": [{\n" +
" \t\t\"name\": \"" + dmp.getUsers().stream().filter(userDMP -> userDMP.getRole().equals(UserDMP.UserDMPRoles.OWNER.getValue())).findFirst().get().getUser().getName() + "\",\n" +