Commit 49203262 by Steinberg, Jan

more logging

parent 32d91cd3
......@@ -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,6 +239,7 @@ public class XsltTransformerOaiPmhBundlesStreamSource implements BundlesStreamSo
}
catch (XPathException e) {
LOG.debug("Catched XPathException");
String errorCode = e.getErrorCodeLocalPart();
if (null != errorCode) {
if ("filteraway".equals(errorCode) ) {
......
......@@ -46,14 +46,14 @@
<xsl:text> ; </xsl:text>
</xsl:for-each>
</xsl:variable>
<!--xsl:choose>
<xsl:choose>
<xsl:when test="not(contains($sets, 'ps:Social+Work ;')
or contains($sets, 'ps:Sociology ;')
or contains($sets, 'ps:Culture ;')
or contains($sets, 'ps:Communication ;'))">
<xsl:value-of select="error(QName('','filteraway'), 'is not in defined sets')" />
</xsl:when>
<xsl:otherwise-->
<xsl:otherwise>
<xsl:variable name="ddaReference" select="concat(oai:OAI-PMH/oai:request[@verb='GetRecord']/text(), '@@', oai:OAI-PMH/oai:request[@verb='GetRecord']/@identifier)" />
<xsl:call-template name="new-metadatum">
......@@ -220,8 +220,8 @@
</xsl:when>
</xsl:choose>
<!--/xsl:otherwise>
</xsl:choose-->
</xsl:otherwise>
</xsl:choose>
</xsl:element>
</xsl:element>
</xsl:template>
......
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