Commit 93c88847 authored by Steinberg, Jan's avatar Steinberg, Jan

econstor xsl gets checked for more than one publisher

parent d9ae8c62
......@@ -203,7 +203,8 @@ public class XsltTransformerOaiPmhBundlesStreamSourceTest {
assertTrue( metadata.contains( new SimpleMetadatum("dc.subject.other", "kleinräumige Konzentrationsprozesse") ) );
assertTrue( metadata.contains( new SimpleMetadatum("dc.subject.other", "Wohnstandortentscheidungen") ) );
assertTrue( metadata.contains( new SimpleMetadatum("dc.subject.other", "Small and medium-sized towns") ) );
assertTrue( metadata.contains( new SimpleMetadatum("dc.publisher", "Verlag der ARL") ) );
assertTrue( metadata.contains( new SimpleMetadatum("dc.publisher", "Verlag der ARL - Akademie für Raumforschung und Landesplanung") ) );
assertEquals(1, metadata.stream().filter(m -> m.getKey().equals("dc.publisher") ).count() );
assertTrue( metadata.contains( new SimpleMetadatum("dc.publisher.city", "Hannover") ) );
assertTrue( metadata.contains( new SimpleMetadatum("ssoar.wgl.collection", "true") ) );
assertTrue( metadata.contains( new SimpleMetadatum("dc.description.pubstatus", "1") ) );
......@@ -287,7 +288,8 @@ public class XsltTransformerOaiPmhBundlesStreamSourceTest {
assertTrue( metadata.contains( new SimpleMetadatum("dc.subject.other", "Agenten des Wandels") ) );
assertTrue( metadata.contains( new SimpleMetadatum("dc.subject.other", "Change Agents") ) );
assertTrue( metadata.contains( new SimpleMetadatum("dc.subject.other", "civic energy cooperatives") ) );
assertTrue( metadata.contains( new SimpleMetadatum("dc.publisher", "Verlag der ARL") ) );
assertTrue( metadata.contains( new SimpleMetadatum("dc.publisher", "Verlag der ARL - Akademie für Raumforschung und Landesplanung") ) );
assertEquals(1, metadata.stream().filter(m -> m.getKey().equals("dc.publisher") ).count() );
assertTrue( metadata.contains( new SimpleMetadatum("dc.publisher.city", "Hannover") ) );
assertTrue( metadata.contains( new SimpleMetadatum("ssoar.wgl.collection", "true") ) );
......@@ -357,6 +359,7 @@ public class XsltTransformerOaiPmhBundlesStreamSourceTest {
assertTrue( metadata.contains( new SimpleMetadatum("dc.subject.other", "Raumforschung") ) );
assertTrue( metadata.contains( new SimpleMetadatum("dc.publisher", "Verlag der ARL - Akademie für Raumforschung und Landesplanung") ) );
assertTrue( metadata.contains( new SimpleMetadatum("dc.publisher.city", "Hannover") ) );
assertEquals(1, metadata.stream().filter(m -> m.getKey().equals("dc.publisher") ).count() );
assertTrue( metadata.contains( new SimpleMetadatum("ssoar.wgl.collection", "true") ) );
Set<InputStream> fileSet = bundle.getContents();
......
......@@ -942,11 +942,11 @@
<xsl:with-param name="value" select="'1'"/>
</xsl:call-template>
<xsl:call-template name="new-metadatum">
<!-- xsl:call-template name="new-metadatum">
<xsl:with-param name="key" select="'dc.publisher'"/>
<xsl:with-param name="language" select="''"/>
<xsl:with-param name="value" select="'Verlag der ARL'"/>
</xsl:call-template>
</xsl:call-template -->
<xsl:call-template name="new-metadatum">
<xsl:with-param name="key" select="'internal.status'"/>
......@@ -1376,11 +1376,11 @@
<xsl:with-param name="value" select="'1'"/>
</xsl:call-template>
<xsl:call-template name="new-metadatum">
<!-- xsl:call-template name="new-metadatum">
<xsl:with-param name="key" select="'dc.publisher'"/>
<xsl:with-param name="language" select="''"/>
<xsl:with-param name="value" select="'Verlag der ARL'"/>
</xsl:call-template>
</xsl:call-template -->
<xsl:call-template name="new-metadatum">
<xsl:with-param name="key" select="'internal.status'"/>
......
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