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);
|
List<FieldModel> valueFields = this.findValueFieldsByIds(field.getId(), propertyDefinition);
|
||||||
for (FieldModel valueField : valueFields) {
|
for (FieldModel valueField : valueFields) {
|
||||||
switch (field.getData().getFieldType()) {
|
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());
|
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 -> {
|
case DATE_PICKER -> {
|
||||||
if (valueField.getDateValue() != null) values.add(DateTimeFormatter.ISO_DATE.format(valueField.getDateValue()));
|
if (valueField.getDateValue() != null) values.add(DateTimeFormatter.ISO_DATE.format(valueField.getDateValue()));
|
||||||
}
|
}
|
||||||
|
|
2
pom.xml
2
pom.xml
|
@ -29,7 +29,7 @@
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.opencdmp</groupId>
|
<groupId>org.opencdmp</groupId>
|
||||||
<artifactId>repositorydepositbase</artifactId>
|
<artifactId>repositorydepositbase</artifactId>
|
||||||
<version>2.0.9</version>
|
<version>2.0.11</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
Loading…
Reference in New Issue