fixed tags

This commit is contained in:
Francesco Mangiacrapa 2024-02-15 17:48:31 +01:00
parent 1e00136aa4
commit 5957a61651
1 changed files with 24 additions and 16 deletions

View File

@ -452,12 +452,20 @@ 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) { // if (datasetBean.getTags() != null) {
for (String tag : datasetBean.getTags()) { // for (String tag : datasetBean.getTags()) {
tagsPanel.addTagElement(tag); // tagsPanel.addTagElement(tag);
} // }
//
// }
}
//Settings the tags
if (datasetBean.getTags() != null) {
for (String tag : datasetBean.getTags()) {
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.