edit_facility_26115 #3
|
@ -688,7 +688,7 @@ public class CreateDatasetForm extends Composite {
|
||||||
* When the organization name is changed we need to retrieve the list of
|
* When the organization name is changed we need to retrieve the list of
|
||||||
* profiles and groups
|
* profiles and groups
|
||||||
*/
|
*/
|
||||||
private void organizationsListboxChangeHandlerBody(OPERATION operation) {
|
private void organizationsListboxChangeHandlerBody(final OPERATION operation) {
|
||||||
|
|
||||||
// remove any other product profiles
|
// remove any other product profiles
|
||||||
metadataTypeListbox.clear();
|
metadataTypeListbox.clear();
|
||||||
|
@ -811,7 +811,7 @@ public class CreateDatasetForm extends Composite {
|
||||||
*
|
*
|
||||||
* @param receivedBean
|
* @param receivedBean
|
||||||
*/
|
*/
|
||||||
private void prepareMetadataList(final DatasetBean receivedBean, OPERATION operation) {
|
private void prepareMetadataList(final DatasetBean receivedBean, final OPERATION operation) {
|
||||||
|
|
||||||
List<MetaDataProfileBean> profiles = receivedBean.getMetadataList();
|
List<MetaDataProfileBean> profiles = receivedBean.getMetadataList();
|
||||||
|
|
||||||
|
|
|
@ -408,6 +408,9 @@ public class UpdateDatasetForm extends Composite {
|
||||||
resetButton.setEnabled(false);
|
resetButton.setEnabled(false);
|
||||||
addResourcesButtonStep1.setEnabled(false);
|
addResourcesButtonStep1.setEnabled(false);
|
||||||
|
|
||||||
|
// hide reset button
|
||||||
|
resetButton.setVisible(false);
|
||||||
|
|
||||||
// hide tags panel
|
// hide tags panel
|
||||||
tagsPanel.setVisible(false);
|
tagsPanel.setVisible(false);
|
||||||
|
|
||||||
|
|
|
@ -1052,8 +1052,10 @@ public class CKANPublisherServicesImpl extends RemoteServiceServlet implements C
|
||||||
|
|
||||||
try {
|
try {
|
||||||
String scopeFromOrgName = getScopeFromOrgName(datasetBean.getSelectedOrganization());
|
String scopeFromOrgName = getScopeFromOrgName(datasetBean.getSelectedOrganization());
|
||||||
logger.debug("Going to delete dataset with name: {}", datasetBean.getCkanName());
|
logger.info("Going to delete dataset with name: {}", datasetBean.getCkanName());
|
||||||
return getCatalogue(scopeFromOrgName).deleteDataset(datasetBean.getCkanName());
|
boolean deleted = getCatalogue(scopeFromOrgName).deleteDataset(datasetBean.getCkanName());
|
||||||
|
logger.info("Dataset {} deleted? ", datasetBean.getCkanName(), deleted);
|
||||||
|
return deleted;
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
logger.error("Unable to check if such a dataset id already exists", e);
|
logger.error("Unable to check if such a dataset id already exists", e);
|
||||||
throw new Exception("Unable to check if such a dataset id already exists " + e.getMessage());
|
throw new Exception("Unable to check if such a dataset id already exists " + e.getMessage());
|
||||||
|
|
Loading…
Reference in New Issue