Bug fixing [#27826] #5
10
CHANGELOG.md
10
CHANGELOG.md
|
@ -4,6 +4,16 @@
|
|||
All notable changes to this project will be documented in this file.
|
||||
This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||
|
||||
## [v2.3.0-SNAPSHOT] - 2024-05-17
|
||||
|
||||
**Enhancement**
|
||||
|
||||
- In edit mode, is allowed to delete fields according to data type [#27455]
|
||||
|
||||
**Bug fixes**
|
||||
|
||||
- Edit facility when Catalogue Profiles mixing fields with namespaces and fields without namespaces [#27826]
|
||||
|
||||
## [v2.2.2] - 2024-05-14
|
||||
|
||||
**Bug fixes**
|
||||
|
|
2
pom.xml
2
pom.xml
|
@ -13,7 +13,7 @@
|
|||
|
||||
<groupId>org.gcube.portlets.widgets</groupId>
|
||||
<artifactId>ckan-metadata-publisher-widget</artifactId>
|
||||
<version>2.2.2</version>
|
||||
<version>2.3.0-SNAPSHOT</version>
|
||||
<name>gCube Ckan metadata publisher widget</name>
|
||||
|
||||
<description>
|
||||
|
|
|
@ -394,7 +394,8 @@ public class UpdateDatasetForm extends Composite {
|
|||
|
||||
infoBlock.add(alertPanel);
|
||||
|
||||
List<String> listOfSteps = Arrays.asList("Edit Common Metadata", "Edit Item Specific Metadata & Update", "Manage Resources");
|
||||
List<String> listOfSteps = Arrays.asList("Edit Common Metadata", "Edit Item Specific Metadata & Update",
|
||||
"Manage Resources");
|
||||
|
||||
this.wizCreator = new WizardCreator(listOfSteps);
|
||||
wizardCreatorPanel.add(wizCreator);
|
||||
|
@ -841,7 +842,10 @@ public class UpdateDatasetForm extends Composite {
|
|||
// Collecting and showing the fields for categories
|
||||
for (CategoryWrapper categoryWrapper : categories) {
|
||||
|
||||
List<MetadataFieldWrapper> fieldsForThisCategory = fields.stream().filter(f -> f.getOwnerCategory().getId()==categoryWrapper.getId()).collect(Collectors.toList());
|
||||
List<MetadataFieldWrapper> fieldsForThisCategory = fields.stream()
|
||||
.filter(f -> f.getOwnerCategory() != null
|
||||
&& f.getOwnerCategory().getId() == categoryWrapper.getId())
|
||||
.collect(Collectors.toList());
|
||||
|
||||
CategoryPanel cp = new CategoryPanel(categoryWrapper.getTitle(),
|
||||
categoryWrapper.getDescription());
|
||||
|
@ -862,35 +866,6 @@ public class UpdateDatasetForm extends Composite {
|
|||
metadataFieldsPanel.add(cp);
|
||||
}
|
||||
|
||||
|
||||
// create the categories, then parse the fields. Fields do not belonging to a
|
||||
// category are put at the end
|
||||
/*for (CategoryWrapper categoryWrapper : categories) {
|
||||
if (categoryWrapper.getFieldsForThisCategory() != null
|
||||
&& categoryWrapper.getFieldsForThisCategory().size() > 0) {
|
||||
|
||||
CategoryPanel cp = new CategoryPanel(categoryWrapper.getTitle(),
|
||||
categoryWrapper.getDescription());
|
||||
List<MetadataFieldWrapper> fieldsForThisCategory = categoryWrapper
|
||||
.getFieldsForThisCategory();
|
||||
fields.removeAll(fieldsForThisCategory);
|
||||
|
||||
for (MetadataFieldWrapper metadataFieldWrapper : fieldsForThisCategory) {
|
||||
|
||||
MetaDataField fieldWidget;
|
||||
try {
|
||||
fieldWidget = new MetaDataField(metadataFieldWrapper, eventBusPublisherWidget,
|
||||
operation);
|
||||
cp.addField(fieldWidget);
|
||||
listOfMetadataFields.add(fieldWidget);
|
||||
} catch (Exception e) {
|
||||
GWT.log("Unable to build such widget", e);
|
||||
}
|
||||
}
|
||||
metadataFieldsPanel.add(cp);
|
||||
}
|
||||
}*/
|
||||
|
||||
// add the remaining one at the end of the categories
|
||||
CategoryPanel extrasCategory = new CategoryPanel("Other", null);
|
||||
for (MetadataFieldWrapper field : fields) {
|
||||
|
|
Loading…
Reference in New Issue