Changeset 2425

Show
Ignore:
Timestamp:
12/08/09 15:04:47
Author:
bleibson
Message:

Support for having a version string in the cache URL (#477). Cache URL's now start with /v1.0.

Files:

Legend:

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

    r2422 r2425  
    101101  <xsl:variable name="calendar-fetchForExport" select="/bedework/urlPrefixes/calendar/fetchForExport"/> 
    102102  <xsl:variable name="mailEvent" select="/bedework/urlPrefixes/mail/mailEvent"/> 
    103   <!-- ><xsl:variable name="cacheURL" select="http://localhost:3000"/> --> 
    104   <!-- Unused 
    105   <xsl:variable name="showPage" select="/bedework/urlPrefixes/main/showPage"/> 
    106    --> 
     103   
    107104 <xsl:variable name="stats" select="/bedework/urlPrefixes/stats/stats"/> 
    108105 
     
    532529                                      <xsl:variable name="group" select="substring-before($filterVal, '~')" />  
    533530                                              <xsl:variable name="cats" select="substring-after($filterVal, '~')" /> 
    534                                                   <a href="http://localhost:3000/genFeedPeriod/day/{$date}/grid-html/{$group}/{$cats}"> 
     531                                                  <a href="http://localhost:3000/v1.0/genFeedPeriod/day/{$date}/grid-html/{$group}/{$cats}"> 
    535532                                        <xsl:value-of select="name"/>, <xsl:value-of select="longdate"/> 
    536533                                      </a> 
     
    538535                                <xsl:otherwise> 
    539536                                  <!-- Filter name not defined? Turn off filtering. --> 
    540                                   <a href="http://localhost:3000/genFeedPeriod/day/{$date}/grid-html/all/all"> 
     537                                  <a href="http://localhost:3000/v1.0/genFeedPeriod/day/{$date}/grid-html/all/all"> 
    541538                                        <xsl:value-of select="name"/>, <xsl:value-of select="longdate"/> 
    542539                                      </a> 
     
    545542                            </xsl:when> 
    546543                            <xsl:otherwise> 
    547                               <a href="http://localhost:3000/genFeedPeriod/day/{$date}/grid-html/all/all"> 
     544                              <a href="http://localhost:3000/v1.0/genFeedPeriod/day/{$date}/grid-html/all/all"> 
    548545                                    <xsl:value-of select="name"/>, <xsl:value-of select="longdate"/> 
    549546                          </a> 
     
    587584                      <!--<a href="{$eventView}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}"> 
    588585                        <xsl:value-of select="start/time"/> --> 
    589                       <a href="http://localhost:3000/event/blah2/list-html/{$recurrenceId}/{$guid}"> 
     586                      <a href="http://localhost:3000/v1.0/event/blah2/list-html/{$recurrenceId}/{$guid}"> 
    590587                      </a> 
    591588                    </td> 
     
    610607                    </td> 
    611608                    <td class="{$dateRangeStyle} center"> 
    612                           <a href="http://localhost:3000/event/blah3/list-html/{$recurrenceId}/{$guid}"></a> 
     609                          <a href="http://localhost:3000/v1.0/event/blah3/list-html/{$recurrenceId}/{$guid}"></a> 
    613610                      <!-- <a href="{$eventView}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}">-</a> --> 
    614611                    </td> 
    615612                    <td class="{$dateRangeStyle} left"> 
    616                           <a href="http://localhost:3000/event/blah4/list-html/{$recurrenceId}/{$guid}"> 
     613                          <a href="http://localhost:3000/v1.0/event/blah4/list-html/{$recurrenceId}/{$guid}"> 
    617614                      <!-- <a href="{$eventView}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}"> --> 
    618615                      <xsl:choose> 
     
    653650                  <xsl:choose> 
    654651                    <xsl:when test="/bedework/appvar[key='summaryMode']/value='details'"> 
    655                           <a href="http://localhost:3000/event/blah/5/list-html/{$recurrenceId}/{$guid}"> 
     652                          <a href="http://localhost:3000/v1.0/event/blah/5/list-html/{$recurrenceId}/{$guid}"> 
    656653                      <!-- ><a href="{$eventView}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}"> --> 
    657654                        <strong> 
     
    691688                    <xsl:otherwise> 
    692689                      <!-- ><a href="{$eventView}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}"> --> 
    693                           <a href="http://localhost:3000/event/blah6/list-html/{$recurrenceId}/{$guid}"> 
     690                          <a href="http://localhost:3000/v1.0/event/blah6/list-html/{$recurrenceId}/{$guid}"> 
    694691                        <xsl:value-of select="summary"/> 
    695692                        <xsl:if test="location/address != ''">, <xsl:value-of select="location/address"/></xsl:if> 
     
    776773                <xsl:if test="status='CANCELLED'"><strong><xsl:copy-of select="$bwStr-LsEv-Canceled"/><xsl:text> </xsl:text></strong></xsl:if> 
    777774                <xsl:if test="status='TENTATIVE'"><em><xsl:copy-of select="$bwStr-LsEv-Tentative"/><xsl:text> </xsl:text></em></xsl:if> 
    778                 <a href="http://localhost:3000/event/blah7/list-html/{$recurrenceId}/{$guid}"> 
     775                <a href="http://localhost:3000/v1.0/event/blah7/list-html/{$recurrenceId}/{$guid}"> 
    779776                <!-- <a href="{$eventView}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}">  --> 
    780777                  <xsl:value-of select="summary"/> 
     
    896893              <xsl:variable name="dayDate" select="date"/> 
    897894              <!-- ><a href="{$setViewPeriod}&amp;viewType=dayView&amp;date={$dayDate}" class="dayLink">  --> 
    898                     <a href="http://localhost:3000/genFeedPeriod/day/{$dayDate}/grid-html/all/all" class="dayLink"> 
     895                    <a href="http://localhost:3000/v1.0/genFeedPeriod/day/{$dayDate}/grid-html/all/all" class="dayLink"> 
    899896                <xsl:value-of select="value"/> 
    900897              </a> 
     
    967964                                      <xsl:variable name="group" select="substring-before($filterVal, '~')" />  
    968965                                              <xsl:variable name="cats" select="substring-after($filterVal, '~')" /> 
    969                                                   <a href="http://localhost:3000/genFeedPeriod/day/{dayDate}/grid-html/{$group}/{$cats}"> 
     966                                                  <a href="http://localhost:3000/v1.0/genFeedPeriod/day/{dayDate}/grid-html/{$group}/{$cats}"> 
    970967                                        <xsl:value-of select="value"/> 
    971968                                      </a> 
     
    973970                                <xsl:otherwise> 
    974971                                  <!-- Filter name not defined? Turn off filtering. --> 
    975                                   <a href="http://localhost:3000/genFeedPeriod/day/{$dayDate}/grid-html/all/all"> 
     972                                  <a href="http://localhost:3000/v1.0/genFeedPeriod/day/{$dayDate}/grid-html/all/all"> 
    976973                                        <xsl:value-of select="value"/> 
    977974                                      </a> 
     
    980977                            </xsl:when> 
    981978                            <xsl:otherwise> 
    982                               <a href="http://localhost:3000/genFeedPeriod/day/{$dayDate}/grid-html/all/all"> 
     979                              <a href="http://localhost:3000/v1.0/genFeedPeriod/day/{$dayDate}/grid-html/all/all"> 
    983980                                    <xsl:value-of select="value"/> 
    984981                          </a> 
     
    10511048    <li> 
    10521049      <!-- <a href="{$eventView}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}" class="{$eventClass} {$subscriptionClass}"> --> 
    1053             <a href="http://localhost:3000/event/blah1/list-html/{$recurrenceId}/{$guid}" class="{$eventClass} {$subscriptionClass}"> 
     1050            <a href="http://localhost:3000/v1.0/event/blah1/list-html/{$recurrenceId}/{$guid}" class="{$eventClass} {$subscriptionClass}"> 
    10541051        <xsl:if test="status='CANCELLED'"><xsl:copy-of select="$bwStr-EvCG-CanceledColon"/><xsl:text> </xsl:text></xsl:if> 
    10551052        <xsl:choose> 
     
    11531150          <td colspan="8" class="monthName"> 
    11541151            <xsl:variable name="firstDayOfMonth" select="week/day/date"/> 
    1155             <a href="http://localhost:3000/genFeedPeriod/month/{$firstDayOfMonth}/grid-html/all/all"> 
     1152            <a href="http://localhost:3000/v1.0/genFeedPeriod/month/{$firstDayOfMonth}/grid-html/all/all"> 
    11561153            <!-- <a href="{$setViewPeriod}&amp;viewType=monthView&amp;date={$firstDayOfMonth}">  --> 
    11571154              <xsl:value-of select="longname"/> 
     
    11691166            <td class="weekCell"> 
    11701167              <xsl:variable name="firstDayOfWeek" select="day/date"/> 
    1171               <a href="http://localhost:3000/genFeedPeriod/week/{$firstDayOfWeek}/grid-html/all/all"> 
     1168              <a href="http://localhost:3000/v1.0/genFeedPeriod/week/{$firstDayOfWeek}/grid-html/all/all"> 
    11721169              <!-- <a href="{$setViewPeriod}&amp;viewType=weekView&amp;date={$firstDayOfWeek}"> --> 
    11731170                <xsl:value-of select="value"/> 
     
    11851182                    </xsl:if> 
    11861183                    <xsl:variable name="dayDate" select="date"/> 
    1187                     <a href="http://localhost:3000/genFeedPeriod/day/{$dayDate}/grid-html/all/all"> 
     1184                    <a href="http://localhost:3000/v1.0/genFeedPeriod/day/{$dayDate}/grid-html/all/all"> 
    11881185                    <!-- <a href="{$setViewPeriod}&amp;viewType=dayView&amp;date={$dayDate}"> --> 
    11891186                      <xsl:attribute name="class">today</xsl:attribute>