Skip to content

Commit

Permalink
#68: move direct link rendering to ead:did
Browse files Browse the repository at this point in the history
  • Loading branch information
ctgraham committed Oct 5, 2021
1 parent af72881 commit a09eeea
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions transforms/ead_to_html.xslt
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,16 @@
<dl>
<xsl:copy-of select="$contents"/>
</dl>
<xsl:if test="count(ead:dao[@xlink:href])">
<xsl:variable name="xlinks">
<xsl:call-template name="ead_dao_xlink" />
</xsl:variable>
<xsl:if test="normalize-space($xlinks)">
<ul class="ead_daos">
<xsl:copy-of select="$xlinks" />
</ul>
</xsl:if>
</xsl:if>
</xsl:if>
</xsl:template>

Expand Down Expand Up @@ -172,16 +182,6 @@
<xsl:apply-templates select="." mode="parent_text"/>
</xsl:otherwise>
</xsl:choose>
<xsl:if test="count(../ead:dao[@xlink:href])">
<xsl:variable name="contents">
<xsl:call-template name="ead_dao_xlink" />
</xsl:variable>
<xsl:if test="normalize-space($contents)">
<ul class="ead_daos">
<xsl:copy-of select="$contents" />
</ul>
</xsl:if>
</xsl:if>
</dd>
</xsl:template>

Expand All @@ -200,7 +200,7 @@
</xsl:template>

<xsl:template name="ead_dao_xlink">
<xsl:for-each select="../ead:dao[@xlink:href]">
<xsl:for-each select="ead:dao[@xlink:href]">
<xsl:variable name="direct_url">
<xsl:if test="$call_direct_link = 'true'">
<xsl:value-of select="php:function('islandora_manuscript_build_direct_url', @xlink:href)" />
Expand Down

0 comments on commit a09eeea

Please sign in to comment.