From cc1ddb07fa5bd5e9027acd4d74f4d8a8e156bb39 Mon Sep 17 00:00:00 2001 From: mbrodhu <brodhun@sub.uni-goettingen.de> Date: Wed, 3 Dec 2014 14:03:23 +0100 Subject: [PATCH] Delete --- .../info/textgrid/middleware/IdentifierListDeliverer.java | 6 ++++-- .../main/java/info/textgrid/middleware/RecordDeliverer.java | 4 ++-- .../java/info/textgrid/middleware/RecordListDeliverer.java | 6 +++--- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/oaipmh-core/src/main/java/info/textgrid/middleware/IdentifierListDeliverer.java b/oaipmh-core/src/main/java/info/textgrid/middleware/IdentifierListDeliverer.java index 619c18a5..f1b14579 100644 --- a/oaipmh-core/src/main/java/info/textgrid/middleware/IdentifierListDeliverer.java +++ b/oaipmh-core/src/main/java/info/textgrid/middleware/IdentifierListDeliverer.java @@ -27,7 +27,7 @@ public class IdentifierListDeliverer { private static org.apache.commons.logging.Log log = LogFactory.getLog(IdentifierListDeliverer.class); private String datestamp; - private String identifier; + private String identifier = "textgrid:"; private ListIdentifiersType lit = new ListIdentifiersType(); private boolean idExist = true; private OAI_ESClient oaiEsClient; @@ -97,7 +97,9 @@ public class IdentifierListDeliverer { log.debug(e); } - identifier = hit.getFields().get("textgridUri").getValue().toString(); + identifier = identifier.concat(hit.getFields().get("textgridUri").getValue().toString()); + + lit=setListIdentifierHeader(datestamp, identifier); diff --git a/oaipmh-core/src/main/java/info/textgrid/middleware/RecordDeliverer.java b/oaipmh-core/src/main/java/info/textgrid/middleware/RecordDeliverer.java index 276e9dc7..6acd99b0 100644 --- a/oaipmh-core/src/main/java/info/textgrid/middleware/RecordDeliverer.java +++ b/oaipmh-core/src/main/java/info/textgrid/middleware/RecordDeliverer.java @@ -62,7 +62,7 @@ public class RecordDeliverer { private OAI_ESClient oaiEsClient; // TODO Make this configurable! - String aggregatorURL = "http://textgrid-esx2.gwdg.de/1.0/aggregator/teicorpus/"; + //String aggregatorURL = "http://textgrid-esx2.gwdg.de/1.0/aggregator/teicorpus/"; public RecordDeliverer(OAI_ESClient oaiEsClient){ this.oaiEsClient=oaiEsClient; @@ -152,7 +152,7 @@ public class RecordDeliverer { if(tgObject.getField("relations.isDerivedFrom")!=null){ relations.add(tgObject.getField("relations.isDerivedFrom").getValue().toString()); } - relations.add(aggregatorURL.concat(tgObject.getField("textgridUri").getValue().toString())); + //relations.add(aggregatorURL.concat(tgObject.getField("textgridUri").getValue().toString())); /* * DC-Rights diff --git a/oaipmh-core/src/main/java/info/textgrid/middleware/RecordListDeliverer.java b/oaipmh-core/src/main/java/info/textgrid/middleware/RecordListDeliverer.java index d8cdbb70..a554301d 100644 --- a/oaipmh-core/src/main/java/info/textgrid/middleware/RecordListDeliverer.java +++ b/oaipmh-core/src/main/java/info/textgrid/middleware/RecordListDeliverer.java @@ -103,7 +103,7 @@ public class RecordListDeliverer { private List<String> types = new ArrayList<String>(); // TODO Make configurable! - private String aggregatorURL = "http://textgrid-esx2.gwdg.de/1.0/aggregator/teicorpus/"; + //private String aggregatorURL = "http://textgrid-esx2.gwdg.de/1.0/aggregator/teicorpus/"; /** * @param oaiEsClient @@ -246,10 +246,10 @@ public class RecordListDeliverer { relations.add(hit.getFields().get(IS_DERIVED_FROM) .values().get(0).toString()); } - if (hit.getFields().get(URI) != null) { + /*if (hit.getFields().get(URI) != null) { relations.add(aggregatorURL.concat(hit.getFields() .get(URI).values().get(0).toString())); - } + }*/ /* * DC-Rights -- GitLab