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:
Costantino Perciante 2016-07-21 09:26:18 +00:00
parent c4c95620a3
commit eabefd3db0
2 changed files with 25 additions and 19 deletions

View File

@ -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,6 +310,8 @@ public class CreateDatasetForm extends Composite{
} }
} }
if(isWorkspaceRequest){
// enable manage resources checkbox // enable manage resources checkbox
resourcesControlGroup.setVisible(true); resourcesControlGroup.setVisible(true);
addResourcesCheckBox.getElement().getStyle().setDisplay(Display.INLINE_BLOCK); addResourcesCheckBox.getElement().getStyle().setDisplay(Display.INLINE_BLOCK);
@ -323,6 +325,8 @@ public class CreateDatasetForm extends Composite{
alertNoResources.setVisible(true); alertNoResources.setVisible(true);
} }
}
// set organizations // set organizations
List<OrganizationBean> organizations = bean.getOrganizationList(); List<OrganizationBean> organizations = bean.getOrganizationList();
@ -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

View File

@ -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);