From 46ee42a3b0f448ebea77e59a6cecca74f0165444 Mon Sep 17 00:00:00 2001 From: Steffen Hankiewicz Date: Tue, 21 Jun 2022 17:30:42 +0200 Subject: [PATCH] small updates --- plugin/plugin_intranda_step_doi.xml | 120 +++++++++--------- .../intranda/goobi/plugins/DoiStepPlugin.java | 6 - .../de/intranda/goobi/plugins/HelperHttp.java | 4 - 3 files changed, 60 insertions(+), 70 deletions(-) diff --git a/plugin/plugin_intranda_step_doi.xml b/plugin/plugin_intranda_step_doi.xml index 3567ec5..3b6b877 100644 --- a/plugin/plugin_intranda_step_doi.xml +++ b/plugin/plugin_intranda_step_doi.xml @@ -8,24 +8,24 @@ --> - - * - * - - - true - + + * + * + + + true + - - + + https://mds.test.datacite.org/ - + 10.33510 https://viewer.example.org/resolver?field=MD_PI_DOI&identifier= USER PASSWORD - + go goobi @@ -33,55 +33,55 @@ DOI - - - doi.xsl - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + doi.xsl + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/plugin/src/main/java/de/intranda/goobi/plugins/DoiStepPlugin.java b/plugin/src/main/java/de/intranda/goobi/plugins/DoiStepPlugin.java index 50e38f1..fb47b26 100644 --- a/plugin/src/main/java/de/intranda/goobi/plugins/DoiStepPlugin.java +++ b/plugin/src/main/java/de/intranda/goobi/plugins/DoiStepPlugin.java @@ -31,13 +31,7 @@ import org.apache.commons.configuration.HierarchicalConfiguration; import org.apache.commons.configuration.SubnodeConfiguration; import org.apache.commons.lang3.StringUtils; -import org.apache.http.HttpEntity; -import org.apache.http.HttpResponse; import org.apache.http.ParseException; -import org.apache.http.client.fluent.Executor; -import org.apache.http.client.fluent.Request; -import org.apache.http.entity.ContentType; -import org.apache.http.util.EntityUtils; import org.goobi.beans.Process; import org.goobi.beans.Step; import org.goobi.production.enums.LogType; diff --git a/plugin/src/main/java/de/intranda/goobi/plugins/HelperHttp.java b/plugin/src/main/java/de/intranda/goobi/plugins/HelperHttp.java index 2dd108e..56c36db 100644 --- a/plugin/src/main/java/de/intranda/goobi/plugins/HelperHttp.java +++ b/plugin/src/main/java/de/intranda/goobi/plugins/HelperHttp.java @@ -13,14 +13,10 @@ import org.apache.http.client.fluent.Request; import org.apache.http.entity.ContentType; import org.apache.http.util.EntityUtils; -import org.goobi.production.enums.LogType; import org.jdom2.Document; import org.jdom2.output.Format; import org.jdom2.output.XMLOutputter; -import de.sub.goobi.helper.Helper; -import ugh.dl.Metadata; - public class HelperHttp { /**