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

Remove sysouts

Increase version to 3.4.6-SNAPSHOT
parent 0a9d3b10
No related branches found
No related tags found
No related merge requests found
......@@ -5,7 +5,7 @@
<parent>
<artifactId>oaipmh</artifactId>
<groupId>info.textgrid.middleware</groupId>
<version>3.4.5-SNAPSHOT</version>
<version>3.4.6-SNAPSHOT</version>
</parent>
<groupId>info.textgrid.middleware</groupId>
<artifactId>oaipmh-core</artifactId>
......
......@@ -56,7 +56,7 @@ import info.textgrid.middleware.oaipmh.Resource.Titles.Title;
/**
* @author Maximilian Brodhun, SUB Göttingen
* @author Stefan E. Funk, SUB Göttingen
* @version 2021-07-22
* @version 2021-07-23
* @since 2020-06-13
*/
@Component
......@@ -112,34 +112,23 @@ public class RecordDelivererDATACITE extends RecordDelivererAbstract {
public GetRecordType getRecordById(final String idInElasticSearchIndex)
throws ParseException, DatatypeConfigurationException, IOException {
System.out.println("idInElasticSearchIndex: " + idInElasticSearchIndex);
String replacedID = idInElasticSearchIndex.replace(this.repositoryObjectURIPrefix, "");
System.out.println("idInElasticSearchIndex: "
+ idInElasticSearchIndex.replace(this.repositoryObjectURIPrefix, ""));
log.debug("idInElasticSearchIndex: " + idInElasticSearchIndex + " = " + replacedID);
GetRecordType getRecordType = new GetRecordType();
JSONObject urgli = new JSONObject(OAIPMHUtilities
.getRcordByIDFromElasticSearch(OAI_ESClient.getEsIndex(),
idInElasticSearchIndex.replace(this.repositoryObjectURIPrefix, ""), this.fields,
Strings.EMPTY_ARRAY)
.getSource());
System.out.println("urgli: " + urgli);
// Get ES object.
this.jsonObj = new JSONObject(OAIPMHUtilities
.getRcordByIDFromElasticSearch(OAI_ESClient.getEsIndex(),
idInElasticSearchIndex.replace(this.repositoryObjectURIPrefix, ""), this.fields,
Strings.EMPTY_ARRAY)
.getSource());
this.jsonObj =
new JSONObject(OAIPMHUtilities.getRcordByIDFromElasticSearch(OAI_ESClient.getEsIndex(),
replacedID, this.fields, Strings.EMPTY_ARRAY).getSource());
if (this.jsonObj == null || this.jsonObj.isEmpty()) {
throw new IOException(
"No data could be retrieved from ElasticSearch for ID: " + idInElasticSearchIndex);
}
System.out.println("jsonObject: " + this.jsonObj);
log.debug("jsonObject: " + this.jsonObj);
// Set response header.
HeaderType header = new HeaderType();
......
......@@ -10,9 +10,11 @@ import info.textgrid.middleware.oaipmh.MetadataType;
import info.textgrid.middleware.oaipmh.RecordType;
/**
*
* @author Maximilian Brodhun, SUB Göttingen
* @author Stefan E. Funk, SUB Göttingen
* @version 2021-07-23
* @since 2020-06-13
*/
public class RecordListDelivererDATACITE extends RecordListDelivererAbstract {
private static Log log = LogFactory.getLog(RecordListDelivererDATACITE.class);
......
......@@ -5,7 +5,7 @@
<parent>
<artifactId>oaipmh</artifactId>
<groupId>info.textgrid.middleware</groupId>
<version>3.4.5-SNAPSHOT</version>
<version>3.4.6-SNAPSHOT</version>
</parent>
<groupId>info.textgrid.middleware</groupId>
<artifactId>oaipmh-webapp</artifactId>
......
......@@ -54,7 +54,7 @@ oar.identifierField = pid.value
oar.titleFields = title,edition.source.bibliographicCitation.editionTitle
oar.dateFields = created,issued,lastModified
oar.contributorFields = dataContributor,project
# oar.creatorFields = TODO
oar.creatorFields = TODO
oar.languageFields = edition.language
oar.alternateIdentifierFields = textgridUri
oar.formatFields = format
......
......@@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>info.textgrid.middleware</groupId>
<artifactId>oaipmh</artifactId>
<version>3.4.5-SNAPSHOT</version>
<version>3.4.6-SNAPSHOT</version>
<packaging>pom</packaging>
<name>DARIAHDE :: OAI-PMH DataProvider</name>
<properties>
......
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