Commit 87a660ca authored by Fischer, Tim's avatar Fischer, Tim
Browse files

Merge branch '132-bundlessourcereference-setspec-erweiterung-absichern'

parents 716ccef8 523a7624
......@@ -60,7 +60,7 @@ public class FeedingContextFactory {
BundleFilter targetRepositoryBundleFilter = getTargetRepositoryBundleFilter(targetRepository);
NextIncrementalHarvestingIntervalStrategy nextFeedingTimeStrategy = getNextIncrementalHarvestingIntervalStrategy(bundlesSourceEntity);
BundlesSourceEntityDataModificationStrategy modStrategy = getBundlesSourceEntityDataModificationStrategy(bundlesSourceEntity);
result = new BundlesStreamSourceFeedingContext(bundlesStreamSource.getReference(), bundlesStreamSource, bundleFilter, metadataTransformer, targetRepository, targetRepositoryBundleFilter, nextFeedingTimeStrategy, modStrategy);
result = new BundlesStreamSourceFeedingContext(bundlesSourceEntity.getReference(), bundlesStreamSource, bundleFilter, metadataTransformer, targetRepository, targetRepositoryBundleFilter, nextFeedingTimeStrategy, modStrategy);
return result;
}
......
......@@ -280,7 +280,7 @@ public class BundlesSourceResource {
final String setSpec = getSetSpec(bundlesSource.getData(), bundlesSource.getType());
if (null != setSpec) {
final String referenceOfBS = bundlesSource.getReference();
if (bundlesSource.getType() == BundlesSourceType.XSLT_OAI_PMH) {
if (bundlesSource.getType() == BundlesSourceType.XSLT_OAI_PMH && !referenceOfBS.contains("___")) {
bundlesSource.setReference(referenceOfBS + "___" + setSpec);
} else {
bundlesSource.setReference(referenceOfBS);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment