...
 
Commits (3)
......@@ -95,13 +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:if test="($gnd_number != '') and (./parent::name/@type != 'object') and (./parent::name/@type != 'org')">
<xsl:apply-templates select="doc($uri_path)/marc:record" />
</xsl:if>:
<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>
......@@ -147,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']">
......@@ -163,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>
......@@ -177,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>
......
This diff is collapsed.