Commit 0cfc695a authored by bettin5's avatar bettin5
Browse files

check if there is a subfield for alt names

parent 8ea1a38f
......@@ -95,17 +95,14 @@ Refer to comments in the code to understand the used algorithm.
<xsl:variable name="gnd_number">
<xsl:value-of select="normalize-space(substring-after(., 'gnd:'))"/>
</xsl:variable>
<xsl:variable name="uri_path">
<xsl:value-of select="concat('https://d-nb.info/gnd/', $gnd_number, '/about/marcxml')"/>
</xsl:variable>
<xsl:choose>
<xsl:when test="doc-available($uri_path)">
<xsl:apply-templates select="doc($uri_path)/marc:record" />
</xsl:when>
</xsl:choose>
</doc>
</xsl:if>
</xsl:template>
......@@ -151,8 +148,16 @@ Refer to comments in the code to understand the used algorithm.
<xsl:for-each select="marc:datafield[@tag='410']">
<field name="alternatively_name">
<xsl:value-of select="marc:subfield[@code='a']"/>
<xsl:text> </xsl:text>
<xsl:value-of select="marc:subfield[@code='b']"/>
<xsl:choose>
<xsl:when test="marc:subfield[@code='b']">
<xsl:text> </xsl:text>
<xsl:value-of select="marc:subfield[@code='b']"/>
</xsl:when>
<xsl:when test="marc:subfield[@code='g']">
<xsl:text> </xsl:text>
<xsl:value-of select="marc:subfield[@code='g']"/>
</xsl:when>
</xsl:choose>
</field>
</xsl:for-each>
<xsl:for-each select="marc:datafield[@tag='430']">
......@@ -167,8 +172,7 @@ Refer to comments in the code to understand the used algorithm.
<xsl:value-of select="marc:subfield[@code='a']"/>
</field>
</xsl:for-each>
<xsl:for-each select="marc:datafield[@tag='034']">
<xsl:for-each select="marc:datafield[@tag='034']">
<field name="west_cordinate">
<xsl:value-of select="marc:subfield[@code='e']"/>
</field>
......@@ -181,7 +185,6 @@ Refer to comments in the code to understand the used algorithm.
<field name="south_cordinate">
<xsl:value-of select="marc:subfield[@code='g']"/>
</field>
</xsl:for-each>
</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