Changeset 2465
- Timestamp:
- 12/11/09 18:33:15
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/deployment/feeder/webapp/resources/demoskins/MainCampus/default/default/grid-json.xsl
r2422 r2465 4 4 5 5 <!-- ********************************************************************** 6 Copyright 200 8Rensselaer Polytechnic Institute. All worldwide rights reserved.6 Copyright 2009 Rensselaer Polytechnic Institute. All worldwide rights reserved. 7 7 8 8 Redistribution and use of this distribution in source and binary forms, … … 122 122 "longname" : "<xsl:value-of select='longname'/>", 123 123 "shortname" : "<xsl:value-of select='shortname'/>", 124 "weeks" : [ 124 125 <xsl:apply-templates select="week" /> 126 ] 125 127 }<xsl:if test="position() != last()">,</xsl:if> 126 128 </xsl:template> 127 129 128 130 <xsl:template match="week"> 129 "week":{131 { 130 132 "value" : "<xsl:value-of select='value'/>", 131 <xsl:apply-templates select="day" /> 133 "days" : [ 134 <xsl:apply-templates select="day" /> 135 ] 132 136 }<xsl:if test="position() != last()">,</xsl:if> 133 137 </xsl:template> 134 138 135 136 137 139 <xsl:template match="day"> 138 "day":{140 { 139 141 <xsl:choose> 140 142 <xsl:when test="filler = 'true'"> … … 147 149 "date" : "<xsl:value-of select='date'/>", 148 150 "longdate" : "<xsl:value-of select='longdate'/>", 149 "shortdate" : "<xsl:value-of select='shortdate'/>" 151 "shortdate" : "<xsl:value-of select='shortdate'/>", 152 "events" : [ 150 153 <xsl:choose> 151 154 <xsl:when test="/bedework/appvar/key = 'filter'"> … … 167 170 </xsl:otherwise> 168 171 </xsl:choose> 172 ] 169 173 </xsl:otherwise> 170 174 </xsl:choose> … … 200 204 <xsl:variable name="strippedLocAddress" select='translate($aposStrippedLocAddress,"
"," ")'/> 201 205 <!-- finally, produce the JSON output --> 202 , "event":{206 { 203 207 "summary" : "<xsl:value-of select="$strippedSummary"/>", 204 208 "subscriptionId" : "<xsl:value-of select="subscription/id"/>",
