Changeset 2426

Show
Ignore:
Timestamp:
12/08/09 16:11:50
Author:
bleibson
Message:

o Added config file to hold the URL for the caching system. See http://www.bedework.org/trac/bedework/ticket/473
o Also added boilerplate to the top of strings.xsl

Files:

Legend:

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

    r2425 r2426  
    55  xmlns="http://www.w3.org/1999/xhtml"> 
    66 
    7 <xsl:output 
    8   method="xml" 
    9   indent="no" 
    10   media-type="text/html" 
    11   doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" 
    12   doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" 
    13   standalone="yes" 
    14   omit-xml-declaration="yes"/> 
    15  
    16 <!-- ========================================================= 
    17  
    18               DEMONSTRATION CALENDAR STYLESHEET 
    19  
    20                   MainCampus Calendar Suite 
    21  
    22      This stylesheet is devoid of school branding.  It is a good 
    23      starting point for development of a customized calendar. 
    24  
    25      For detailed instructions on how to work with the XSLT 
    26      stylesheets included with this distribution, please see the 
    27      Bedework Design Guide at 
    28      http://www.bedework.org/bedework/update.do?artcenterkey=24 
    29  
    30 ===============================================================  --> 
    317<!-- ********************************************************************** 
    32     Copyright 2006 Rensselaer Polytechnic Institute. All worldwide rights reserved. 
     8    Copyright 2009 Rensselaer Polytechnic Institute. All worldwide rights reserved. 
    339 
    3410    Redistribution and use of this distribution in source and binary forms, 
     
    5430    to the maximum extent the law permits. --> 
    5531 
    56   <!-- ================================= --> 
    57   <!--  DEMO PUBLIC CALENDAR STYLESHEET  --> 
    58   <!-- ================================= --> 
    59  
    6032  <!-- URL of resources common to all bedework apps (javascript, images) --> 
    6133  <xsl:variable name="resourceCommons">../../../bedework-common</xsl:variable> 
     
    6638  <xsl:include href="../../../bedework-common/default/default/messages.xsl"/> 
    6739  <xsl:include href="../../../bedework-common/default/default/util.xsl"/> 
     40  <xsl:include href="./config.xsl"/> 
    6841  <xsl:include href="./strings.xsl"/> 
    6942 
     
    529502                                      <xsl:variable name="group" select="substring-before($filterVal, '~')" />  
    530503                                              <xsl:variable name="cats" select="substring-after($filterVal, '~')" /> 
    531                                                   <a href="http://localhost:3000/v1.0/genFeedPeriod/day/{$date}/grid-html/{$group}/{$cats}"> 
     504                                                  <a href="{$bwCacheHostUrl}/v1.0/genFeedPeriod/day/{$date}/grid-html/{$group}/{$cats}"> 
    532505                                        <xsl:value-of select="name"/>, <xsl:value-of select="longdate"/> 
    533506                                      </a> 
     
    535508                                <xsl:otherwise> 
    536509                                  <!-- Filter name not defined? Turn off filtering. --> 
    537                                   <a href="http://localhost:3000/v1.0/genFeedPeriod/day/{$date}/grid-html/all/all"> 
     510                                  <a href="{$bwCacheHostUrl}/v1.0/genFeedPeriod/day/{$date}/grid-html/all/all"> 
    538511                                        <xsl:value-of select="name"/>, <xsl:value-of select="longdate"/> 
    539512                                      </a> 
     
    542515                            </xsl:when> 
    543516                            <xsl:otherwise> 
    544                               <a href="http://localhost:3000/v1.0/genFeedPeriod/day/{$date}/grid-html/all/all"> 
     517                              <a href="{$bwCacheHostUrl}/v1.0/genFeedPeriod/day/{$date}/grid-html/all/all"> 
    545518                                    <xsl:value-of select="name"/>, <xsl:value-of select="longdate"/> 
    546519                          </a> 
     
    584557                      <!--<a href="{$eventView}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}"> 
    585558                        <xsl:value-of select="start/time"/> --> 
    586                       <a href="http://localhost:3000/v1.0/event/blah2/list-html/{$recurrenceId}/{$guid}"> 
     559                      <a href="{$bwCacheHostUrl}/v1.0/event/blah2/list-html/{$recurrenceId}/{$guid}"> 
    587560                      </a> 
    588561                    </td> 
     
    607580                    </td> 
    608581                    <td class="{$dateRangeStyle} center"> 
    609                           <a href="http://localhost:3000/v1.0/event/blah3/list-html/{$recurrenceId}/{$guid}"></a> 
     582                          <a href="{$bwCacheHostUrl}/v1.0/event/blah3/list-html/{$recurrenceId}/{$guid}"></a> 
    610583                      <!-- <a href="{$eventView}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}">-</a> --> 
    611584                    </td> 
    612585                    <td class="{$dateRangeStyle} left"> 
    613                           <a href="http://localhost:3000/v1.0/event/blah4/list-html/{$recurrenceId}/{$guid}"> 
     586                          <a href="{$bwCacheHostUrl}/v1.0/event/blah4/list-html/{$recurrenceId}/{$guid}"> 
    614587                      <!-- <a href="{$eventView}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}"> --> 
    615588                      <xsl:choose> 
     
    650623                  <xsl:choose> 
    651624                    <xsl:when test="/bedework/appvar[key='summaryMode']/value='details'"> 
    652                           <a href="http://localhost:3000/v1.0/event/blah/5/list-html/{$recurrenceId}/{$guid}"> 
     625                          <a href="{$bwCacheHostUrl}/v1.0/event/blah/5/list-html/{$recurrenceId}/{$guid}"> 
    653626                      <!-- ><a href="{$eventView}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}"> --> 
    654627                        <strong> 
     
    688661                    <xsl:otherwise> 
    689662                      <!-- ><a href="{$eventView}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}"> --> 
    690                           <a href="http://localhost:3000/v1.0/event/blah6/list-html/{$recurrenceId}/{$guid}"> 
     663                          <a href="{$bwCacheHostUrl}/v1.0/event/blah6/list-html/{$recurrenceId}/{$guid}"> 
    691664                        <xsl:value-of select="summary"/> 
    692665                        <xsl:if test="location/address != ''">, <xsl:value-of select="location/address"/></xsl:if> 
     
    773746                <xsl:if test="status='CANCELLED'"><strong><xsl:copy-of select="$bwStr-LsEv-Canceled"/><xsl:text> </xsl:text></strong></xsl:if> 
    774747                <xsl:if test="status='TENTATIVE'"><em><xsl:copy-of select="$bwStr-LsEv-Tentative"/><xsl:text> </xsl:text></em></xsl:if> 
    775                 <a href="http://localhost:3000/v1.0/event/blah7/list-html/{$recurrenceId}/{$guid}"> 
     748                <a href="{$bwCacheHostUrl}/v1.0/event/blah7/list-html/{$recurrenceId}/{$guid}"> 
    776749                <!-- <a href="{$eventView}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}">  --> 
    777750                  <xsl:value-of select="summary"/> 
     
    893866              <xsl:variable name="dayDate" select="date"/> 
    894867              <!-- ><a href="{$setViewPeriod}&amp;viewType=dayView&amp;date={$dayDate}" class="dayLink">  --> 
    895                     <a href="http://localhost:3000/v1.0/genFeedPeriod/day/{$dayDate}/grid-html/all/all" class="dayLink"> 
     868                    <a href="{$bwCacheHostUrl}/v1.0/genFeedPeriod/day/{$dayDate}/grid-html/all/all" class="dayLink"> 
    896869                <xsl:value-of select="value"/> 
    897870              </a> 
     
    964937                                      <xsl:variable name="group" select="substring-before($filterVal, '~')" />  
    965938                                              <xsl:variable name="cats" select="substring-after($filterVal, '~')" /> 
    966                                                   <a href="http://localhost:3000/v1.0/genFeedPeriod/day/{dayDate}/grid-html/{$group}/{$cats}"> 
     939                                                  <a href="{$bwCacheHostUrl}/v1.0/genFeedPeriod/day/{dayDate}/grid-html/{$group}/{$cats}"> 
    967940                                        <xsl:value-of select="value"/> 
    968941                                      </a> 
     
    970943                                <xsl:otherwise> 
    971944                                  <!-- Filter name not defined? Turn off filtering. --> 
    972                                   <a href="http://localhost:3000/v1.0/genFeedPeriod/day/{$dayDate}/grid-html/all/all"> 
     945                                  <a href="{$bwCacheHostUrl}/v1.0/genFeedPeriod/day/{$dayDate}/grid-html/all/all"> 
    973946                                        <xsl:value-of select="value"/> 
    974947                                      </a> 
     
    977950                            </xsl:when> 
    978951                            <xsl:otherwise> 
    979                               <a href="http://localhost:3000/v1.0/genFeedPeriod/day/{$dayDate}/grid-html/all/all"> 
     952                              <a href="{$bwCacheHostUrl}/v1.0/genFeedPeriod/day/{$dayDate}/grid-html/all/all"> 
    980953                                    <xsl:value-of select="value"/> 
    981954                          </a> 
     
    10481021    <li> 
    10491022      <!-- <a href="{$eventView}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}" class="{$eventClass} {$subscriptionClass}"> --> 
    1050             <a href="http://localhost:3000/v1.0/event/blah1/list-html/{$recurrenceId}/{$guid}" class="{$eventClass} {$subscriptionClass}"> 
     1023            <a href="{$bwCacheHostUrl}/v1.0/event/list-html/{$recurrenceId}/{$guid}" class="{$eventClass} {$subscriptionClass}"> 
    10511024        <xsl:if test="status='CANCELLED'"><xsl:copy-of select="$bwStr-EvCG-CanceledColon"/><xsl:text> </xsl:text></xsl:if> 
    10521025        <xsl:choose> 
     
    11501123          <td colspan="8" class="monthName"> 
    11511124            <xsl:variable name="firstDayOfMonth" select="week/day/date"/> 
    1152             <a href="http://localhost:3000/v1.0/genFeedPeriod/month/{$firstDayOfMonth}/grid-html/all/all"> 
     1125            <a href="{$bwCacheHostUrl}/v1.0/v1.0/genFeedPeriod/month/{$firstDayOfMonth}/grid-html/all/all"> 
    11531126            <!-- <a href="{$setViewPeriod}&amp;viewType=monthView&amp;date={$firstDayOfMonth}">  --> 
    11541127              <xsl:value-of select="longname"/> 
     
    11661139            <td class="weekCell"> 
    11671140              <xsl:variable name="firstDayOfWeek" select="day/date"/> 
    1168               <a href="http://localhost:3000/v1.0/genFeedPeriod/week/{$firstDayOfWeek}/grid-html/all/all"> 
     1141              <a href="{$bwCacheHostUrl}/v1.0/genFeedPeriod/week/{$firstDayOfWeek}/grid-html/all/all"> 
    11691142              <!-- <a href="{$setViewPeriod}&amp;viewType=weekView&amp;date={$firstDayOfWeek}"> --> 
    11701143                <xsl:value-of select="value"/> 
     
    11821155                    </xsl:if> 
    11831156                    <xsl:variable name="dayDate" select="date"/> 
    1184                     <a href="http://localhost:3000/v1.0/genFeedPeriod/day/{$dayDate}/grid-html/all/all"> 
     1157                    <a href="{$bwCacheHostUrl}/v1.0/genFeedPeriod/day/{$dayDate}/grid-html/all/all"> 
    11851158                    <!-- <a href="{$setViewPeriod}&amp;viewType=dayView&amp;date={$dayDate}"> --> 
    11861159                      <xsl:attribute name="class">today</xsl:attribute> 
  • trunk/deployment/feeder/webapp/resources/demoskins/MainCampus/default/default/strings.xsl

    r2417 r2426  
     1<?xml version="1.0" encoding="UTF-8"?> 
    12<xsl:stylesheet 
    23  version="1.0" 
    34  xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
    45  xmlns="http://www.w3.org/1999/xhtml"> 
     6 
     7<!-- ********************************************************************** 
     8  Copyright 2009 Rensselaer Polytechnic Institute. All worldwide rights reserved. 
     9 
     10  Redistribution and use of this distribution in source and binary forms, 
     11  with or without modification, are permitted provided that: 
     12     The above copyright notice and this permission notice appear in all 
     13      copies and supporting documentation; 
     14 
     15      The name, identifiers, and trademarks of Rensselaer Polytechnic 
     16      Institute are not used in advertising or publicity without the 
     17      express prior written permission of Rensselaer Polytechnic Institute; 
     18 
     19  DISCLAIMER: The software is distributed" AS IS" without any express or 
     20  implied warranty, including but not limited to, any implied warranties 
     21  of merchantability or fitness for a particular purpose or any warrant)' 
     22  of non-infringement of any current or pending patent rights. The authors 
     23  of the software make no representations about the suitability of this 
     24  software for any particular purpose. The entire risk as to the quality 
     25  and performance of the software is with the user. Should the software 
     26  prove defective, the user assumes the cost of all necessary servicing, 
     27  repair or correction. In particular, neither Rensselaer Polytechnic 
     28  Institute, nor the authors of the software are liable for any indirect, 
     29  special, consequential, or incidental damages related to the software, 
     30  to the maximum extent the law permits.  
     31--> 
    532 
    633  <!-- xsl:template match="/" -->