Skip to content

Commit 252aac1

Browse files
Merge pull request 'Release v25.05' (#24) from release_25.05 into master
2 parents 28b7d8e + 34a2921 commit 252aac1

File tree

3 files changed

+25
-29
lines changed

3 files changed

+25
-29
lines changed

module-base/pom.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1+
<?xml version='1.0' encoding='UTF-8'?>
12
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
23
<modelVersion>4.0.0</modelVersion>
34
<parent>
45
<groupId>io.goobi.workflow.plugin</groupId>
56
<artifactId>plugin-step-xmp-header</artifactId>
6-
<version>25.04</version>
7+
<version>25.05</version>
78
</parent>
89
<artifactId>plugin-step-xmp-header-base</artifactId>
910
<packaging>jar</packaging>
10-
</project>
11+
</project>

module-base/src/main/java/de/intranda/goobi/plugins/step/xmp/XmpPlugin.java

Lines changed: 17 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,11 @@
1515
import org.apache.commons.configuration.reloading.FileChangedReloadingStrategy;
1616
import org.apache.commons.configuration.tree.xpath.XPathExpressionEngine;
1717
import org.apache.commons.lang.StringUtils;
18-
import org.goobi.beans.Masterpiece;
19-
import org.goobi.beans.Masterpieceproperty;
18+
import org.goobi.beans.GoobiProperty;
2019
import org.goobi.beans.Process;
2120
import org.goobi.beans.Processproperty;
2221
import org.goobi.beans.Step;
23-
import org.goobi.beans.Template;
24-
import org.goobi.beans.Templateproperty;
22+
2523
import org.goobi.production.enums.LogType;
2624
import org.goobi.production.enums.PluginGuiType;
2725
import org.goobi.production.enums.PluginReturnValue;
@@ -645,12 +643,12 @@ private void getProcessPropertyConfiguration(ImageMetadataField xmpFieldConfigur
645643
ProcesspropertyField field = (ProcesspropertyField) configuredField;
646644

647645
StringBuilder subValue = new StringBuilder();
648-
for (Processproperty prop : process.getEigenschaften()) {
649-
if (prop.getTitel().equals(field.getName())) {
646+
for (GoobiProperty prop : process.getEigenschaften()) {
647+
if (prop.getPropertyName().equals(field.getName())) {
650648
if (subValue.length() > 0) {
651649
subValue.append(field.getSeparator());
652650
}
653-
subValue.append(prop.getWert());
651+
subValue.append(prop.getPropertyValue());
654652
if (field.isUseFirst()) {
655653
break;
656654
}
@@ -668,56 +666,52 @@ private void getTemplatePropertyConfiguration(ImageMetadataField xmpFieldConfigu
668666
IMetadataField configuredField) {
669667
TemplatepropertyField field = (TemplatepropertyField) configuredField;
670668
StringBuilder subValue = new StringBuilder();
671-
if (process.getVorlagen() != null) {
672-
for (Template template : process.getVorlagen()) {
673-
for (Templateproperty prop : template.getEigenschaften()) {
674-
if (prop.getTitel().equals(field.getName())) {
669+
670+
for (GoobiProperty prop : process.getEigenschaften()) {
671+
if (prop.getPropertyName().equals(field.getName())) {
675672
if (subValue.length() > 0) {
676673
subValue.append(field.getSeparator());
677674
}
678-
subValue.append(prop.getWert());
675+
subValue.append(prop.getPropertyValue());
679676
if (field.isUseFirst()) {
680677
break;
681678
}
682679
}
683-
684-
}
685680
}
686681
if (subValue.length() > 0) {
687682
if (completeValue.length() > 0) {
688683
completeValue.append(xmpFieldConfiguration.getSeparator());
689684
}
690685
completeValue.append(subValue.toString());
691686
}
692-
}
687+
693688
}
694689

695690
private void getWorkpiecePropertyConfiguration(ImageMetadataField xmpFieldConfiguration, StringBuilder completeValue,
696691
IMetadataField configuredField) {
697692
WorkpiecepropertyField field = (WorkpiecepropertyField) configuredField;
698693
StringBuilder subValue = new StringBuilder();
699-
if (process.getWerkstuecke() != null) {
700-
for (Masterpiece workpiece : process.getWerkstuecke()) {
701-
for (Masterpieceproperty prop : workpiece.getEigenschaften()) {
702-
if (prop.getTitel().equals(field.getName())) {
694+
695+
for (GoobiProperty prop : process.getEigenschaften()) {
696+
if (prop.getPropertyName().equals(field.getName())) {
703697
if (subValue.length() > 0) {
704698
subValue.append(field.getSeparator());
705699
}
706-
subValue.append(prop.getWert());
700+
subValue.append(prop.getPropertyValue());
707701
if (field.isUseFirst()) {
708702
break;
709703
}
710-
}
704+
711705

712-
}
706+
}
713707
}
714708
if (subValue.length() > 0) {
715709
if (completeValue.length() > 0) {
716710
completeValue.append(xmpFieldConfiguration.getSeparator());
717711
}
718712
completeValue.append(subValue.toString());
719713
}
720-
}
714+
721715
}
722716

723717
private void getVariableFieldConfiguration(ImageMetadataField xmpFieldConfiguration, StringBuilder completeValue,

pom.xml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1+
<?xml version='1.0' encoding='UTF-8'?>
12
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
23
<modelVersion>4.0.0</modelVersion>
34
<parent>
45
<groupId>io.goobi.workflow</groupId>
56
<artifactId>workflow-base</artifactId>
6-
<version>25.04</version>
7-
<relativePath />
7+
<version>25.05</version>
8+
<relativePath/>
89
</parent>
910
<groupId>io.goobi.workflow.plugin</groupId>
1011
<artifactId>plugin-step-xmp-header</artifactId>
@@ -22,8 +23,8 @@
2223
<dependency>
2324
<groupId>io.goobi.workflow</groupId>
2425
<artifactId>workflow-core</artifactId>
25-
<version>${project.version}</version>
26+
<version>25.05</version>
2627
<classifier>classes</classifier>
2728
</dependency>
2829
</dependencies>
29-
</project>
30+
</project>

0 commit comments

Comments
 (0)