diff --git a/distro/changelog.xml b/distro/changelog.xml index 7e4f0a1..1776460 100644 --- a/distro/changelog.xml +++ b/distro/changelog.xml @@ -1,9 +1,14 @@ + + Mime type fix for resources + Pom fixes Moved to java 8 - Added method to add a dataset to a group and its parents (if any) + Added method to add a dataset to a group and its parents (if + any) @@ -13,7 +18,8 @@ date="2017-02-01"> Added method to delete/purge group Project structure and so packages are changed (gwt-widget like - structure) + structure) + @@ -31,9 +37,11 @@ instances of the utils class(cache) Added code to discover a new Application Profile (see ticket - #4925) + #4925) + Added methods to manage group creation, assing a user/product - to a group + to a group + diff --git a/pom.xml b/pom.xml index 3e0ce44..ed719b2 100644 --- a/pom.xml +++ b/pom.xml @@ -10,7 +10,7 @@ org.gcube.data-catalogue ckan-util-library - 2.3.0-SNAPSHOT + 2.3.1-SNAPSHOT jar CKan utility library diff --git a/src/main/java/org/gcube/datacatalogue/ckanutillibrary/server/DataCatalogueImpl.java b/src/main/java/org/gcube/datacatalogue/ckanutillibrary/server/DataCatalogueImpl.java index 67f9c7f..a9d1f6f 100644 --- a/src/main/java/org/gcube/datacatalogue/ckanutillibrary/server/DataCatalogueImpl.java +++ b/src/main/java/org/gcube/datacatalogue/ckanutillibrary/server/DataCatalogueImpl.java @@ -816,12 +816,14 @@ public class DataCatalogueImpl implements DataCatalogue{ List resourcesCkan = new ArrayList(); for(ResourceBean resource: resources){ + logger.debug("Going to add resource described by " + resource); CkanResource newResource = new CkanResource(); newResource.setDescription(resource.getDescription()); newResource.setId(resource.getId()); newResource.setUrl(resource.getUrl()); newResource.setName(resource.getName()); newResource.setMimetype(resource.getMimeType()); + newResource.setFormat(resource.getMimeType()); newResource.setOwner(ckanUsername); resourcesCkan.add(newResource); }