Commit 396e8d19 authored by Audrey Hamelers's avatar Audrey Hamelers
parent d3794c1f
Pipeline #13088 passed with stages
in 5 minutes and 40 seconds
......@@ -24,6 +24,22 @@
</xsl:template>
<xsl:variable name="emsid" select="translate(translate(//article-meta/article-id[@pub-id-type = 'manuscript'], 'ucpak', 'es'), 'ems', 'EMS')"/>
<xsl:variable name="fn-symbols" select="'*†‡§‖¶'"/>
<xsl:template name="get-symbol">
<xsl:param name="count"/>
<xsl:param name="current"/>
<xsl:variable name="times" select="ceiling($count div 6)"/>
<xsl:variable name="symbol" select="substring($fn-symbols, $count mod 6, 1)"/>
<xsl:value-of select="$symbol"/>
<xsl:if test="$current &lt; $times">
<xsl:call-template name="get-symbol">
<xsl:with-param name="count" select="$count"/>
<xsl:with-param name="current" select="$current + 1" />
</xsl:call-template>
</xsl:if>
</xsl:template>
<xsl:template match="/">
<!--<html>
......@@ -545,17 +561,34 @@
<sup class="inline-block">#</sup>
</a>
</xsl:if>
<xsl:for-each select="following-sibling::xref[@ref-type = 'fn']">
<xsl:variable name="rid" select="@rid"/>
<xsl:for-each select="//fn[@id = $rid]">
<xsl:if test="not(@fn-type) or (@fn-type != 'con' and @fn-type != 'equal' and @fn-type != 'present-address')">
<xsl:variable name="count" select="count(preceding-sibling::fn[not(@fn-type)] |
preceding-sibling::fn[(@fn-type != 'con' and @fn-type != 'equal' and @fn-type != 'present-address')]) + 1"/>
<a href="{concat('#', $rid)}">
<sup class="inline-block">
<xsl:call-template name="get-symbol">
<xsl:with-param name="count" select="$count"/>
<xsl:with-param name="current" select="1"/>
</xsl:call-template>
</sup>
</a>
</xsl:if>
</xsl:for-each>
</xsl:for-each>
<xsl:variable name="corresp" select="following-sibling::xref[@ref-type = 'corresp']/@rid"/>
<xsl:choose>
<xsl:when test="following-sibling::corresp//email">
<!--<i class="fa fa-envelope author-refine-icon"/>-->
<a href="#{$corresp}">
<sup class="inline-block">&#9993;</sup>
<sup class="inline-block"><big>&#9993;</big></sup>
</a>
</xsl:when>
<xsl:when test="//corresp[@id = $corresp]">
<a href="#{$corresp}">
<sup class="inline-block">&#9993;</sup>
<sup class="inline-block"><big>&#9993;</big></sup>
</a>
<!--<xsl:choose>
<xsl:when test="count(//corresp[@id = $corresp]//email) = 1">
......@@ -570,7 +603,7 @@
</xsl:when>
<xsl:when test="following-sibling::corresp">
<a href="#{$corresp}">
<sup class="inline-block">&#9993;</sup>
<sup class="inline-block"><big>&#9993;</big></sup>
</a>
<!--<a href="#author-notes">
<i class="fa fa-envelope author-refine-icon"/>
......@@ -2048,7 +2081,14 @@
</xsl:template>
<xsl:template match="author-notes/fn[not(@fn-type)]/p | author-notes/fn[(@fn-type != 'con' and @fn-type != 'equal' and @fn-type != 'present-address')]/p">
<xsl:variable name="count" select="count(parent::fn/preceding-sibling::fn[not(@fn-type)] |
preceding-sibling::fn[(@fn-type != 'con' and @fn-type != 'equal' and @fn-type != 'present-address')]) + 1"/>
<p>
<xsl:call-template name="get-symbol">
<xsl:with-param name="count" select="$count"/>
<xsl:with-param name="current" select="1"/>
</xsl:call-template>
<xsl:text> </xsl:text>
<xsl:apply-templates/>
</p>
</xsl:template>
......
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