Changeset 2639

Show
Ignore:
Timestamp:
01/07/10 00:02:33
Author:
johnsa
Message:

add contact to json output

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/deployment/feeder/webapp/resources/demoskins/MainCampus/default/default/xsl/jsonEvent.xsl

    r2638 r2639  
    2020      <xsl:call-template name="replace"> 
    2121        <xsl:with-param name="string" select="location/address"/> 
     22        <xsl:with-param name="pattern" select='"&apos;"'/> 
     23        <xsl:with-param name="replacement" select='"\&apos;"'/> 
     24      </xsl:call-template> 
     25    </xsl:variable> 
     26    <xsl:variable name="aposStrippedContactName"> 
     27      <xsl:call-template name="replace"> 
     28        <xsl:with-param name="string" select="contact/name"/> 
    2229        <xsl:with-param name="pattern" select='"&apos;"'/> 
    2330        <xsl:with-param name="replacement" select='"\&apos;"'/> 
     
    6269                      "link" : "<xsl:value-of select='location/link'/>" 
    6370                    }, 
     71                    "contact" : { 
     72                      "name" : "<xsl:value-of select="$aposStrippedContactName"/>", 
     73                      "phone" : "<xsl:value-of select="contact/phone"/>",<!-- 
     74                      "email" : "<xsl:value-of select="contact/email"/>", --> 
     75                      "link" : "<xsl:value-of select='contact/link'/>" 
     76                    }, 
    6477                    "calendar" : { 
    6578                      "name" : "<xsl:value-of select='calendar/name'/>",