1515import org .apache .commons .configuration .reloading .FileChangedReloadingStrategy ;
1616import org .apache .commons .configuration .tree .xpath .XPathExpressionEngine ;
1717import org .apache .commons .lang .StringUtils ;
18- import org .goobi .beans .Masterpiece ;
19- import org .goobi .beans .Masterpieceproperty ;
18+ import org .goobi .beans .GoobiProperty ;
2019import org .goobi .beans .Process ;
2120import org .goobi .beans .Processproperty ;
2221import org .goobi .beans .Step ;
23- import org .goobi .beans .Template ;
24- import org .goobi .beans .Templateproperty ;
22+
2523import org .goobi .production .enums .LogType ;
2624import org .goobi .production .enums .PluginGuiType ;
2725import 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 ,
0 commit comments