diff --git a/oaipmh-core/src/main/java/info/textgrid/middleware/SetDeliverer.java b/oaipmh-core/src/main/java/info/textgrid/middleware/SetDeliverer.java index 5e22d9bca45d9bd997ca984b38c08ac82f6c2287..3ea0c459a458802cb1559db61aa0275e358c69b2 100644 --- a/oaipmh-core/src/main/java/info/textgrid/middleware/SetDeliverer.java +++ b/oaipmh-core/src/main/java/info/textgrid/middleware/SetDeliverer.java @@ -55,8 +55,9 @@ public class SetDeliverer { */ public ListSetsType setListBuilder() { - String meth = "setListBuilder() > "; - System.out.println(meth + "DARIAH=" + this.dariah + ", TEXTGRID=" + this.textgrid); + // String meth = "setListBuilder() > "; + + // System.out.println(meth + "DARIAH=" + this.dariah + ", TEXTGRID=" + this.textgrid); ListSetsType setList = new ListSetsType(); QueryBuilder aggQuery; @@ -67,18 +68,18 @@ public class SetDeliverer { TextGridMimetypes.DARIAH_COLLECTION); } - System.out.println(meth + "aggQuery: " + aggQuery); + // System.out.println(meth + "aggQuery: " + aggQuery); SearchRequestBuilder request = OAI_ESClient.getOaiESClient() .prepareSearch(OAI_ESClient.getEsIndex()).setTypes(OAI_ESClient.getEsType()) .setQuery(aggQuery).addField(this.formatField).addField(this.identifierField) .addField("project.value").addField("project.id").setSize(100000); - System.out.println(meth + "request: " + request); + // System.out.println(meth + "request: " + request); SearchResponse getRecordListItems = request.execute().actionGet(); - System.out.println(meth + "getRecordListItems:" + getRecordListItems); + // System.out.println(meth + "getRecordListItems:" + getRecordListItems); for (SearchHit hit : getRecordListItems.getHits().getHits()) { if (this.dariah == true && hit.getFields().get(this.identifierField).values().get(0) @@ -86,7 +87,7 @@ public class SetDeliverer { String pid = hit.getFields().get(this.identifierField).values().get(0).toString(); this.identifier.add(pid); - System.out.println(meth + "PID: " + pid); + // System.out.println(meth + "PID: " + pid); } if (this.textgrid == true) { @@ -95,7 +96,7 @@ public class SetDeliverer { String projectSetSpec = projectName.concat(":").concat(projectID); this.setSet.put(projectID, projectName); - System.out.println(meth + "projectID: " + projectSetSpec); + // System.out.println(meth + "projectID: " + projectSetSpec); Iterator it = setSet.entrySet().iterator(); while (it.hasNext()) { diff --git a/oaipmh-core/src/test/java/info/textgrid/middleware/OaiPmhTextgridOnlineTests.java b/oaipmh-core/src/test/java/info/textgrid/middleware/OaiPmhTextgridOnlineTests.java index 0be99966586e6c8838955775ec37c14751c0b559..dc1e3d6be6d318bbb512e4c76c80df78f49ae848 100644 --- a/oaipmh-core/src/test/java/info/textgrid/middleware/OaiPmhTextgridOnlineTests.java +++ b/oaipmh-core/src/test/java/info/textgrid/middleware/OaiPmhTextgridOnlineTests.java @@ -155,7 +155,8 @@ public class OaiPmhTextgridOnlineTests { // Testing for set: Digital Bibliothek. String shouldContainTEXTGRIDLABORG = "<setSpec>project:TGPR-372fe6dc-57f2-6cd4-01b5-2c4bbefcfd3c</setSpec>"; - String shouldContainDEFTEXTGRIDLABORG = "<setSpec>project:</setSpec>"; + String shouldContainDEFTEXTGRIDLABORG = + "<setSpec>project:TGPR-372fe6dc-57f2-6cd4-01b5-2c4bbefcfd3c</setSpec>"; System.out.println(TESTING + "#LISTSETS");