Skip to content

Commit

Permalink
Merge pull request 'Release v24.07' (!342) from release_24.07 into ma…
Browse files Browse the repository at this point in the history
…ster
  • Loading branch information
janvonde committed Aug 20, 2024
2 parents 1dfa1d7 + 30447d1 commit a01eb7f
Show file tree
Hide file tree
Showing 128 changed files with 8,271 additions and 8,885 deletions.
13 changes: 9 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>io.goobi.workflow</groupId>
<artifactId>workflow-base</artifactId>
<version>24.06</version>
<version>24.07</version>
<relativePath/>
</parent>
<artifactId>workflow-core</artifactId>
Expand All @@ -15,6 +15,13 @@
<url>https://nexus.intranda.com/repository/maven-public</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>io.goobi.vocabulary</groupId>
<artifactId>vocabulary-server-exchange</artifactId>
<version>1.0.0</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
Expand Down Expand Up @@ -79,8 +86,7 @@
</goals>
<configuration>
<sourceFile>${project.build.directory}/classes/template.properties</sourceFile>
<destinationFile>${project.build.directory}/classes/goobi_config.properties
</destinationFile>
<destinationFile>${project.build.directory}/classes/goobi_config.properties</destinationFile>
</configuration>
</execution>
</executions>
Expand All @@ -100,4 +106,3 @@
</resources>
</build>
</project>

12 changes: 12 additions & 0 deletions src/main/java/de/sub/goobi/config/ConfigurationHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -1111,6 +1111,10 @@ public int getNumberOfMetaBackups() {
return getLocalInt("numberOfMetaBackups", 9);
}

public int getNumberOfBackups() {
return getLocalInt("numberOfBackups", 9);
}

/*
* subcategory in goobi_config.properties/METS EDITOR: user interface
*/
Expand Down Expand Up @@ -1291,6 +1295,14 @@ public boolean isPdfAsDownload() {
return getLocalBoolean("pdfAsDownload", true);
}

public String getVocabularyServerHost() {
return getLocalString("vocabularyServerHost", "localhost");
}

public int getVocabularyServerPort() {
return getLocalInt("vocabularyServerPort", 8081);
}

/**
* This setter is only used by unit tests and makes manipulation of the configuration possible.
*
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/de/sub/goobi/export/download/ExportMets.java
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@
import ugh.dl.ExportFileformat;
import ugh.dl.Fileformat;
import ugh.dl.Md;
import ugh.dl.Md.MdType;
import ugh.dl.MetadataType;
import ugh.dl.Prefs;
import ugh.dl.VirtualFileGroup;
Expand Down Expand Up @@ -407,8 +408,7 @@ private ExportFileformat collectMetadataToSave(Process myProzess, Fileformat gdz
}
Element techMd = createTechMd(path);
if (techMd != null) {
Md md = new Md(techMd);
md.setType("techMD");
Md md = new Md(techMd, MdType.TECH_MD);
md.setId(String.format("AMD_%04d", counter++));
dd.addTechMd(md);
page.setAdmId(md.getId());
Expand Down
7 changes: 6 additions & 1 deletion src/main/java/de/sub/goobi/forms/AdditionalField.java
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ public void setInitEnd(String newValue) {
}

public void setWert(String newValue) {
if (newValue == null || newValue.equals(this.initStart)) {
// TODO: Testing for "null" is not nice, but JSF seems to store empty selection of dropdowns as "null" instead of null
if (newValue == null || "null".equals(newValue) || newValue.equals(this.initStart)) {
newValue = "";
}
if (newValue.startsWith(this.initStart)) {
Expand Down Expand Up @@ -204,6 +205,10 @@ public LocalDate getValueAsDate() {
}

public void setValueAsDate(LocalDate date) {
if (date == null) {
return;
}

DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd");
wert = formatter.format(date);
}
Expand Down
Loading

0 comments on commit a01eb7f

Please sign in to comment.