Skip to content

Commit

Permalink
fix: EL creation date property binding
Browse files Browse the repository at this point in the history
  • Loading branch information
Dominick Leppich committed Oct 10, 2024
1 parent 6981a4d commit 01c26d8
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,5 @@ public interface IGoobiProperty {

public String getNormalizedValue();

public String getNormalizedDate();
}
6 changes: 6 additions & 0 deletions src/main/java/org/goobi/beans/AbstractProperty.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import java.util.List;

import de.sub.goobi.beans.property.IGoobiProperty;
import de.sub.goobi.helper.Helper;
import de.sub.goobi.helper.enums.PropertyType;
import lombok.AccessLevel;
import lombok.Getter;
Expand Down Expand Up @@ -83,6 +84,11 @@ public String getNormalizedValue() {
return wert.replace(" ", "_").trim();
}

@Override
public String getNormalizedDate() {
return Helper.getDateAsFormattedString(creationDate);
}

@Override
public Boolean isIstObligatorisch() {
if (istObligatorisch == null) {
Expand Down
7 changes: 6 additions & 1 deletion src/main/webapp/uii/task_all.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,12 @@
styleClass="table table-hover table-bordered">
<x:column style="vertical-align: top;">
<h:outputText value="#{intern.titel}" /><br/>
<h:outputText styleClass="font-light" value="#{intern.normalizedDate}" />
<h:outputText styleClass="font-light" value="#{intern.creationDate}">
<f:convertDateTime
type="both"
dateStyle="long"
timeStyle="medium" />
</h:outputText>
</x:column>
<x:column style="vertical-align: top;">
<h:outputText value="#{intern.wert}" />
Expand Down

0 comments on commit 01c26d8

Please sign in to comment.