diff --git a/oaipmh-core/pom.xml b/oaipmh-core/pom.xml index 4727958ee3a59787896993127519af7a0cd42d06..050c548574c92a55498f509bc04d85f5e92ee500 100644 --- a/oaipmh-core/pom.xml +++ b/oaipmh-core/pom.xml @@ -4,11 +4,11 @@ <parent> <artifactId>oaipmh</artifactId> <groupId>info.textgrid.middleware</groupId> - <version>2.1.5-SNAPSHOT</version> + <version>2.1.6-SNAPSHOT</version> </parent> <groupId>info.textgrid.middleware</groupId> <artifactId>oaipmh-core</artifactId> - <version>2.1.5-SNAPSHOT</version> + <version>2.1.6-SNAPSHOT</version> <packaging>jar</packaging> <name>DARIAHDE :: OAI-PMH :: Core</name> <url>http://maven.apache.org</url> diff --git a/oaipmh-core/src/main/java/info/textgrid/middleware/DARIAHConstants.java b/oaipmh-core/src/main/java/info/textgrid/middleware/DARIAHConstants.java index 739095784372a4ef9ec6e1a77c570f1cbe5da73f..cd1abca4389642a105ca16b7136a7532041e5603 100644 --- a/oaipmh-core/src/main/java/info/textgrid/middleware/DARIAHConstants.java +++ b/oaipmh-core/src/main/java/info/textgrid/middleware/DARIAHConstants.java @@ -19,7 +19,7 @@ public final class DARIAHConstants { // public static boolean furtherElements = true; public static final String ITEM_IDENTIFIER_PREFIX = "hdl:"; - public static final String COLLECTIONREGISTRY_PREFIX = "dariah:collection"; + public static final String COLLECTIONREGISTRY_PREFIX = "dariah:collection:"; public static final String COLLECTION_MIMETYPE = "text/tg.collection+tg.aggregation+xml"; public static final List<String> TEXTGRID_REP_ADMIN_CONTACT = Arrays.asList("textgrid-support@gwdg.de"); 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 c03a505363afdf13b7d23ce80d9f33ce739bd800..a270bd1d848d214974047d7a4c1cb998e315b91f 100644 --- a/oaipmh-core/src/main/java/info/textgrid/middleware/RecordListDeliverer.java +++ b/oaipmh-core/src/main/java/info/textgrid/middleware/RecordListDeliverer.java @@ -162,12 +162,12 @@ public class RecordListDeliverer { .setTypes(this.oaiEsClient.getEsType()).addFields(this.fields) .setQuery(query).setSize(1000); - System.out.println("GetRecprdList: " + getRecordList); + //System.out.println("GetRecprdList: " + getRecordList); SearchResponse getRecordListItems = getRecordList.execute().actionGet(); if (getRecordListItems != null && getRecordListItems.getHits().totalHits() > 0) { setFoundItems(true); - System.out.println("AMOUNT: " + getRecordListItems.getHits().totalHits()); + //System.out.println("AMOUNT: " + getRecordListItems.getHits().totalHits()); for (SearchHit hit : getRecordListItems.getHits().getHits()) { // Only if we have a search response AND a hit field map... diff --git a/oaipmh-core/src/test/java/info/textgrid/middleware/OaiPmhTest.java b/oaipmh-core/src/test/java/info/textgrid/middleware/OaiPmhTest.java index aef9a89c98e664af45ca2fb8bc969938ae5acb57..9c5672cf3c19104ed89ee8728f8dfc9223e2816a 100644 --- a/oaipmh-core/src/test/java/info/textgrid/middleware/OaiPmhTest.java +++ b/oaipmh-core/src/test/java/info/textgrid/middleware/OaiPmhTest.java @@ -381,7 +381,7 @@ public class OaiPmhTest { @Test @Ignore public void testListRecordsDariah() throws ParseException { - + this.recordList.setContributor(DARIAHConstants.CONTRIBUTOR_LIST); this.recordList.setCoverage(DARIAHConstants.COVERAGE_LIST); this.recordList.setCreators(DARIAHConstants.CREATOR_LIST); @@ -405,13 +405,12 @@ public class OaiPmhTest { //this.recordList.setFormatToFilter("text/tg.collection+tg.aggregation+xml"); this.recordList.setModifiedField(DARIAHConstants.MODIFIED_FIELD); // this.recordList.setFormatToFilter("image/png"); - this.recordList - .setRelationToFurtherMetadataObject("descriptiveMetadata.dc:relation"); + this.recordList.setRelationToFurtherMetadataObject("descriptiveMetadata.dc:relation"); // cregId:hdl:6607/0000-0000-26A5-B // dariah:collection:6607/0000-0000-26A5-B JAXBElement<OAIPMHType> r = this.request.getRequest("ListRecords", "", - "oai_dc", "11022/0000-0000-8FA0-A", "", "", ""); + "oai_dc", "", "", "", ""); JAXB.marshal(r, System.out); System.out.println("-----------------------------------\n"); } @@ -468,7 +467,7 @@ public class OaiPmhTest { this.setListDARIAH.setIdentifierField(DARIAHConstants.IDENTIFIER); this.setListDARIAH.setRepositoryObjectURIPrefix(DARIAHConstants.ITEM_IDENTIFIER_PREFIX); this.setListDARIAH.setSpecField("descriptiveMetadata.dc:title"); - this.setListDARIAH.setSpecFieldPrefix(DARIAHConstants.ITEM_IDENTIFIER_PREFIX); + this.setListDARIAH.setSpecFieldPrefix(DARIAHConstants.COLLECTIONREGISTRY_PREFIX); JAXBElement<OAIPMHType> r = this.request.getRequest("ListSets", "", "", "", "", "", ""); JAXB.marshal(r, System.out); diff --git a/oaipmh-webapp/pom.xml b/oaipmh-webapp/pom.xml index e145852e2e2e5d7a0e455642932c1201ba5724fc..b90a54c0e6340cb8e388f10b1bed925584358a6e 100644 --- a/oaipmh-webapp/pom.xml +++ b/oaipmh-webapp/pom.xml @@ -4,12 +4,12 @@ <parent> <artifactId>oaipmh</artifactId> <groupId>info.textgrid.middleware</groupId> - <version>2.1.5-SNAPSHOT</version> + <version>2.1.6-SNAPSHOT</version> </parent> <groupId>info.textgrid.middleware</groupId> <artifactId>oaipmh-webapp</artifactId> <packaging>war</packaging> - <version>2.1.5-SNAPSHOT</version> + <version>2.1.6-SNAPSHOT</version> <name>DARIAHDE :: OAI-PMH :: Webapp</name> <url>http://maven.apache.org</url> <profiles> diff --git a/pom.xml b/pom.xml index a0c31a57cd17d1c02443d933f5473b6062a81fff..13a5fccde14b4e163a6546a7df8ca5f80a09cb89 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ <modelVersion>4.0.0</modelVersion> <groupId>info.textgrid.middleware</groupId> <artifactId>oaipmh</artifactId> - <version>2.1.5-SNAPSHOT</version> + <version>2.1.6-SNAPSHOT</version> <packaging>pom</packaging> <name>DARIAHDE :: OAI-PMH</name> <properties>