Skip to content

Commit

Permalink
small updates
Browse files Browse the repository at this point in the history
  • Loading branch information
SteffenHankiewicz committed Jun 21, 2022
1 parent b8d749f commit 46ee42a
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 70 deletions.
120 changes: 60 additions & 60 deletions plugin/plugin_intranda_step_doi.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,80 +8,80 @@
-->

<config>
<!-- which projects to use for (can be more then one, otherwise use *) -->
<project>*</project>
<step>*</step>

<!-- use debug mode if the temporary xml shall be saved in the Goobi tmp folder -->
<debugMode>true</debugMode>

<!-- which projects to use for (can be more then one, otherwise use *) -->
<project>*</project>
<step>*</step>
<!-- use debug mode if the temporary xml shall be saved in the Goobi tmp folder -->
<debugMode>true</debugMode>
<!-- authentication and main information -->
<!-- For testing: https://mds.test.datacite.org/ -->
<!-- For production https://mds.datacite.org/ -->
<!-- For testing: https://mds.test.datacite.org/ -->
<!-- For production https://mds.datacite.org/ -->
<serviceAddress>https://mds.test.datacite.org/</serviceAddress>
<!-- authentication and main information -->
<base>10.33510</base>
<viewer>https://viewer.example.org/resolver?field=MD_PI_DOI&amp;identifier=</viewer>
<username>USER</username>
<password>PASSWORD</password>

<!-- name parts for DOI composition -->
<prefix>go</prefix>
<name>goobi</name>
<separator>-</separator>

<!-- metadata field from ruleset where to store the DOI -->
<metadata>DOI</metadata>

<!-- Path to the xsl file that shall be used for the datacite xml generation
(file must be located inside of the central Goobi xslt folder) -->
<xslt>doi.xsl</xslt>
<field name="LANGUAGE" default="- UNKNOWN LANGUAGE -">
<data content="{meta.DocLanguage)"/>
</field>

<field name="TITLE" default="- UNKNOWN TITLE -">
<data content="{meta.TitleDocMain)"/>
</field>
<field name="ANCHORTITLE" default="- UNKNOWN ANCHOR TITLE -">
<data content="{meta.topstruct.TitleDocMain)"/>
</field>

<field name="ANCHORSUBTITLE" default="- UNKNOWN ANCHOR SUB TITLE -">
<data content="{meta.topstruct.TitleDocSub1)"/>
</field>

<field name="IDENTIFIER" default="- NO IDENTIFIER DEFINED -">
<data content="{meta.CatalogIDDigital)"/>
</field>
<field name="FORMAT" default="- NO FORMAT DEFINED -">
<data content="{meta.FormatSourcePrint)"/>
</field>

<field name="PUBLICATIONYEAR" default="- NO FORMAT DEFINED -">
<data content="{meta.PublicationYear)"/>
</field>
<field name="CREATOR" default="- NO CREATOR DEFINED -">
<data content="{meta.Author)"/>
</field>

<field name="PUBLISHER" default="- NO PUBLISHER DEFINED -">
<data content="{meta.PublisherName)"/>
</field>
<field name="SERIES" default="- NO SERIES DEFINED -">
<data content="{meta.PublicationSeries)"/>
</field>
<field name="NUMBER">
<data content="{meta.CurrentNo)"/>
<data content="{meta.CurrentNoSorting)"/>
</field>
<!-- Path to the xsl file that shall be used for the datacite xml generation
(file must be located inside of the central Goobi xslt folder) -->
<xslt>doi.xsl</xslt>
<field name="LANGUAGE" default="- UNKNOWN LANGUAGE -">
<data content="{meta.DocLanguage)"/>
</field>
<field name="TITLE" default="- UNKNOWN TITLE -">
<data content="{meta.TitleDocMain)"/>
</field>
<field name="ANCHORTITLE" default="- UNKNOWN ANCHOR TITLE -">
<data content="{meta.topstruct.TitleDocMain)"/>
</field>
<field name="ANCHORSUBTITLE" default="- UNKNOWN ANCHOR SUB TITLE -">
<data content="{meta.topstruct.TitleDocSub1)"/>
</field>
<field name="IDENTIFIER" default="- NO IDENTIFIER DEFINED -">
<data content="{meta.CatalogIDDigital)"/>
</field>
<field name="FORMAT" default="- NO FORMAT DEFINED -">
<data content="{meta.FormatSourcePrint)"/>
</field>
<field name="PUBLICATIONYEAR" default="- NO FORMAT DEFINED -">
<data content="{meta.PublicationYear)"/>
</field>
<field name="CREATOR" default="- NO CREATOR DEFINED -">
<data content="{meta.Author)"/>
</field>
<field name="PUBLISHER" default="- NO PUBLISHER DEFINED -">
<data content="{meta.PublisherName)"/>
</field>
<field name="SERIES" default="- NO SERIES DEFINED -">
<data content="{meta.PublicationSeries)"/>
</field>
<field name="NUMBER">
<data content="{meta.CurrentNo)"/>
<data content="{meta.CurrentNoSorting)"/>
</field>

</config>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

/**
Expand Down

0 comments on commit 46ee42a

Please sign in to comment.