the code for generating the url has been moved into the ckan catalogue lib

git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/widgets/ckan-metadata-publisher-widget@139734 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Costantino Perciante 2016-12-06 18:09:02 +00:00
parent 3bdb754146
commit 9699fd9fcc
1 changed files with 1 additions and 2 deletions

View File

@ -1,6 +1,5 @@
package org.gcube.portlets.widgets.ckandatapublisherwidget.server;
import java.net.URLEncoder;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Calendar;
@ -278,7 +277,7 @@ public class CKANPublisherServicesImpl extends RemoteServiceServlet implements C
toCreate.setId(datasetId);
// retrieve the url
String datasetUrl = utils.getPortletUrl() + "?" + URLEncoder.encode("path=" + utils.getUrlFromDatasetIdOrName(userApiKey, datasetId, true), "UTF-8");
String datasetUrl = utils.getUrlFromDatasetIdOrName(datasetId);
toCreate.setSource(datasetUrl);
// start a thread that will associate this dataset with the group