From d2e2962f4d25f1a14097d4fd4278fdf323af0d34 Mon Sep 17 00:00:00 2001 From: Robert Sehr Date: Tue, 5 Nov 2024 11:14:28 +0100 Subject: [PATCH] archivemanagement plugin update --- .../main/java/de/intranda/goobi/plugins/EadManager.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/module-base/src/main/java/de/intranda/goobi/plugins/EadManager.java b/module-base/src/main/java/de/intranda/goobi/plugins/EadManager.java index 219ea3c..cf82033 100644 --- a/module-base/src/main/java/de/intranda/goobi/plugins/EadManager.java +++ b/module-base/src/main/java/de/intranda/goobi/plugins/EadManager.java @@ -47,7 +47,7 @@ public EadManager(ImportSet importSet, String processName, String CatalogIDDigit } else { // prepare ArchivePlugin this.archivePlugin.getPossibleDatabases(); - this.archivePlugin.setSelectedDatabase(importSet.getEadFile()); + this.archivePlugin.setDatabaseName(importSet.getEadFile()); this.archivePlugin.loadSelectedDatabase(); this.dbStatusOk = checkDB(); } @@ -67,8 +67,8 @@ public EadManager(ImportSet importSet, String processName, String CatalogIDDigit private boolean checkDB() { List possibleDBs = this.archivePlugin.getPossibleDatabases(); - return !possibleDBs.isEmpty() && StringUtils.isNotBlank(this.archivePlugin.getSelectedDatabase()) - && this.archivePlugin.getSelectedDatabase().equals(this.importSet.getEadFile()); + return !possibleDBs.isEmpty() && StringUtils.isNotBlank(this.archivePlugin.getDatabaseName()) + && this.archivePlugin.getDatabaseName().equals(this.importSet.getEadFile()); } private IEadEntry findNode(String eadNode) throws NullPointerException { @@ -103,12 +103,11 @@ public String addDocumentNodeWithMetadata(Row row, List mappingFie addMetadata(entry, row, mappingFields); entry.setGoobiProcessTitle(entry.getId()); - this.archivePlugin.createEadDocument(); + this.archivePlugin.updateSingleNode(); return entry.getId(); } public void saveArchiveAndLeave() { - this.archivePlugin.createEadDocument(); this.archivePlugin.saveArchiveAndLeave(); }