minor fix
git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/widgets/ckan-metadata-publisher-widget@130670 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
7e21e3407b
commit
4431c2c729
|
@ -252,7 +252,7 @@ public class CreateDatasetForm extends Composite{
|
|||
// disable continue button
|
||||
continueButton.setEnabled(false);
|
||||
resetButton.setEnabled(false);
|
||||
|
||||
|
||||
// set info block
|
||||
setAlertBlock("Retrieving information, please wait...", AlertType.INFO, true);
|
||||
|
||||
|
@ -326,7 +326,7 @@ public class CreateDatasetForm extends Composite{
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
// set organizations
|
||||
List<OrganizationBean> organizations = bean.getOrganizationList();
|
||||
|
||||
|
@ -595,7 +595,6 @@ public class CreateDatasetForm extends Composite{
|
|||
String errorMsg = validateDataOnContinue();
|
||||
|
||||
if(errorMsg == null){
|
||||
|
||||
// check what to do
|
||||
if(isWorkspaceRequest){
|
||||
if(!addResourcesCheckBox.getValue()){
|
||||
|
@ -608,23 +607,26 @@ public class CreateDatasetForm extends Composite{
|
|||
// add the resources to the container panel
|
||||
if(workspaceResourcesContainer.getWidget() == null)
|
||||
workspaceResourcesContainer.add(resourcesTable);
|
||||
|
||||
selectedProfile.setText("Selected Profile is " + metadataProfilesFormatListbox.getSelectedItemText());
|
||||
|
||||
}else{
|
||||
|
||||
// resources will be added automatically and we can show the page of the profiles
|
||||
formFirstStep.setVisible(false);
|
||||
formThirdStep.setVisible(true);
|
||||
selectedProfile.setText("Selected Profile is " + metadataProfilesFormatListbox.getSelectedItemText());
|
||||
}
|
||||
}else{
|
||||
|
||||
// this is not a workspace request
|
||||
formFirstStep.setVisible(false);
|
||||
formThirdStep.setVisible(true);
|
||||
selectedProfile.setText("Selected Profile is " + metadataProfilesFormatListbox.getSelectedItemText());
|
||||
|
||||
}
|
||||
|
||||
if(metadataProfilesFormatListbox.getSelectedItemText().equals("none"))
|
||||
selectedProfile.setText("");
|
||||
else
|
||||
selectedProfile.setText("Selected Profile is " + metadataProfilesFormatListbox.getSelectedItemText());
|
||||
|
||||
}else{
|
||||
alertOnContinue("Please check inserted data [" + errorMsg + "]", AlertType.ERROR);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue