Commit 49203262 authored by Steinberg, Jan's avatar Steinberg, Jan
Browse files

more logging

parent 32d91cd3
...@@ -169,6 +169,7 @@ public class XsltTransformerOaiPmhBundlesStreamSource implements BundlesStreamSo ...@@ -169,6 +169,7 @@ public class XsltTransformerOaiPmhBundlesStreamSource implements BundlesStreamSo
} }
public Bundle getBundle(String oaiPmhIdentifier) { public Bundle getBundle(String oaiPmhIdentifier) {
LOG.debug("GetBundle - {}", oaiPmhIdentifier);
//Bundle bundleResult = new AutonomouslyContentResolvingBundle(ImmutableSet.of() ); //Bundle bundleResult = new AutonomouslyContentResolvingBundle(ImmutableSet.of() );
Set<Metadatum> bundleMetadata = new HashSet<>(); Set<Metadatum> bundleMetadata = new HashSet<>();
Set<String> metadataPrefixes = metadataPrefix2XsltMap.keySet(); Set<String> metadataPrefixes = metadataPrefix2XsltMap.keySet();
...@@ -238,6 +239,7 @@ public class XsltTransformerOaiPmhBundlesStreamSource implements BundlesStreamSo ...@@ -238,6 +239,7 @@ public class XsltTransformerOaiPmhBundlesStreamSource implements BundlesStreamSo
} }
catch (XPathException e) { catch (XPathException e) {
LOG.debug("Catched XPathException");
String errorCode = e.getErrorCodeLocalPart(); String errorCode = e.getErrorCodeLocalPart();
if (null != errorCode) { if (null != errorCode) {
if ("filteraway".equals(errorCode) ) { if ("filteraway".equals(errorCode) ) {
......
...@@ -46,14 +46,14 @@ ...@@ -46,14 +46,14 @@
<xsl:text> ; </xsl:text> <xsl:text> ; </xsl:text>
</xsl:for-each> </xsl:for-each>
</xsl:variable> </xsl:variable>
<!--xsl:choose> <xsl:choose>
<xsl:when test="not(contains($sets, 'ps:Social+Work ;') <xsl:when test="not(contains($sets, 'ps:Social+Work ;')
or contains($sets, 'ps:Sociology ;') or contains($sets, 'ps:Sociology ;')
or contains($sets, 'ps:Culture ;') or contains($sets, 'ps:Culture ;')
or contains($sets, 'ps:Communication ;'))"> or contains($sets, 'ps:Communication ;'))">
<xsl:value-of select="error(QName('','filteraway'), 'is not in defined sets')" /> <xsl:value-of select="error(QName('','filteraway'), 'is not in defined sets')" />
</xsl:when> </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: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"> <xsl:call-template name="new-metadatum">
...@@ -220,8 +220,8 @@ ...@@ -220,8 +220,8 @@
</xsl:when> </xsl:when>
</xsl:choose> </xsl:choose>
<!--/xsl:otherwise> </xsl:otherwise>
</xsl:choose--> </xsl:choose>
</xsl:element> </xsl:element>
</xsl:element> </xsl:element>
</xsl:template> </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