Skip to content
Snippets Groups Projects
Commit e6424433 authored by Stefan E. Funk's avatar Stefan E. Funk
Browse files

Add more logging

parent ea39980c
No related branches found
No related tags found
No related merge requests found
Pipeline #291091 passed
......@@ -82,7 +82,7 @@ public class OAIPMHUtilities {
public static final String IDIOM_IMAGE_NAMESPACE = "http://www.loc.gov/METS/";
public static final String IDIOM_IMAGE_SCHEMA_LOCATION =
"http://www.loc.gov/standards/mets/mets.xsd";
"http://www.loc.gov/standards/mets/mets.xsd";
public static final String DATACITE_PREFIX = "datacite";
public static final String DATACITE_NAMESPACE = "http://datacite.org/schema/kernel-3";
......@@ -287,7 +287,7 @@ public class OAIPMHUtilities {
ResumptionTokenType resTokenForResponse = new ResumptionTokenType();
if (resumptionToken != null && cursorCollector.containsKey(resumptionToken)) {
cursor = cursorCollector.get(resumptionToken).intValue() + i;
if (cursor == searchResponseSize) {
// TODO Why not "cursor += searchResponseSize;" ??
......@@ -605,16 +605,21 @@ public class OAIPMHUtilities {
final String identifier, final String setSpec) {
HeaderType result = new HeaderType();
//identifier.substring(0, identifier.indexOf("."));
if(identifier.contains(".")){
log.info("Header identifier: " + identifier);
// identifier.substring(0, identifier.indexOf("."));
if (identifier.contains(".")) {
result.setIdentifier(identifier.substring(0, identifier.indexOf(".")));
}else{
} else {
result.setIdentifier(identifier);
}
log.info("Header identifier: " + identifier);
result.setDatestamp(dateOfCreation);
log.debug(
log.info(
"Header (DoC / ID / setSpec): " + dateOfCreation + " / " + identifier + " / " + setSpec);
if (setSpec != null && !setSpec.isEmpty()) {
......
......@@ -236,9 +236,6 @@ public class RecordListDelivererDC extends RecordListDelivererAbstract {
// Get identifier and setSpec field, add setSpec prefix if not already set.
String identifier = OAIPMHUtilities.fieldLoader(json, this.identifierField);
System.out.println("id=" + identifier);
String setSpec = OAIPMHUtilities.getSetSpec(set, this.specFieldPrefix, identifier);
try {
......
......@@ -10,28 +10,27 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<cxf.version>3.3.11</cxf.version>
<jdk.version>1.8</jdk.version>
<antlr-maven-plugin.version>3.2</antlr-maven-plugin.version>
<antlr-runtime.version>3.2</antlr-runtime.version>
<common.version>4.2.0-SNAPSHOT</common.version>
<cxf.version>3.3.12</cxf.version>
<elasticsearch.version>6.5.4</elasticsearch.version>
<jaxb2-namespace-prefix.version>1.3</jaxb2-namespace-prefix.version>
<jetty-maven-plugin.version>9.4.12.v20180830</jetty-maven-plugin.version>
<junit.version>4.13.1</junit.version>
<json.version>20190722</json.version>
<maven-antrun-plugin.version>1.3</maven-antrun-plugin.version>
<maven-compiler-plugin.version>3.8.1</maven-compiler-plugin.version>
<maven-deploy-plugin.version>2.8.2</maven-deploy-plugin.version>
<maven-eclipse-plugin.version>2.10</maven-eclipse-plugin.version>
<maven-jaxb2-plugin.version>0.14.0</maven-jaxb2-plugin.version>
<mets-mods-mapping.version>1.1.39</mets-mods-mapping.version>
<package-info-maven-plugin.version>1.4.5</package-info-maven-plugin.version>
<properties-maven-plugin.version>1.0-alpha-2</properties-maven-plugin.version>
<!-- <slf4j.version>1.7.5</slf4j.version> -->
<rdf4j-repository-api.version>3.0.2</rdf4j-repository-api.version>
<spring.version>4.0.2.RELEASE</spring.version>
<xstream.version>1.4.18</xstream.version>
<jdk.version>1.8</jdk.version>
<antlr-maven-plugin.version>3.2</antlr-maven-plugin.version>
<antlr-runtime.version>3.2</antlr-runtime.version>
<common.version>4.2.0-SNAPSHOT</common.version>
<cxf.version>3.3.12</cxf.version>
<elasticsearch.version>6.5.4</elasticsearch.version>
<jaxb2-namespace-prefix.version>1.3</jaxb2-namespace-prefix.version>
<jetty-maven-plugin.version>9.4.12.v20180830</jetty-maven-plugin.version>
<junit.version>4.13.1</junit.version>
<json.version>20190722</json.version>
<maven-antrun-plugin.version>1.3</maven-antrun-plugin.version>
<maven-compiler-plugin.version>3.8.1</maven-compiler-plugin.version>
<maven-deploy-plugin.version>2.8.2</maven-deploy-plugin.version>
<maven-eclipse-plugin.version>2.10</maven-eclipse-plugin.version>
<maven-jaxb2-plugin.version>0.14.0</maven-jaxb2-plugin.version>
<mets-mods-mapping.version>1.1.39</mets-mods-mapping.version>
<package-info-maven-plugin.version>1.4.5</package-info-maven-plugin.version>
<properties-maven-plugin.version>1.0-alpha-2</properties-maven-plugin.version>
<rdf4j-repository-api.version>3.0.2</rdf4j-repository-api.version>
<spring.version>4.0.2.RELEASE</spring.version>
<xstream.version>1.4.18</xstream.version>
</properties>
<url>https://gitlab.gwdg.de/dariah-de/dariah-de-oai-pmh-services</url>
<scm>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment