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

more logging

parent 32d91cd3
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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) ) {
+4 −4
Original line number Diff line number Diff line
@@ -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>