edit_facility_26115 #3
|
@ -452,13 +452,21 @@ public class UpdateDatasetForm extends Composite {
|
||||||
List<String> vocabularyTags = datasetBean.getTagsVocabulary();
|
List<String> vocabularyTags = datasetBean.getTagsVocabulary();
|
||||||
if (vocabularyTags != null) {
|
if (vocabularyTags != null) {
|
||||||
tagsPanel.setVocabulary(vocabularyTags);
|
tagsPanel.setVocabulary(vocabularyTags);
|
||||||
|
// if (datasetBean.getTags() != null) {
|
||||||
|
// for (String tag : datasetBean.getTags()) {
|
||||||
|
// tagsPanel.addTagElement(tag);
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// }
|
||||||
|
}
|
||||||
|
|
||||||
|
//Settings the tags
|
||||||
if (datasetBean.getTags() != null) {
|
if (datasetBean.getTags() != null) {
|
||||||
for (String tag : datasetBean.getTags()) {
|
for (String tag : datasetBean.getTags()) {
|
||||||
tagsPanel.addTagElement(tag);
|
tagsPanel.addTagElement(tag);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// THIS BLOCK is it required? Probably not.
|
// THIS BLOCK is it required? Probably not.
|
||||||
|
|
||||||
|
@ -510,15 +518,15 @@ public class UpdateDatasetForm extends Composite {
|
||||||
// force the selection of the first one, and retrieve the list of profiles
|
// force the selection of the first one, and retrieve the list of profiles
|
||||||
organizationsListbox.setSelectedIndex(0);
|
organizationsListbox.setSelectedIndex(0);
|
||||||
|
|
||||||
// add change handler to dynamically retrieve the list of profiles
|
// // add change handler to dynamically retrieve the list of profiles
|
||||||
organizationsListbox.addChangeHandler(new ChangeHandler() {
|
// organizationsListbox.addChangeHandler(new ChangeHandler() {
|
||||||
|
//
|
||||||
@Override
|
// @Override
|
||||||
public void onChange(ChangeEvent event) {
|
// public void onChange(ChangeEvent event) {
|
||||||
event.preventDefault();
|
// event.preventDefault();
|
||||||
organizationsListboxChangeHandlerBody(operation);
|
// organizationsListboxChangeHandlerBody(operation);
|
||||||
}
|
// }
|
||||||
});
|
// });
|
||||||
|
|
||||||
// get the name of the organization from the title
|
// get the name of the organization from the title
|
||||||
final String orgName = nameTitleOrganizationMap
|
final String orgName = nameTitleOrganizationMap
|
||||||
|
@ -701,7 +709,7 @@ public class UpdateDatasetForm extends Composite {
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// NEVER USED IN UPDATE MODE
|
// NEVER USED IN UPDATE MODE
|
||||||
private void organizationsListboxChangeHandlerBody(OPERATION operation) {
|
/*private void organizationsListboxChangeHandlerBody(OPERATION operation) {
|
||||||
|
|
||||||
// remove any other product profiles
|
// remove any other product profiles
|
||||||
metadataTypeListbox.clear();
|
metadataTypeListbox.clear();
|
||||||
|
@ -813,7 +821,7 @@ public class UpdateDatasetForm extends Composite {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add the items to the listbox and put data into the metadataPanel.
|
* Add the items to the listbox and put data into the metadataPanel.
|
||||||
|
|
Loading…
Reference in New Issue