Ticket #5497: 5497_callerid.xsl.patch

File 5497_callerid.xsl.patch, 1.0 KB (added by michael bishop <clever@…>, 17 years ago)
  • callerid.xsl

     
    1818      </textarea>
    1919      <textarea name="notify_cid_num">
    2020        <value>NUM : <xsl:variable name="phone" select="from/number/text()"/>
    21 <xsl:choose><xsl:when test="number($phone) = $phone"><xsl:value-of select="concat('(',substring($phone,1,3),') ',substring($phone,4,3),'-',substring($phone,7,4))"/></xsl:when><xsl:otherwise><xsl:value-of select="$phone"/></xsl:otherwise></xsl:choose>
     21<xsl:choose><xsl:when test="(number($phone) = $phone) and (string-length($phone) = 7)"><xsl:value-of select="concat(substring($phone,1,3),'-',substring($phone,4,4))"/></xsl:when><xsl:when test="number($phone) = $phone"><xsl:value-of select="concat('(',substring($phone,1,3),') ',substring($phone,4,3),'-',substring($phone,7,4))"/></xsl:when><xsl:otherwise><xsl:value-of select="$phone"/></xsl:otherwise></xsl:choose>
    2222</value>
    2323      </textarea>
    2424      <textarea name="notify_cid_dt">