diff --git a/src/main/java/org/gcube/gcat/persistence/ckan/CKANPackage.java b/src/main/java/org/gcube/gcat/persistence/ckan/CKANPackage.java index e91e76c..aa11a42 100644 --- a/src/main/java/org/gcube/gcat/persistence/ckan/CKANPackage.java +++ b/src/main/java/org/gcube/gcat/persistence/ckan/CKANPackage.java @@ -646,10 +646,15 @@ public class CKANPackage extends CKAN implements Moderated { /* + * TODO + * * This generated something like: * organization:orgfortesting OR organization:prevre OR organization:data_inrae + * and it seems not working + * I need to investigate better this part. */ int i=1; + stringWriter.append("("); for(String organizationName : configuration.getSupportedOrganizations()) { stringWriter.append(String.format(GCatConstants.ORGANIZATION_FILTER_TEMPLATE, organizationName)); if(i!=configuration.getSupportedOrganizations().size()) { @@ -659,6 +664,8 @@ public class CKANPackage extends CKAN implements Moderated { } i++; } + stringWriter.append(")"); + // */ return stringWriter.toString(); }