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

giga test cases

parent a4167e47
...@@ -69,6 +69,7 @@ public class XmlXsltBundlesStreamSource implements BundlesStreamSource { ...@@ -69,6 +69,7 @@ public class XmlXsltBundlesStreamSource implements BundlesStreamSource {
JAXBContext jaxbContext = JAXBContext.newInstance(XmlBundles.class); JAXBContext jaxbContext = JAXBContext.newInstance(XmlBundles.class);
Unmarshaller unmarshaller = jaxbContext.createUnmarshaller(); Unmarshaller unmarshaller = jaxbContext.createUnmarshaller();
// LOG.info("Konvertiert: {}", xsltConvertedXmlOutput);
InputStream convertedXmlInputStream = new ByteArrayInputStream(xsltConvertedXmlOutput.getBytes(StandardCharsets.UTF_8) ); InputStream convertedXmlInputStream = new ByteArrayInputStream(xsltConvertedXmlOutput.getBytes(StandardCharsets.UTF_8) );
XmlBundles xmlBundles = (XmlBundles) unmarshaller.unmarshal(convertedXmlInputStream); XmlBundles xmlBundles = (XmlBundles) unmarshaller.unmarshal(convertedXmlInputStream);
Stream<Bundle> bundlesStream = xmlBundles.getBundlesStream(); Stream<Bundle> bundlesStream = xmlBundles.getBundlesStream();
......
...@@ -70,7 +70,7 @@ ...@@ -70,7 +70,7 @@
<permissions> <permissions>
<copyright-statement>© 2018 SAGE Publications Ltd</copyright-statement> <copyright-statement>© 2018 SAGE Publications Ltd</copyright-statement>
<copyright-year>2018</copyright-year> <copyright-year>2018</copyright-year>
<copyright-holder content-type="sage">SAGE Publications Ltd, or GIGA German Institute of Global and Area Studies, unless otherwise noted. Manuscript content on this site is licensed under Creative Commons Licenses</copyright-holder> <copyright-holder content-type="sage">SAGE Publications Ltd, or GIGA German Institute of Global and Area Studies, unless otherwise noted. Manuscript content on this site is licensed under Creative Commons Licenses</copyright-holder>
<license license-type="creative-commons" xlink:href="https://creativecommons.org/licenses/by-nd/3.0/" xlink:type="simple"> <license license-type="creative-commons" xlink:href="https://creativecommons.org/licenses/by-nd/3.0/" xlink:type="simple">
<license-p>This article is distributed under the terms of the Creative Commons <license-p>This article is distributed under the terms of the Creative Commons
Attribution-NoDerivs 3.0 License (<ext-link ext-link-type="uri" xlink:href="https://www.creativecommons.org/licenses/by-nd/3.0/">https://www.creativecommons.org/licenses/by-nd/3.0/</ext-link>) which Attribution-NoDerivs 3.0 License (<ext-link ext-link-type="uri" xlink:href="https://www.creativecommons.org/licenses/by-nd/3.0/">https://www.creativecommons.org/licenses/by-nd/3.0/</ext-link>) which
......
This diff is collapsed.
This diff is collapsed.
...@@ -35,17 +35,21 @@ ...@@ -35,17 +35,21 @@
<!-- override default template --> <!-- override default template -->
<xsl:template match="*" /> <xsl:template match="*" />
<xsl:param name="bundlesSourceReference"/>
<xsl:template match="/article"> <xsl:template match="/article">
<xsl:element name="bundles"> <xsl:element name="bundles">
<xsl:element name="reference">
<xsl:value-of select="$bundlesSourceReference" />
</xsl:element>
<xsl:element name="bundle"> <xsl:element name="bundle">
<xsl:element name="metadata"> <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:call-template name="new-metadatum">
<xsl:with-param name="key" select="'internal.dda.reference'"/> <xsl:with-param name="key" select="'internal.dda.reference'"/>
<xsl:with-param name="language" select="''"/> <xsl:with-param name="language" select="''"/>
<xsl:with-param name="value" select="$ddaReference"/> <xsl:with-param name="value" select="$ddaReference"/>
</xsl:call-template> </xsl:call-template>
<xsl:apply-templates select="front/journal-meta" /> <xsl:apply-templates select="front/journal-meta" />
<xsl:apply-templates select="front/article-meta" /> <xsl:apply-templates select="front/article-meta" />
...@@ -114,16 +118,6 @@ ...@@ -114,16 +118,6 @@
</xsl:choose> </xsl:choose>
</xsl:element> </xsl:element>
</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: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