diff --git a/Backend/services/core/src/main/java/org/edu_sharing/repository/server/importer/OAIPMHLOMImporter.java b/Backend/services/core/src/main/java/org/edu_sharing/repository/server/importer/OAIPMHLOMImporter.java index d82d2ee5d..7366590f2 100644 --- a/Backend/services/core/src/main/java/org/edu_sharing/repository/server/importer/OAIPMHLOMImporter.java +++ b/Backend/services/core/src/main/java/org/edu_sharing/repository/server/importer/OAIPMHLOMImporter.java @@ -133,7 +133,7 @@ public void startImport() throws Throwable{ //take identifiers list cause some of the sets don't work: XML-Verarbeitungsfehler: nicht wohlgeformt String url = this.oai_base_url+"?verb=ListIdentifiers&metadataPrefix="+this.metadataPrefix; - String setUrl = url+"&set="+set; + String setUrl = set.equals("-none-") ? url : url+"&set="+set; if(this.from != null && this.until != null){ String fromString = OAIConst.DATE_FORMAT.format(this.from); String untilString = OAIConst.DATE_FORMAT.format(this.until); diff --git a/Backend/services/core/src/main/java/org/edu_sharing/repository/server/importer/RecordHandlerDublinCoreDMG.java b/Backend/services/core/src/main/java/org/edu_sharing/repository/server/importer/RecordHandlerDublinCoreDMG.java index 3287ecf64..5e5e5eaca 100644 --- a/Backend/services/core/src/main/java/org/edu_sharing/repository/server/importer/RecordHandlerDublinCoreDMG.java +++ b/Backend/services/core/src/main/java/org/edu_sharing/repository/server/importer/RecordHandlerDublinCoreDMG.java @@ -77,8 +77,13 @@ public void handleRecord(Node nodeRecord, String cursor, String set) throws Thro String lomCatalogId = null; - if(replicationId != null && replicationId.split(":").length == 3){ - lomCatalogId = replicationId.substring(0,replicationId.lastIndexOf(":")); + if(replicationId != null){ + if(replicationId.split(":").length == 3) { + lomCatalogId = replicationId.substring(0, replicationId.lastIndexOf(":")); + } + if(replicationId.split(":").length == 2){ + lomCatalogId = replicationId.split(":")[0]; + } } HashMap generalIdentifierToSafeMap = new HashMap();