Commit 094dc2af authored by Silvia Witzig's avatar Silvia Witzig
Browse files

improve callnumber

parent 6e7ceb41
......@@ -115,20 +115,24 @@
<xsl:variable name="typeLabel" select="@typeLabel"/>
<xsl:variable name="idprefix" select="substring(preceding::identifier[@typeLabel='Original']/ns2:identifier, 1, 3)"/>
<xsl:element name="identifier{$typeLabel}">
<xsl:if test="$typeLabel = 'CallNumber'">
<xsl:choose>
<xsl:when test="$idprefix = 'SFW'">
<xsl:text>Schweizerisches Bundesarchiv: </xsl:text>
</xsl:when>
<xsl:when test="$idprefix = 'CJS'">
<xsl:text>Archives fédérales suisses : </xsl:text>
</xsl:when>
<xsl:when test="$idprefix = 'CGS'">
<xsl:text>Archivio federale svizzero: </xsl:text>
</xsl:when>
</xsl:choose>
</xsl:if>
<xsl:value-of select="child::ns2:identifier"/>
<xsl:choose>
<xsl:when test="$typeLabel = 'CallNumber'">
<xsl:choose>
<xsl:when test="$idprefix = 'SFW'">
<xsl:value-of select="concat('Schweizerisches Bundesarchiv: ', child::ns2:identifier)"/>
</xsl:when>
<xsl:when test="$idprefix = 'CJS'">
<xsl:value-of select="concat('Archives fédérales suisses : ', child::ns2:identifier)"/>
</xsl:when>
<xsl:when test="$idprefix = 'CGS'">
<xsl:value-of select="concat('Archivio federale svizzero: ', child::ns2:identifier)"/>
</xsl:when>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="child::ns2:identifier"/>
</xsl:otherwise>
</xsl:choose>
</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