Skip to content

Commit 6dc248a

Browse files
author
Dominick Leppich
committed
Merge pull request 'Release v25.02' (#20) from release_25.02 into master
2 parents ae56dff + 76722bf commit 6dc248a

File tree

8 files changed

+36
-33
lines changed

8 files changed

+36
-33
lines changed

.github/workflows/develop-build.yml

+5-4
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,13 @@ jobs:
1414
steps:
1515
- name: Check out source code
1616
uses: actions/checkout@v4
17-
- name: Set up JDK 17
18-
uses: actions/setup-java@v1
17+
- name: Set up JDK 21
18+
uses: actions/setup-java@v4
1919
with:
20-
java-version: 17
20+
distribution: 'temurin'
21+
java-version: 21
2122
- name: Set up Maven cache
22-
uses: actions/cache@v1
23+
uses: actions/cache@v4
2324
with:
2425
path: ~/.m2/repository
2526
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}

.github/workflows/release-build.yml

+5-4
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,13 @@ jobs:
1414
steps:
1515
- name: Check out source code
1616
uses: actions/checkout@v4
17-
- name: Set up JDK 17
18-
uses: actions/setup-java@v1
17+
- name: Set up JDK 21
18+
uses: actions/setup-java@v4
1919
with:
20-
java-version: 17
20+
distribution: 'temurin'
21+
java-version: 21
2122
- name: Set up Maven cache
22-
uses: actions/cache@v1
23+
uses: actions/cache@v4
2324
with:
2425
path: ~/.m2/repository
2526
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}

Jenkinsfile

+1-4
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,7 @@ pipeline {
33

44
agent {
55
docker {
6-
/* using a custom build image with a defined home directory for UID 1000 among other things */
7-
image 'nexus.intranda.com:4443/maven:3.9.3-eclipse-temurin-17'
8-
registryUrl 'https://nexus.intranda.com:4443'
9-
registryCredentialsId 'jenkins-docker'
6+
image 'maven:3-eclipse-temurin-21'
107
args '-v $HOME/.m2:/var/maven/.m2:z -v $HOME/.config:/var/maven/.config -v $HOME/.sonar:/var/maven/.sonar -u 1000 -ti -e _JAVA_OPTIONS=-Duser.home=/var/maven -e MAVEN_CONFIG=/var/maven/.m2'
118
}
129
}

build.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<exec executable="mvn">
44
<arg value="package"/>
55
</exec>
6-
<copy file="module-main/target/plugin_intranda_workflow_projectexport.jar" todir="/opt/digiverso/goobi/plugins/workflow/"/>
7-
<copy file="module-gui/target/plugin_intranda_workflow_projectexport-GUI.jar" todir="/opt/digiverso/goobi/plugins/GUI/"/>
6+
<copy file="module-base/target/plugin-workflow-project-export-base.jar" todir="/opt/digiverso/goobi/plugins/workflow/" overwrite="true"/>
7+
<copy file="module-gui/target/plugin-workflow-project-export-gui.jar" todir="/opt/digiverso/goobi/plugins/GUI/" overwrite="true"/>
88
</target>
99
</project>

module-base/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<parent>
44
<groupId>io.goobi.workflow.plugin</groupId>
55
<artifactId>plugin-workflow-project-export</artifactId>
6-
<version>24.12</version>
6+
<version>25.02</version>
77
</parent>
88
<artifactId>plugin-workflow-project-export-base</artifactId>
99
<packaging>jar</packaging>

module-base/src/main/java/de/intranda/goobi/plugins/ProjectExportPlugin.java

+20-16
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,6 @@
1515
import java.util.stream.Stream;
1616
import java.util.zip.ZipOutputStream;
1717

18-
import javax.faces.context.ExternalContext;
19-
import javax.faces.context.FacesContext;
20-
21-
import io.goobi.vocabulary.exchange.FieldDefinition;
22-
import io.goobi.vocabulary.exchange.VocabularySchema;
23-
import io.goobi.workflow.api.vocabulary.APIException;
24-
import io.goobi.workflow.api.vocabulary.VocabularyAPIManager;
25-
import io.goobi.workflow.api.vocabulary.VocabularyRecordAPI;
26-
import io.goobi.workflow.api.vocabulary.helper.ExtendedVocabulary;
27-
import io.goobi.workflow.api.vocabulary.helper.ExtendedVocabularyRecord;
2818
import org.apache.commons.configuration.HierarchicalConfiguration;
2919
import org.apache.commons.configuration.XMLConfiguration;
3020
import org.apache.commons.configuration.tree.xpath.XPathExpressionEngine;
@@ -54,6 +44,15 @@
5444
import de.sub.goobi.persistence.managers.MySQLHelper;
5545
import de.sub.goobi.persistence.managers.ProcessManager;
5646
import de.sub.goobi.persistence.managers.ProjectManager;
47+
import io.goobi.vocabulary.exchange.FieldDefinition;
48+
import io.goobi.vocabulary.exchange.VocabularySchema;
49+
import io.goobi.workflow.api.vocabulary.APIException;
50+
import io.goobi.workflow.api.vocabulary.VocabularyAPIManager;
51+
import io.goobi.workflow.api.vocabulary.VocabularyRecordAPI;
52+
import io.goobi.workflow.api.vocabulary.helper.ExtendedVocabulary;
53+
import io.goobi.workflow.api.vocabulary.helper.ExtendedVocabularyRecord;
54+
import jakarta.faces.context.ExternalContext;
55+
import jakarta.faces.context.FacesContext;
5756
import lombok.Getter;
5857
import lombok.Setter;
5958
import lombok.extern.log4j.Log4j2;
@@ -480,18 +479,22 @@ public void prepareExport() {
480479
}
481480

482481
if (searchAgain) {
483-
ExtendedVocabulary publishersVocabulary = VocabularyAPIManager.getInstance().vocabularies().findByName("Publishers");
484-
VocabularySchema schema = VocabularyAPIManager.getInstance().vocabularySchemas().get(publishersVocabulary.getSchemaId());
485-
Optional<Long> correctedValueDefinitionId = schema.getDefinitions().stream()
486-
.filter(d -> d.getName().equals("Corrected value"))
482+
ExtendedVocabulary publishersVocabulary =
483+
VocabularyAPIManager.getInstance().vocabularies().findByName("Publishers");
484+
VocabularySchema schema =
485+
VocabularyAPIManager.getInstance().vocabularySchemas().get(publishersVocabulary.getSchemaId());
486+
Optional<Long> correctedValueDefinitionId = schema.getDefinitions()
487+
.stream()
488+
.filter(d -> "Corrected value".equals(d.getName()))
487489
.map(FieldDefinition::getId)
488490
.findFirst();
489491

490492
if (correctedValueDefinitionId.isEmpty()) {
491493
log.error("Unable to find definition id for field \"Corrected value\"");
492494
continue;
493495
} else {
494-
List<ExtendedVocabularyRecord> hits = VocabularyAPIManager.getInstance().vocabularyRecords()
496+
List<ExtendedVocabularyRecord> hits = VocabularyAPIManager.getInstance()
497+
.vocabularyRecords()
495498
.list(publishersVocabulary.getId())
496499
.search(correctedValueDefinitionId.get() + ":" + publisherLat)
497500
.all()
@@ -501,7 +504,8 @@ public void prepareExport() {
501504
if (hits.size() == 1) {
502505
rec = hits.get(0);
503506
} else {
504-
log.error("Search result for publisher \"{}\" not existing or not unique, skipping", publisherLat);
507+
log.error("Search result for publisher \"{}\" not existing or not unique, skipping",
508+
publisherLat);
505509
continue;
506510
}
507511
}

module-gui/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<parent>
44
<groupId>io.goobi.workflow.plugin</groupId>
55
<artifactId>plugin-workflow-project-export</artifactId>
6-
<version>24.12</version>
6+
<version>25.02</version>
77
</parent>
88
<artifactId>plugin-workflow-project-export-gui</artifactId>
99
<packaging>jar</packaging>

pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<parent>
44
<groupId>io.goobi.workflow</groupId>
55
<artifactId>workflow-base</artifactId>
6-
<version>24.12</version>
6+
<version>25.02</version>
77
<relativePath />
88
</parent>
99
<groupId>io.goobi.workflow.plugin</groupId>

0 commit comments

Comments
 (0)