Skip to content

Commit

Permalink
Updates for new records.
Browse files Browse the repository at this point in the history
  • Loading branch information
timathom authored and timathom committed Jan 21, 2014
1 parent 6735a46 commit 41fc9a3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions save_new.php
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@
</frontmatter>
<archdesc audience="external" relatedencoding="MARC21" level="otherlevel">
<did>
<origination label="Creator" encodinganalog="245$c">
<origination label="Creator" encodinganalog="245$c" id="' . $ramp_id . '">
<persname encodinganalog="100">' . $noPartName . '</persname>
<persname encodinganalog="100_1">' . $surname . '</persname>
<persname encodinganalog="100_0">' . $forename . '</persname>
Expand Down Expand Up @@ -635,7 +635,7 @@
</frontmatter>
<archdesc audience="external" relatedencoding="MARC21" level="otherlevel">
<did>
<origination label="Creator" encodinganalog="245$c">
<origination label="Creator" encodinganalog="245$c" id="' . $ramp_id . '">
<corpname encodinganalog="110">' . $corpName . '</corpname>
</origination>
<note type="creation"><p>Record created in RAMP.</p></note>
Expand Down Expand Up @@ -719,7 +719,7 @@
</frontmatter>
<archdesc audience="external" relatedencoding="MARC21" level="otherlevel">
<did>
<origination label="Creator" encodinganalog="245$c">
<origination label="Creator" encodinganalog="245$c" id="' . $ramp_id . '">
<famname encodinganalog="100_3">' . $famName . '</famname>
</origination>
<note type="creation"><p>Record created in RAMP.</p></note>
Expand Down
4 changes: 2 additions & 2 deletions xsl/ead2eac.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@
<xsl:if test="ead:ead/ead:archdesc/ead:did/ead:origination[1]/child::node()[1][local-name()='famname']">
<entityType>family</entityType>
</xsl:if>
<nameEntry scriptCode="Latn" xml:lang="en" xmlns="urn:isbn:1-931666-33-4">
<nameEntry scriptCode="Latn" xml:lang="en">
<xsl:choose>
<!-- For Archon-exported EADs, use the value of the @normal attribute. -->
<xsl:when test="ead:ead/ead:archdesc/ead:did/ead:origination/child::node()[1]/@normal">
Expand Down Expand Up @@ -1272,7 +1272,7 @@
<xsl:template name="tRelations">
<relations xmlns="urn:isbn:1-931666-33-4">
<!-- Turn associated creators into cpfRelation elements. -->
<xsl:variable name="vFirstNode" select="ead:ead/ead:archdesc/ead:did/ead:origination/child::node()[1]" />
<xsl:variable name="vFirstNode" select="ead:ead/ead:archdesc/ead:did/ead:origination[not(contains(@id,'RAMP'))]/child::node()[1]" />
<xsl:for-each select="$vFirstNode">
<xsl:if test="following-sibling::node()">
<xsl:for-each select="following-sibling::node()[not(@encodinganalog='100_0') and not(@encodinganalog='100_1')]">
Expand Down

0 comments on commit 41fc9a3

Please sign in to comment.