When creating a zenodo DOI handle more properly empty DMP description
This commit is contained in:
parent
be97645bf0
commit
524b1d68be
|
@ -1280,7 +1280,7 @@ public class DataManagementPlanManager {
|
||||||
" \"title\": \"" + dmp.getLabel() + "\",\n" +
|
" \"title\": \"" + dmp.getLabel() + "\",\n" +
|
||||||
" \"upload_type\": \"publication\",\n" +
|
" \"upload_type\": \"publication\",\n" +
|
||||||
" \"publication_type\": \"datamanagementplan\",\n" +
|
" \"publication_type\": \"datamanagementplan\",\n" +
|
||||||
" \"description\": \"" + dmp.getDescription() + "\",\n" +
|
" \"description\": \"" + (dmp.getDescription() != null ? dmp.getDescription() : "<p></p>") + "\",\n" +
|
||||||
" \"version\": \"" + dmp.getVersion() + "\",\n" +
|
" \"version\": \"" + dmp.getVersion() + "\",\n" +
|
||||||
" \"creators\": [{\n" +
|
" \"creators\": [{\n" +
|
||||||
" \t\t\"name\": \"" + dmp.getUsers().stream().filter(userDMP -> userDMP.getRole().equals(UserDMP.UserDMPRoles.OWNER.getValue())).findFirst().get().getUser().getName() + "\",\n" +
|
" \t\t\"name\": \"" + dmp.getUsers().stream().filter(userDMP -> userDMP.getRole().equals(UserDMP.UserDMPRoles.OWNER.getValue())).findFirst().get().getUser().getName() + "\",\n" +
|
||||||
|
|
Loading…
Reference in New Issue