Foundry: Better handling for mailto links from contact items
git-svn-id: https://svn.libreccm.org/ccm/trunk@3815 8810af33-2d31-482b-a856-94f89814c4dfmaster
parent
227b1cb221
commit
fac74e83b1
|
|
@ -196,10 +196,21 @@
|
||||||
</foundry:doc>
|
</foundry:doc>
|
||||||
<xsl:template match="content-item-layout//*[ends-with(name(), 'contact-entries')]//contact-entry//contact-entry-value-as-link">
|
<xsl:template match="content-item-layout//*[ends-with(name(), 'contact-entries')]//contact-entry//contact-entry-value-as-link">
|
||||||
<xsl:param name="value" tunnel="yes"/>
|
<xsl:param name="value" tunnel="yes"/>
|
||||||
|
|
||||||
<xsl:apply-templates>
|
<xsl:choose>
|
||||||
<xsl:with-param name="href" tunnel="yes" select="$value"/>
|
<xsl:when test="contains($value, '@')">
|
||||||
</xsl:apply-templates>
|
<xsl:apply-templates>
|
||||||
|
<xsl:with-param name="href"
|
||||||
|
tunnel="yes"
|
||||||
|
select="concat('mailto:', $value)"/>
|
||||||
|
</xsl:apply-templates>
|
||||||
|
</xsl:when>
|
||||||
|
<xsl:otherwise>
|
||||||
|
<xsl:apply-templates>
|
||||||
|
<xsl:with-param name="href" tunnel="yes" select="$value"/>
|
||||||
|
</xsl:apply-templates>
|
||||||
|
</xsl:otherwise>
|
||||||
|
</xsl:choose>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<foundry:doc section="user" type="template-tag">
|
<foundry:doc section="user" type="template-tag">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue