diff --git a/install/plugin_intranda_workflow_newspaper_pages_importer.xml b/install/plugin_intranda_workflow_newspaper_pages_importer.xml index ce4da34..22450a7 100644 --- a/install/plugin_intranda_workflow_newspaper_pages_importer.xml +++ b/install/plugin_intranda_workflow_newspaper_pages_importer.xml @@ -1,60 +1,131 @@ - - /opt/digiverso/import/sample/ - - Newspaper_workflow - - - mytitle_1234567 - - Seite + - - de + + /opt/digiverso/import/sample1/ + + + Newspaper_workflow + + + mytitle_1234567 + + + Ausgabe vom + Morgenausgabe vom + Abendausgabe vom + + + Page + + + de + + + + true - - Ausgabe vom + + + + + + + + + + + + + + + + + + + + + + + + + + /opt/digiverso/import/sample2/ + + + Newspaper_workflow + + + mytitle_1234567 + + + Page + + + de + + + Ausgabe vom + Morgenausgabe vom + Abendausgabe vom + + + true - - true - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + diff --git a/module-base/src/main/java/de/intranda/goobi/plugins/NewspaperPageImporterWorkflowPlugin.java b/module-base/src/main/java/de/intranda/goobi/plugins/NewspaperPageImporterWorkflowPlugin.java index b92eab7..833d432 100644 --- a/module-base/src/main/java/de/intranda/goobi/plugins/NewspaperPageImporterWorkflowPlugin.java +++ b/module-base/src/main/java/de/intranda/goobi/plugins/NewspaperPageImporterWorkflowPlugin.java @@ -109,6 +109,11 @@ public class NewspaperPageImporterWorkflowPlugin implements IWorkflowPlugin, IPu private String pageNumberPrefix; // issue title prefix private String issueTitlePrefix; + private String issueTitlePrefixMorning; + private String issueTitlePrefixEvening; + // identifiers to detect morning and evening issues + private String morningIssueIdentifier; + private String eveningIssueIdentifier; // language for ate for issueTitle private String languageForDateFormat; // true if the images should be deleted from the import folder once they are imported, false otherwise @@ -166,8 +171,13 @@ private void readConfiguration(String set) { importFolder = config.getString("importFolder"); workflow = config.getString("workflow"); processtitle = config.getString("processtitle"); - pageNumberPrefix = config.getString("pageNumberPrefix"); issueTitlePrefix = config.getString("issueTitlePrefix"); + issueTitlePrefixMorning = config.getString("issueTitlePrefixMorning"); + issueTitlePrefixEvening = config.getString("issueTitlePrefixEvening"); + morningIssueIdentifier = config.getString("issueTitlePrefixMorning[@identifier]"); + eveningIssueIdentifier = config.getString("issueTitlePrefixEvening[@identifier]"); + + pageNumberPrefix = config.getString("pageNumberPrefix"); languageForDateFormat = config.getString("languageForDateFormat", "de"); deleteFromSource = config.getBoolean("deleteFromSource", false); anchorMetadataList = new ArrayList<>();