zenodoItem setLicenses not null as LicenseBean Snew

This commit is contained in:
Francesco Mangiacrapa 2023-07-27 12:49:08 +02:00
parent 139775a525
commit 04795542f8
2 changed files with 6 additions and 3 deletions

View File

@ -204,10 +204,9 @@ public class CkanToZenodoPublisherServiceImpl extends RemoteServiceServlet imple
// zenodoItem.getMetadata().setUpload_type(null);
// zenodoItem.getMetadata().setPublication_type(null);
LOG.info("zenodoItem setLicenses not null as LicenseBean S new");
LOG.info("zenodoItem setLicenses not null as LicenseBean Snew");
LOG.info("zenodoItem getLicenses: "+zenodoItem.getMetadata().getLicenses());
zenodoItem.getMetadata().setLicenses(null);
//zenodoItem.getMetadata().setLicenses(null);
LOG.debug("Returning item: "+zenodoItem);

View File

@ -3,6 +3,8 @@ package org.gcube.portlets.widgets.ckan2zenodopublisher.shared;
import java.io.Serializable;
import java.util.List;
import org.gcube.portlets.widgets.ckan2zenodopublisher.shared.wrapped.LicenseBean;
/**
* The Class SerializableEnum.
*
@ -20,6 +22,8 @@ public class SerializableEnum<E extends Serializable> implements Serializable{
private List<E> selectedValues;
private List<E> selectableValues;
private LicenseBean licenseBean; //never used. Do not remove it, required for GWT serialization.
public SerializableEnum() {