Fixing the issue reported at
https://support.d4science.org/issues/18236#note-7
This commit is contained in:
parent
032d01f57c
commit
3cf7c277d2
|
@ -446,7 +446,7 @@ public class ItemToZenodoConverter {
|
|||
//upload type
|
||||
SerializableEnum<String> uploadType = metadata.getUpload_type();
|
||||
LOG.debug("Read upload type: "+uploadType);
|
||||
if(uploadType!=null) {
|
||||
if(uploadType!=null && uploadType.getSelectedValues()!=null) {
|
||||
String theUploadTypeValue = uploadType.getSelectedValues().get(0);
|
||||
LOG.debug("Set upload type: "+theUploadTypeValue);
|
||||
depositionMetadata.setUpload_type(UploadType.valueOf(theUploadTypeValue));
|
||||
|
@ -455,7 +455,7 @@ public class ItemToZenodoConverter {
|
|||
//access right
|
||||
SerializableEnum<String> accessRight = metadata.getAccess_right();
|
||||
LOG.debug("Read access type: "+accessRight);
|
||||
if(accessRight!=null) {
|
||||
if(accessRight!=null && accessRight.getSelectedValues()!=null) {
|
||||
try {
|
||||
String theAccessRightValue = accessRight.getSelectedValues().get(0);
|
||||
LOG.debug("Set access right: "+theAccessRightValue);
|
||||
|
@ -468,7 +468,7 @@ public class ItemToZenodoConverter {
|
|||
//publication type
|
||||
SerializableEnum<String> publicationType = metadata.getPublication_type();
|
||||
LOG.debug("Read publication type: "+publicationType);
|
||||
if(publicationType!=null) {
|
||||
if(publicationType!=null && publicationType.getSelectedValues()!=null) {
|
||||
try {
|
||||
String thePublicationTypeValue = publicationType.getSelectedValues().get(0);
|
||||
LOG.debug("Set publication type: "+thePublicationTypeValue);
|
||||
|
@ -481,7 +481,7 @@ public class ItemToZenodoConverter {
|
|||
//image type
|
||||
SerializableEnum<String> imageType = metadata.getImage_type();
|
||||
LOG.debug("Read image type: "+imageType);
|
||||
if(imageType!=null) {
|
||||
if(imageType!=null && imageType.getSelectedValues()!=null) {
|
||||
try {
|
||||
String imageTypeValue = imageType.getSelectedValues().get(0);
|
||||
LOG.debug("Set image type: "+imageTypeValue);
|
||||
|
|
Loading…
Reference in New Issue