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

set spec filter additionally added in xslt

parent 2f496ece
......@@ -32,14 +32,24 @@
<xsl:template match="*" />
<xsl:template match="/">
<xsl:variable name="sets">
<xsl:for-each select="//oai:setSpec" >
<xsl:value-of select="text()"/>
<xsl:text> ; </xsl:text>
<xsl:when test="not(contains($sets, 'hdl_10419_48639 ;'))" >
<xsl:value-of select="error(QName('','filteraway'), 'is not in set hdl_10419_48639')" />
<xsl:element name="bundle">
<xsl:element name="metadata">
<!-- Only datasets of the 'Alle Publikationen von Forscherinnen und Forschern des WZB' set -->
<xsl:if test="/oai:OAI-PMH/oai:GetRecord/oai:record/oai:header/oai:setSpec/text() = 'hdl_10419_48639'">
<xsl:apply-templates select="oai:OAI-PMH/oai:GetRecord/oai:record/oai:metadata/oai_dc:dc" />
<xsl:template match="oai:OAI-PMH/oai:GetRecord/oai:record/oai:metadata/oai_dc:dc">
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