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();
if (vocabularyTags != null) {
tagsPanel.setVocabulary(vocabularyTags);
if (datasetBean.getTags() != null) {
for (String tag : datasetBean.getTags()) {
tagsPanel.addTagElement(tag);
}
// if (datasetBean.getTags() != null) {
// for (String tag : datasetBean.getTags()) {
// 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.
@ -510,15 +518,15 @@ public class UpdateDatasetForm extends Composite {
// force the selection of the first one, and retrieve the list of profiles
organizationsListbox.setSelectedIndex(0);
// add change handler to dynamically retrieve the list of profiles
organizationsListbox.addChangeHandler(new ChangeHandler() {
@Override
public void onChange(ChangeEvent event) {
event.preventDefault();
organizationsListboxChangeHandlerBody(operation);
}
});
// // add change handler to dynamically retrieve the list of profiles
// organizationsListbox.addChangeHandler(new ChangeHandler() {
//
// @Override
// public void onChange(ChangeEvent event) {
// event.preventDefault();
// organizationsListboxChangeHandlerBody(operation);
// }
// });
// get the name of the organization from the title
final String orgName = nameTitleOrganizationMap
@ -701,7 +709,7 @@ public class UpdateDatasetForm extends Composite {
*/
// NEVER USED IN UPDATE MODE
private void organizationsListboxChangeHandlerBody(OPERATION operation) {
/*private void organizationsListboxChangeHandlerBody(OPERATION operation) {
// remove any other product profiles
metadataTypeListbox.clear();
@ -813,7 +821,7 @@ public class UpdateDatasetForm extends Composite {
}
});
}
}*/
/**
* Add the items to the listbox and put data into the metadataPanel.