diff --git a/oaipmh-core/src/main/java/info/textgrid/middleware/RecordDelivererDC.java b/oaipmh-core/src/main/java/info/textgrid/middleware/RecordDelivererDC.java index 4abf198a372c5ff32e1191faf39a3d433fd69f14..a93bf2caacfc4ce5c8e52d07c2cca99a3737263d 100644 --- a/oaipmh-core/src/main/java/info/textgrid/middleware/RecordDelivererDC.java +++ b/oaipmh-core/src/main/java/info/textgrid/middleware/RecordDelivererDC.java @@ -134,9 +134,7 @@ public class RecordDelivererDC extends RecordDelivererAbstract { } String setSpec = DublinCoreFieldLoader.fillList(esResultObject, DARIAHConstants.IDENTIFIER_LIST).get(0); - setRecordHeader(OAIPMHUtilities - .convertDateFormat(dateOfCreation).toString(), identifier, record, dublinCoreBuilder, - setSpec); + setRecordHeader(dateOfCreation, identifier, record, dublinCoreBuilder, setSpec); } if (this.textgrid == true diff --git a/oaipmh-core/src/main/java/info/textgrid/middleware/RecordListDelivererDC.java b/oaipmh-core/src/main/java/info/textgrid/middleware/RecordListDelivererDC.java index 9e181695a306082a62eff8715a24b93d863fadf7..372cac7e2e2f18deafec184d7869126b9fc4309a 100644 --- a/oaipmh-core/src/main/java/info/textgrid/middleware/RecordListDelivererDC.java +++ b/oaipmh-core/src/main/java/info/textgrid/middleware/RecordListDelivererDC.java @@ -220,9 +220,11 @@ public class RecordListDelivererDC extends RecordListDelivererAbstract { log.debug(e); } - + + // ES6 JSONObject json = new JSONObject(hit.getSourceAsMap()); this.modifiedValue = OAIPMHUtilities.fieldLoader(json, this.modifiedField); + // OLD //this.modifiedValue = hit.getSourceAsMap().get(this.modifiedField).toString();