Commit f1c04891 by Steinberg, Jan

set spec filter additionally added in xslt

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