Commit da78cca9 authored by Steinberg, Jan's avatar Steinberg, Jan

giga test cases

parent a4167e47
......@@ -69,6 +69,7 @@ public class XmlXsltBundlesStreamSource implements BundlesStreamSource {
JAXBContext jaxbContext = JAXBContext.newInstance(XmlBundles.class);
Unmarshaller unmarshaller = jaxbContext.createUnmarshaller();
// LOG.info("Konvertiert: {}", xsltConvertedXmlOutput);
InputStream convertedXmlInputStream = new ByteArrayInputStream(xsltConvertedXmlOutput.getBytes(StandardCharsets.UTF_8) );
XmlBundles xmlBundles = (XmlBundles) unmarshaller.unmarshal(convertedXmlInputStream);
Stream<Bundle> bundlesStream = xmlBundles.getBundlesStream();
......
This diff is collapsed.
This diff is collapsed.
......@@ -35,17 +35,21 @@
<!-- override default template -->
<xsl:template match="*" />
<xsl:param name="bundlesSourceReference"/>
<xsl:template match="/article">
<xsl:element name="bundles">
<xsl:element name="reference">
<xsl:value-of select="$bundlesSourceReference" />
</xsl:element>
<xsl:element name="bundle">
<xsl:element name="metadata">
<xsl:variable name="ddaReference" select="concat(front/journal-meta/journal-id[@journal-id-type='publisher-id'], '@@', front/article-meta/article-id[@pub-id-type='publisher-id'])" />
<xsl:variable name="ddaReference" select="concat($bundlesSourceReference, '@@', front/article-meta/article-id[@pub-id-type='publisher-id'])" />
<xsl:call-template name="new-metadatum">
<xsl:with-param name="key" select="'internal.dda.reference'"/>
<xsl:with-param name="language" select="''"/>
<xsl:with-param name="value" select="$ddaReference"/>
</xsl:call-template>
<xsl:apply-templates select="front/journal-meta" />
<xsl:apply-templates select="front/article-meta" />
......@@ -114,16 +118,6 @@
</xsl:choose>
</xsl:element>
</xsl:element>
<xsl:element name="bundle">
<xsl:element name="metadata">
<xsl:variable name="ddaReference" select="concat(front/journal-meta/journal-id[@journal-id-type='publisher-id'], '@@', front/article-meta/article-id[@pub-id-type='publisher-id'])" />
<xsl:call-template name="new-metadatum">
<xsl:with-param name="key" select="'internal.dda.reference'"/>
<xsl:with-param name="language" select="''"/>
<xsl:with-param name="value" select="$ddaReference"/>
</xsl:call-template>
</xsl:element>
</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