minor fixes
git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/widgets/ckan-metadata-publisher-widget@130616 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
c4c95620a3
commit
eabefd3db0
|
@ -231,7 +231,7 @@ public class CreateDatasetForm extends Composite{
|
||||||
* @param owner
|
* @param owner
|
||||||
* @param eventBus
|
* @param eventBus
|
||||||
*/
|
*/
|
||||||
private void createDatasetFormBody(boolean isWorkspaceRequest, String idFolderWorkspace, String owner, final HandlerManager eventBus){
|
private void createDatasetFormBody(final boolean isWorkspaceRequest, String idFolderWorkspace, String owner, final HandlerManager eventBus){
|
||||||
|
|
||||||
initWidget(uiBinder.createAndBindUi(this));
|
initWidget(uiBinder.createAndBindUi(this));
|
||||||
|
|
||||||
|
@ -249,14 +249,14 @@ public class CreateDatasetForm extends Composite{
|
||||||
// prepare info icons
|
// prepare info icons
|
||||||
prepareInfoIcons();
|
prepareInfoIcons();
|
||||||
|
|
||||||
// set info block
|
|
||||||
setAlertBlock("Retrieving information, please wait...", AlertType.INFO, true);
|
|
||||||
|
|
||||||
// disable continue button
|
// disable continue button
|
||||||
continueButton.setEnabled(false);
|
continueButton.setEnabled(false);
|
||||||
resetButton.setEnabled(false);
|
resetButton.setEnabled(false);
|
||||||
|
|
||||||
// get back the licenses and the metadata information from the workspace
|
// set info block
|
||||||
|
setAlertBlock("Retrieving information, please wait...", AlertType.INFO, true);
|
||||||
|
|
||||||
|
// get back the licenses and the metadata information
|
||||||
ckanServices.getDatasetBean(idFolderWorkspace, owner, new AsyncCallback<DatasetMetadataBean>() {
|
ckanServices.getDatasetBean(idFolderWorkspace, owner, new AsyncCallback<DatasetMetadataBean>() {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -310,17 +310,21 @@ public class CreateDatasetForm extends Composite{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// enable manage resources checkbox
|
if(isWorkspaceRequest){
|
||||||
resourcesControlGroup.setVisible(true);
|
|
||||||
addResourcesCheckBox.getElement().getStyle().setDisplay(Display.INLINE_BLOCK);
|
|
||||||
resourcesTable = new ResourcesTable(bean.getResources());
|
|
||||||
|
|
||||||
// if there are not resources, for now just checked it ( and hide so that the step will be skipped) TODO
|
// enable manage resources checkbox
|
||||||
if(bean.getResources() == null || bean.getResources().isEmpty()){
|
resourcesControlGroup.setVisible(true);
|
||||||
|
addResourcesCheckBox.getElement().getStyle().setDisplay(Display.INLINE_BLOCK);
|
||||||
|
resourcesTable = new ResourcesTable(bean.getResources());
|
||||||
|
|
||||||
|
// if there are not resources, for now just checked it ( and hide so that the step will be skipped) TODO
|
||||||
|
if(bean.getResources() == null || bean.getResources().isEmpty()){
|
||||||
|
|
||||||
|
resourcesControlGroup.setVisible(false);
|
||||||
|
alertNoResources.setType(AlertType.WARNING);
|
||||||
|
alertNoResources.setVisible(true);
|
||||||
|
}
|
||||||
|
|
||||||
resourcesControlGroup.setVisible(false);
|
|
||||||
alertNoResources.setType(AlertType.WARNING);
|
|
||||||
alertNoResources.setVisible(true);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// set organizations
|
// set organizations
|
||||||
|
@ -605,6 +609,8 @@ public class CreateDatasetForm extends Composite{
|
||||||
if(workspaceResourcesContainer.getWidget() == null)
|
if(workspaceResourcesContainer.getWidget() == null)
|
||||||
workspaceResourcesContainer.add(resourcesTable);
|
workspaceResourcesContainer.add(resourcesTable);
|
||||||
|
|
||||||
|
selectedProfile.setText("Selected Profile is " + metadataProfilesFormatListbox.getSelectedItemText());
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
|
|
||||||
// resources will be added automatically and we can show the page of the profiles
|
// resources will be added automatically and we can show the page of the profiles
|
||||||
|
|
|
@ -169,7 +169,7 @@ public class CKANPublisherServicesImpl extends RemoteServiceServlet implements C
|
||||||
|
|
||||||
if(httpSession.getAttribute(keyPerScope) != null){
|
if(httpSession.getAttribute(keyPerScope) != null){
|
||||||
orgsName = (List<OrganizationBean>)httpSession.getAttribute(keyPerScope);
|
orgsName = (List<OrganizationBean>)httpSession.getAttribute(keyPerScope);
|
||||||
logger.info("List of organizations was into session ");
|
logger.info("List of organizations was into session " + orgsName);
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
orgsName = Utils.getUserOrganizationsListAdmin(scope, username, getASLSession().getGroupName(), this);
|
orgsName = Utils.getUserOrganizationsListAdmin(scope, username, getASLSession().getGroupName(), this);
|
||||||
|
|
Loading…
Reference in New Issue