Changeset 2684

Show
Ignore:
Timestamp:
01/18/10 11:36:09
Author:
johnsa
Message:

public client: add and correct videocal theme (we keep it primarily to show the flexibility of the front end)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • releases/bedework-3.6/deployment/webpublic/webapp/resources/demoskins/MainCampus/themes/videocalTheme/videocal.xsl

    r2510 r2684  
    3535    to the maximum extent the law permits. --> 
    3636 
    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  
    4437  <!-- URL of html resources (images, css, other html); by default this is 
    4538       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> 
    4740 
    4841  <!-- Duration of each slide in seconds; set this to your preference --> 
     
    7467 
    7568  <!-- Event count for the current day --> 
    76   <xsl:variable name="eventCount" select="count(/bedework/eventscalendar/year/month/week/day[date=$curDate]/event)"/> 
     69  <xsl:variable name="eventCount" select="count(/bedework/eventscalendar/year/month/week/day[date=$curdate]/event)"/> 
    7770 
    7871  <!-- Position of the current event being displayed --> 
     
    118111            <!-- we're starting up on the wrong view; go to today and begin with the first event; 
    119112                 the title slide will display during this switch. --> 
    120             <meta http-equiv="refresh" content="{$slideDuration};url={$urlPrefix}/main/setViewPeriod.do?viewType=todayView&amp;setappvar=event(1)&amp;setappvar=day(1)&amp;skinNameSticky={$skinName}&amp;setappvar=summaryMode(details)"/> 
     113            <meta http-equiv="refresh" content="{$slideDuration};url={$setViewPeriod}&amp;viewType=todayView&amp;setappvar=event(1)&amp;setappvar=day(1)&amp;skinNameSticky={$skinName}&amp;setappvar=summaryMode(details)"/> 
    121114          </xsl:when> 
    122115          <xsl:when test="($nextDay > $dayCount) and ($nextEvent > $eventCount)"> 
     
    124117                 so start over: go to today, set day=1 and *event=0* to allow 
    125118                 for the title slide "calPlug" --> 
    126             <meta http-equiv="refresh" content="{$slideDuration};url={$urlPrefix}/main/setViewPeriod.do?viewType=todayView&amp;setappvar=event(0)&amp;setappvar=day(1)&amp;skinNameSticky={$skinName}&amp;setappvar=summaryMode(details)"/> 
     119            <meta http-equiv="refresh" content="{$slideDuration};url={$setViewPeriod}&amp;viewType=todayView&amp;setappvar=event(0)&amp;setappvar=day(1)&amp;skinNameSticky={$skinName}&amp;setappvar=summaryMode(details)"/> 
    127120          </xsl:when> 
    128121          <xsl:when test="$nextEvent > $eventCount"> 
    129122            <!-- 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}&amp;viewType=dayView&amp;setappvar=event(1)&amp;setappvar=day({$nextDay})&amp;skinNameSticky={$skinName}&amp;setappvar=summaryMode(details)"/> 
     123            <meta http-equiv="refresh" content="{$slideDuration};url={$setViewPeriod}&amp;date={$nextdate}&amp;viewType=dayView&amp;setappvar=event(1)&amp;setappvar=day({$nextDay})&amp;skinNameSticky={$skinName}&amp;setappvar=summaryMode(details)"/> 
    131124          </xsl:when> 
    132125          <xsl:otherwise> 
    133126            <!-- otherwise, go to the next event on the same day --> 
    134             <meta http-equiv="refresh" content="{$slideDuration};url={$urlPrefix}/setup.do?viewType=dayView&amp;setappvar=event({$nextEvent})&amp;setappvar=day({$day})&amp;skinNameSticky={$skinName}&amp;setappvar=summaryMode(details)"/> 
     127            <meta http-equiv="refresh" content="{$slideDuration};url={$setup}&amp;viewType=dayView&amp;setappvar=event({$nextEvent})&amp;setappvar=day({$day})&amp;skinNameSticky={$skinName}&amp;setappvar=summaryMode(details)"/> 
    135128          </xsl:otherwise> 
    136129        </xsl:choose> 
     
    156149              <br/>Days: <xsl:value-of select="$day"/> of <xsl:value-of select="$dayCount"/> --> 
    157150            </h2> 
    158             <xsl:apply-templates select="/bedework/eventscalendar/year/month/week/day[date=$curDate]/event[position()=$event]"/> 
     151            <xsl:apply-templates select="/bedework/eventscalendar/year/month/week/day[date=$curdate]/event[position()=$event]"/> 
    159152          </xsl:otherwise> 
    160153        </xsl:choose> 
    161154        <!-- remove the following two divs if used for video --> 
    162155        <div id="getBack"> 
    163           (<a href="{$urlPrefix}/setup.do?skinNameSticky=default">restore normal calendar</a>) 
     156          (<a href="{$setup}&amp;skinNameSticky=default">restore normal calendar</a>) 
    164157        </div> 
    165158        <div id="info">