Commit 8e31d63d by Steinberg, Jan

Merge branch '94-path-of-science-pos-einrichten'

parents aa5c21ca 39384519
......@@ -169,6 +169,7 @@ public class XsltTransformerOaiPmhBundlesStreamSource implements BundlesStreamSo
}
public Bundle getBundle(String oaiPmhIdentifier) {
LOG.debug("GetBundle - {}", oaiPmhIdentifier);
//Bundle bundleResult = new AutonomouslyContentResolvingBundle(ImmutableSet.of() );
Set<Metadatum> bundleMetadata = new HashSet<>();
Set<String> metadataPrefixes = metadataPrefix2XsltMap.keySet();
......@@ -238,13 +239,15 @@ public class XsltTransformerOaiPmhBundlesStreamSource implements BundlesStreamSo
}
catch (XPathException e) {
LOG.debug("Catched XPathException");
String errorCode = e.getErrorCodeLocalPart();
if (null != errorCode) {
if ("filteraway".equals(errorCode) ) {
LOG.debug("1- filtering away oaiPmhIdentifier={}", oaiPmhIdentifier);
LOG.debug("Error detail: {}", e.getCause().getLocalizedMessage());
LOG.info("1- filtering away oaiPmhIdentifier={}", oaiPmhIdentifier);
LOG.info("Error detail: {}", e.getCause().getLocalizedMessage());
resultBundle = null;
break;
// test if this break is really necessary, taken out. STJ
// break;
}
else {
LOG.warn("2- fatalError. Filtering away oaiPmhIdentifier=" + oaiPmhIdentifier, e);
......
Markdown is supported
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