diff --git a/src/main/java/org/gcube/portlets/widgets/ckan2zenodopublisher/server/CkanToZenodoPublisherServiceImpl.java b/src/main/java/org/gcube/portlets/widgets/ckan2zenodopublisher/server/CkanToZenodoPublisherServiceImpl.java index 70e7ec3..fda3356 100644 --- a/src/main/java/org/gcube/portlets/widgets/ckan2zenodopublisher/server/CkanToZenodoPublisherServiceImpl.java +++ b/src/main/java/org/gcube/portlets/widgets/ckan2zenodopublisher/server/CkanToZenodoPublisherServiceImpl.java @@ -88,6 +88,7 @@ public class CkanToZenodoPublisherServiceImpl extends RemoteServiceServlet imple //Actually publish to zenodo : // Step 1 : metadata Ckan2Zenodo client= new Ckan2ZenodoImpl(); + LOG.debug("Calling updatedMetadta for: "+zenodoDepositionPreview); zenodoDepositionPreview = client.updatedMetadata(zenodoDepositionPreview); //Step 2 : publish Resources @@ -104,7 +105,8 @@ public class CkanToZenodoPublisherServiceImpl extends RemoteServiceServlet imple // Get the item representation CkanItemDescriptor item=client.read(zenodoItem.getName()); //Finalize - client.publish(zenodoDepositionPreview, item); + LOG.debug("Calling publish on Zenodo for: "+zenodoDepositionPreview); + zenodoDepositionPreview = client.publish(zenodoDepositionPreview, item); return zenodoDepositionPreview.toString(); }catch (TimeoutException e) {