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

Looking for fields definition

parent f8f5857d
No related branches found
No related tags found
No related merge requests found
......@@ -21,6 +21,7 @@ import info.textgrid.middleware.oaipmh.HeaderType;
import info.textgrid.middleware.oaipmh.OAIPMHtype;
import info.textgrid.middleware.oaipmh.ObjectFactory;
import info.textgrid.middleware.oaipmh.OpenaireDescriptionType;
import info.textgrid.middleware.oaipmh.RecordType;
import info.textgrid.middleware.oaipmh.RelatedIdentifierType;
import info.textgrid.middleware.oaipmh.RelationType;
import info.textgrid.middleware.oaipmh.Resource;
......@@ -110,6 +111,8 @@ public class RecordDelivererDATACITE extends RecordDelivererAbstract {
System.out.println("idInElasticSearchIndex: " + idInElasticSearchIndex);
GetRecordType getRecordType = new GetRecordType();
System.out.println(" ## fields (getRecordById): ");
if (this.fields != null) {
for (int i = 0; i < this.fields.length; i++) {
......@@ -147,7 +150,9 @@ public class RecordDelivererDATACITE extends RecordDelivererAbstract {
header.setIdentifier(idInElasticSearchIndex);
}
return OAIPMHUtilities.getRecordType(this.setOpenAireRecord(), header);
getRecordType = OAIPMHUtilities.getRecordType(this.setOpenAireRecord(), header);
return getRecordType;
}
/**
......@@ -162,6 +167,7 @@ public class RecordDelivererDATACITE extends RecordDelivererAbstract {
* @throws DatatypeConfigurationException
* @throws IOException
*/
@Deprecated
public JAXBElement<OAIPMHtype> getRecord(String idInElasticSearchIndex)
throws ParseException, JAXBException, DatatypeConfigurationException, IOException {
......@@ -202,7 +208,7 @@ public class RecordDelivererDATACITE extends RecordDelivererAbstract {
}
/**
* Adding the open aire record fields to the openaire record object
* Adding the openaire record fields to the openaire record object
*
* @return
* @throws ParseException
......
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