Loading src/main/java/org/gesis/dda/publishing/domain/impl/XsltTransformerOaiPmhBundlesStreamSource.java +2 −0 Original line number Diff line number Diff line Loading @@ -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(); Loading Loading @@ -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) ) { Loading src/test/resources/xslt/pos-oai_marc-2-xmlbundle.xslt +4 −4 Original line number Diff line number Diff line Loading @@ -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"> Loading Loading @@ -220,8 +220,8 @@ </xsl:when> </xsl:choose> <!--/xsl:otherwise> </xsl:choose--> </xsl:otherwise> </xsl:choose> </xsl:element> </xsl:element> </xsl:template> Loading Loading
src/main/java/org/gesis/dda/publishing/domain/impl/XsltTransformerOaiPmhBundlesStreamSource.java +2 −0 Original line number Diff line number Diff line Loading @@ -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(); Loading Loading @@ -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) ) { Loading
src/test/resources/xslt/pos-oai_marc-2-xmlbundle.xslt +4 −4 Original line number Diff line number Diff line Loading @@ -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"> Loading Loading @@ -220,8 +220,8 @@ </xsl:when> </xsl:choose> <!--/xsl:otherwise> </xsl:choose--> </xsl:otherwise> </xsl:choose> </xsl:element> </xsl:element> </xsl:template> Loading