Commit 611f2078 authored by Steinberg, Jan's avatar Steinberg, Jan
Browse files

adding check if setspec already exists

parent 1d6ef34c
......@@ -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