Commit ba9f0aea authored by Jens Kupferschmidt's avatar Jens Kupferschmidt
Browse files

add gender for import from mach21 filed 375

parent 17dad935
......@@ -356,6 +356,21 @@
</xsl:for-each>
</def.professionIdentifier>
</xsl:if>
<!-- gender -->
<xsl:if test="/marcxml:record/marcxml:datafield[@tag='375']/marcxml:subfield[@code='a']">
<def.gender class="MCRMetaBoolean" hertable="false" notinherit="true">
<gender inherited="0">
<xsl:choose>
<xsl:when test="/marcxml:record/marcxml:datafield[@tag='375']/marcxml:subfield[@code='a']/text() = '1'">
<xsl:text>true</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:text>false</xsl:text>
</xsl:otherwise>
</xsl:choose>
</gender>
</def.gender>
</xsl:if>
<!-- xml of gnd as marc21 -->
<def.gndxml class="MCRMetaXML" heritable="false" notinherit="true">
<gndxml inherited="0">
......
......@@ -110,6 +110,21 @@
<xsl:value-of select="$identifier"/>
</identifier>
</def.identifier>
<!-- gender -->
<xsl:if test="/marcxml:record/marcxml:datafield[@tag='375']/marcxml:subfield[@code='a']">
<def.gender class="MCRMetaBoolean" hertable="false" notinherit="true">
<gender inherited="0">
<xsl:choose>
<xsl:when test="/marcxml:record/marcxml:datafield[@tag='375']/marcxml:subfield[@code='a']/text() = '1'">
<xsl:text>true</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:text>false</xsl:text>
</xsl:otherwise>
</xsl:choose>
</gender>
</def.gender>
</xsl:if>
<!-- xml of lcnaf as marc21 -->
<def.lcnafxml class="MCRMetaXML" heritable="false" notinherit="true">
<lcnafxml inherited="0">
......
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