Changeset 2683
- Timestamp:
- 01/18/10 11:35:05
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/themes/videocalTheme/videocal.xsl
r2510 r2683 35 35 to the maximum extent the law permits. --> 36 36 37 <!-- DEFINE GLOBAL CONSTANTS -->38 <xsl:variable name="appRoot" select="/bedework/approot"/>39 <xsl:variable name="urlPrefix" select="/bedework/urlprefix"/>40 <xsl:variable name="prevDate" select="/bedework/previousdate"/>41 <xsl:variable name="nextDate" select="/bedework/nextdate"/>42 <xsl:variable name="curDate" select="/bedework/currentdate/date"/>43 44 37 <!-- URL of html resources (images, css, other html); by default this is 45 38 set to the current theme directory --> 46 <xsl:variable name="resourcesRoot"><xsl:value-of select="/bedework/approot"/>/ default/default/videocalTheme</xsl:variable>39 <xsl:variable name="resourcesRoot"><xsl:value-of select="/bedework/approot"/>/themes/videocalTheme</xsl:variable> 47 40 48 41 <!-- Duration of each slide in seconds; set this to your preference --> … … 74 67 75 68 <!-- Event count for the current day --> 76 <xsl:variable name="eventCount" select="count(/bedework/eventscalendar/year/month/week/day[date=$cur Date]/event)"/>69 <xsl:variable name="eventCount" select="count(/bedework/eventscalendar/year/month/week/day[date=$curdate]/event)"/> 77 70 78 71 <!-- Position of the current event being displayed --> … … 118 111 <!-- we're starting up on the wrong view; go to today and begin with the first event; 119 112 the title slide will display during this switch. --> 120 <meta http-equiv="refresh" content="{$slideDuration};url={$ urlPrefix}/main/setViewPeriod.do?viewType=todayView&setappvar=event(1)&setappvar=day(1)&skinNameSticky={$skinName}&setappvar=summaryMode(details)"/>113 <meta http-equiv="refresh" content="{$slideDuration};url={$setViewPeriod}&viewType=todayView&setappvar=event(1)&setappvar=day(1)&skinNameSticky={$skinName}&setappvar=summaryMode(details)"/> 121 114 </xsl:when> 122 115 <xsl:when test="($nextDay > $dayCount) and ($nextEvent > $eventCount)"> … … 124 117 so start over: go to today, set day=1 and *event=0* to allow 125 118 for the title slide "calPlug" --> 126 <meta http-equiv="refresh" content="{$slideDuration};url={$ urlPrefix}/main/setViewPeriod.do?viewType=todayView&setappvar=event(0)&setappvar=day(1)&skinNameSticky={$skinName}&setappvar=summaryMode(details)"/>119 <meta http-equiv="refresh" content="{$slideDuration};url={$setViewPeriod}&viewType=todayView&setappvar=event(0)&setappvar=day(1)&skinNameSticky={$skinName}&setappvar=summaryMode(details)"/> 127 120 </xsl:when> 128 121 <xsl:when test="$nextEvent > $eventCount"> 129 122 <!-- passed the last event for the day; go to the next day and set event=1 --> 130 <meta http-equiv="refresh" content="{$slideDuration};url={$ urlPrefix}/main/setViewPeriod.do?date={$nextDate}&viewType=dayView&setappvar=event(1)&setappvar=day({$nextDay})&skinNameSticky={$skinName}&setappvar=summaryMode(details)"/>123 <meta http-equiv="refresh" content="{$slideDuration};url={$setViewPeriod}&date={$nextdate}&viewType=dayView&setappvar=event(1)&setappvar=day({$nextDay})&skinNameSticky={$skinName}&setappvar=summaryMode(details)"/> 131 124 </xsl:when> 132 125 <xsl:otherwise> 133 126 <!-- otherwise, go to the next event on the same day --> 134 <meta http-equiv="refresh" content="{$slideDuration};url={$ urlPrefix}/setup.do?viewType=dayView&setappvar=event({$nextEvent})&setappvar=day({$day})&skinNameSticky={$skinName}&setappvar=summaryMode(details)"/>127 <meta http-equiv="refresh" content="{$slideDuration};url={$setup}&viewType=dayView&setappvar=event({$nextEvent})&setappvar=day({$day})&skinNameSticky={$skinName}&setappvar=summaryMode(details)"/> 135 128 </xsl:otherwise> 136 129 </xsl:choose> … … 156 149 <br/>Days: <xsl:value-of select="$day"/> of <xsl:value-of select="$dayCount"/> --> 157 150 </h2> 158 <xsl:apply-templates select="/bedework/eventscalendar/year/month/week/day[date=$cur Date]/event[position()=$event]"/>151 <xsl:apply-templates select="/bedework/eventscalendar/year/month/week/day[date=$curdate]/event[position()=$event]"/> 159 152 </xsl:otherwise> 160 153 </xsl:choose> 161 154 <!-- remove the following two divs if used for video --> 162 155 <div id="getBack"> 163 (<a href="{$ urlPrefix}/setup.do?skinNameSticky=default">restore normal calendar</a>)156 (<a href="{$setup}&skinNameSticky=default">restore normal calendar</a>) 164 157 </div> 165 158 <div id="info">
