Skip to content

Commit

Permalink
Update eac2wiki.xsl.
Browse files Browse the repository at this point in the history
  • Loading branch information
timathom authored and timathom committed Mar 5, 2014
1 parent 01b407a commit 8f09a8d
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions xsl/eac2wiki.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@
<xsl:text>&#10;</xsl:text>
</xsl:if>
<xsl:for-each select="$pBiogHist/eac:p[.!='']">
<xsl:apply-templates/>
<xsl:apply-templates select="."/>
<xsl:text>&lt;ref name=RAMP_1/&gt;</xsl:text>
<xsl:if test="following-sibling::*[1][self::eac:list]">
<xsl:text>&#10;</xsl:text>
Expand Down Expand Up @@ -272,7 +272,7 @@
<xsl:text>&#10;</xsl:text>
</xsl:if>
<xsl:for-each select="$pBiogHist/eac:p[.!='']">
<xsl:apply-templates/>
<xsl:apply-templates select="."/>
<xsl:text>&lt;ref name=RAMP_1/&gt;</xsl:text>
<xsl:if test="following-sibling::*[1][self::eac:list]">
<xsl:text>&#10;</xsl:text>
Expand Down Expand Up @@ -1196,7 +1196,7 @@
<xsl:text>&#10;</xsl:text>
</xsl:when>
<!-- Forward to Libraries template and link to finding aid. -->
<xsl:when test="contains(eac:eac-cpf/eac:control/eac:sources/eac:source/@xlink:href,'loc.gov')">
<xsl:when test="contains(eac:eac-cpf/eac:control/eac:sources/eac:source/@xlink:href,'loc.mss')">
<xsl:text>{{Library resources box</xsl:text>
<xsl:text>&#10;</xsl:text>
<xsl:text>|onlinebooks=yes</xsl:text>
Expand All @@ -1218,12 +1218,14 @@
</xsl:call-template>
<xsl:text>}}</xsl:text>
<xsl:text>&#10;</xsl:text>
<!--
<xsl:text>* [</xsl:text>
<xsl:value-of select="eac:eac-cpf/eac:control/eac:sources/eac:source/@xlink:href"/>
<xsl:text> </xsl:text>
<xsl:value-of select="eac:eac-cpf/eac:control/eac:sources/eac:source/eac:sourceEntry"/>
<xsl:text>] at the [http://www.loc.gov/rr/mss/ Library of Congress Manuscripts Division].</xsl:text>
<xsl:text>&#10;</xsl:text>
<xsl:text>&#10;</xsl:text>
-->
</xsl:when>
</xsl:choose>
<xsl:if test="eac:eac-cpf/eac:control/eac:otherRecordId[@localType='WCI']">
Expand Down Expand Up @@ -1312,7 +1314,7 @@
<xsl:if test="../../../eac:cpfDescription/eac:relations/eac:resourceRelation/eac:objectXMLWrap/ead:archdesc/ead:scopecontent">
<xsl:text> &lt;!-- </xsl:text>
<xsl:for-each select="../../../eac:cpfDescription/eac:relations/eac:resourceRelation/eac:objectXMLWrap/ead:archdesc/ead:scopecontent/ead:p">
<xsl:apply-templates/>
<xsl:apply-templates select="."/>
<xsl:choose>
<xsl:when test="position()!=last()">
<xsl:text>&#10;</xsl:text>
Expand All @@ -1323,8 +1325,7 @@
</xsl:for-each>
<xsl:text> --&gt;</xsl:text>
<xsl:text>&#10;</xsl:text>
</xsl:if>
<xsl:text>&#10;</xsl:text>
</xsl:if>
</xsl:for-each>
</xsl:if>
<xsl:if test="eac:eac-cpf/eac:cpfDescription/eac:relations/eac:resourceRelation[@resourceRelationType='other' and @xlink:role='resource']|eac:eac-cpf/eac:cpfDescription/eac:relations/eac:resourceRelation[not(@resourceRelationType) and @xlink:role='resource']">
Expand Down Expand Up @@ -2527,4 +2528,10 @@
<xsl:value-of select="normalize-space(.)" />
<xsl:text>''</xsl:text>
</xsl:template>
<xsl:template match="eac:p">
<xsl:value-of select="normalize-space(.)" />
</xsl:template>
<xsl:template match="ead:p">
<xsl:value-of select="normalize-space(.)" />
</xsl:template>
</xsl:stylesheet>

0 comments on commit 8f09a8d

Please sign in to comment.