Skip to content

Commit

Permalink
notBefore/notAfter birth in list.xsl, patient-records.xsl
Browse files Browse the repository at this point in the history
  • Loading branch information
nina-bro committed Aug 24, 2023
1 parent 8fa40fb commit e2af485
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
13 changes: 12 additions & 1 deletion xslt/list.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,18 @@
<xsl:text>&#x9;</xsl:text>

<!-- birth date -->
<xsl:value-of select="normalize-space(/t:TEI/t:teiHeader/t:profileDesc/t:particDesc/t:person[1]/t:birth/@when)"/>
<xsl:choose>
</xsl:when>
<xsl:when test="birth[@cert='when']">
<xsl:value-of select="t:birth/@when"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="t:birth/@notBefore"/>
<xsl:text>/</xsl:text>
<xsl:value-of select="t:birth/@notAfter"/>
</xsl:otherwise>
</xsl:choose>
<!--<xsl:value-of select="normalize-space(/t:TEI/t:teiHeader/t:profileDesc/t:particDesc/t:person[1]/t:birth/@when)"/>-->
<xsl:text>&#x9;</xsl:text>

<!-- entry date -->
Expand Down
12 changes: 11 additions & 1 deletion xslt/patient-records.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,17 @@
<xsl:text>&#x9;</xsl:text>

<!-- birth date -->
<xsl:value-of select="normalize-space(/t:TEI/t:teiHeader/t:profileDesc/t:particDesc/t:person[1]/t:birth/@when)"/>
<!--<xsl:value-of select="normalize-space(/t:TEI/t:teiHeader/t:profileDesc/t:particDesc/t:person[1]/t:birth/@when)"/>-->
<xsl:choose>
<xsl:when test="birth[@cert='when']">
<xsl:value-of select="t:birth/@when"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="t:birth/@notBefore"/>
<xsl:text>/</xsl:text>
<xsl:value-of select="t:birth/@notAfter"/>
</xsl:otherwise>
</xsl:choose>
<xsl:text>&#x9;</xsl:text>

<!-- entry date -->
Expand Down

0 comments on commit e2af485

Please sign in to comment.