update commons
This commit is contained in:
parent
13d2a5317a
commit
a673e52ff5
|
@ -103,9 +103,12 @@ public class ZenodoBuilder {
|
|||
List<FieldModel> valueFields = this.findValueFieldsByIds(field.getId(), propertyDefinition);
|
||||
for (FieldModel valueField : valueFields) {
|
||||
switch (field.getData().getFieldType()) {
|
||||
case BOOLEAN_DECISION, FREE_TEXT, TEXT_AREA, RICH_TEXT_AREA, CHECK_BOX -> {
|
||||
case FREE_TEXT, TEXT_AREA, RICH_TEXT_AREA -> {
|
||||
if (valueField.getTextValue() != null && !valueField.getTextValue().isBlank()) values.add(valueField.getTextValue());
|
||||
}
|
||||
case BOOLEAN_DECISION, CHECK_BOX -> {
|
||||
if (valueField.getBooleanValue() != null) values.add(valueField.getBooleanValue().toString());
|
||||
}
|
||||
case DATE_PICKER -> {
|
||||
if (valueField.getDateValue() != null) values.add(DateTimeFormatter.ISO_DATE.format(valueField.getDateValue()));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue