Changeset 2628

Show
Ignore:
Timestamp:
01/05/10 15:03:35
Author:
johnsa
Message:

public client: enabling show page feature

Files:

Legend:

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

    r2580 r2628  
    4343  <xsl:variable name="privateCal">/ucal</xsl:variable> 
    4444  <xsl:variable name="feeder">/feeder</xsl:variable> 
     45  <xsl:variable name="urlbuilder">/urlbuilder</xsl:variable> 
    4546  <xsl:variable name="prevdate" select="/bedework/previousdate" /> 
    4647  <xsl:variable name="nextdate" select="/bedework/nextdate" /> 
  • trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/default/strings.xsl

    r2608 r2628  
    99  <xsl:variable name="bwStr-Root-PageTitle">Bedework Events Calendar</xsl:variable> 
    1010  <xsl:variable name="bwStr-Error">Error:</xsl:variable> 
     11  <xsl:variable name="bwStr-Error-NoPage">No page to display</xsl:variable> 
    1112 
    1213  <!-- xsl:template name="headBar" --> 
  • trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/themes/bedeworkTheme/bedework.xsl

    r2582 r2628  
    153153                    <xsl:call-template name="advancedSearch" /> 
    154154                  </xsl:when> 
    155  
     155                   
    156156                  <!-- list of discrete events (normally used only for feeds 
    157157                       (see the /feeder app).  Included here for visualization. --> 
     
    164164                    <xsl:call-template name="stats" /> 
    165165                  </xsl:when> 
    166  
    167                   <!-- show us what page was requested... --> 
     166                   
     167                  <!-- branch to an arbitrary page (an xsl template) using the 
     168                       "appvar" session variable on a link like so: 
     169                       /misc/showPage.rdo?setappvar=page(mypage)  
     170                       Page templates are defined in showPage.xsl --> 
     171                  <xsl:when test="/bedework/page='showPage'"> 
     172                    <xsl:choose> 
     173                      <xsl:when test="/bedework/appvar[key='page']"> 
     174                        <xsl:call-template name="showPage"> 
     175                          <xsl:with-param name="pageName"><xsl:value-of select="/bedework/appvar[key='page']/value"/></xsl:with-param> 
     176                        </xsl:call-template> 
     177                      </xsl:when> 
     178                      <xsl:otherwise> 
     179                        <xsl:copy-of select="$bwStr-Error-NoPage"/> 
     180                      </xsl:otherwise> 
     181                    </xsl:choose> 
     182                  </xsl:when> 
     183 
     184                  <!-- otherwise, show us what page was requested  
     185                       (if the stylesheet is thorough, you should never see this) --> 
    168186                  <xsl:otherwise> 
    169187                    <xsl:copy-of select="$bwStr-Error"/>