Changeset 2466

Show
Ignore:
Timestamp:
12/12/09 14:55:24
Author:
johnsa
Message:

public client: some clean up in preparation for new default skin

Files:

Legend:

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

    r2464 r2466  
    11<?xml version="1.0" encoding="UTF-8"?> 
    2 <xsl:stylesheet 
    3   version="1.0" 
     2<xsl:stylesheet version="1.0" 
    43  xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
    54  xmlns="http://www.w3.org/1999/xhtml"> 
    65 
    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 - Duke/Yale Skin 
    21  
    22      This stylesheet is devoid of school branding.  It is a good 
    23      starting point for development of a customized calendar. 
    24  
    25      It is based on work by Duke University and Yale University. 
    26  
    27      For detailed instructions on how to work with the XSLT 
    28      stylesheets included with this distribution, please see the 
    29      Bedework Design Guide at 
    30      http://www.bedework.org/bedework/update.do?artcenterkey=24 
    31  
    32 ===============================================================  --> 
    33 <!-- ********************************************************************** 
     6  <xsl:output method="xml" indent="no" media-type="text/html" 
     7    doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" 
     8    doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" 
     9    standalone="yes" omit-xml-declaration="yes" /> 
     10 
     11  <!-- ========================================================= 
     12 
     13    DEMONSTRATION CALENDAR STYLESHEET 
     14 
     15    MainCampus Calendar Suite - Duke/Yale Skin 
     16 
     17    This stylesheet is devoid of school branding.  It is a good 
     18    starting point for development of a customized calendar. 
     19 
     20    It is based on work by Duke University and Yale University. 
     21 
     22    For detailed instructions on how to work with the XSLT 
     23    stylesheets included with this distribution, please see the 
     24    Bedework Design Guide at 
     25    http://www.bedework.org/bedework/update.do?artcenterkey=24 
     26 
     27    ===============================================================  --> 
     28  <!-- ********************************************************************** 
    3429    Copyright 2006 Rensselaer Polytechnic Institute. All worldwide rights reserved. 
    3530 
    3631    Redistribution and use of this distribution in source and binary forms, 
    3732    with or without modification, are permitted provided that: 
    38        The above copyright notice and this permission notice appear in all 
    39         copies and supporting documentation; 
    40  
    41         The name, identifiers, and trademarks of Rensselaer Polytechnic 
    42         Institute are not used in advertising or publicity without the 
    43         express prior written permission of Rensselaer Polytechnic Institute; 
     33    The above copyright notice and this permission notice appear in all 
     34    copies and supporting documentation; 
     35 
     36    The name, identifiers, and trademarks of Rensselaer Polytechnic 
     37    Institute are not used in advertising or publicity without the 
     38    express prior written permission of Rensselaer Polytechnic Institute; 
    4439 
    4540    DISCLAIMER: The software is distributed" AS IS" without any express or 
     
    6156 
    6257  <!-- DEFINE INCLUDES --> 
    63   <xsl:include href="../../../bedework-common/default/default/errors.xsl"/> 
    64   <xsl:include href="../../../bedework-common/default/default/messages.xsl"/> 
    65   <xsl:include href="../../../bedework-common/default/default/util.xsl"/> 
    66   <xsl:include href="./strings.xsl"/> 
     58  <xsl:include href="../../../bedework-common/default/default/errors.xsl" /> 
     59  <xsl:include href="../../../bedework-common/default/default/messages.xsl" /> 
     60  <xsl:include href="../../../bedework-common/default/default/util.xsl" /> 
     61  <xsl:include href="./strings.xsl" /> 
    6762 
    6863  <!-- acheck --> 
    69   <xsl:include href="../default/display-events.xsl"/> 
     64  <xsl:include href="defaultTheme/display-events.xsl" /> 
    7065  <!-- <xsl:include href="featured.xsl"/> --> 
    7166 
     
    7368 
    7469  <!-- URL of html resources (images, css, other html); by default this is 
    75        set to the current theme directory  --> 
    76   <xsl:variable name="resourcesRoot"><xsl:value-of select="/bedework/approot"/>/default/default/defaultTheme</xsl:variable> 
     70    set to the current theme directory  --> 
     71  <xsl:variable name="resourcesRoot"><xsl:value-of select="/bedework/approot" />/default/default/defaultTheme</xsl:variable> 
    7772 
    7873  <!-- URL of the XSL template directory --> 
    7974  <!-- The approot is an appropriate place to put 
    80        included stylesheets and xml fragments. These are generally 
    81        referenced relatively (like errors.xsl and messages.xsl above); 
    82        this variable is here for your convenience if you choose to 
    83        reference it explicitly.  It is not used in this stylesheet, however, 
    84        and can be safely removed if you so choose. --> 
    85   <xsl:variable name="appRoot" select="/bedework/approot"/> 
     75    included stylesheets and xml fragments. These are generally 
     76    referenced relatively (like errors.xsl and messages.xsl above); 
     77    this variable is here for your convenience if you choose to 
     78    reference it explicitly.  It is not used in this stylesheet, however, 
     79    and can be safely removed if you so choose. --> 
     80  <xsl:variable name="appRoot" select="/bedework/approot" /> 
    8681 
    8782  <!-- Properly encoded prefixes to the application actions; use these to build 
    88        urls; allows the application to be used without cookies or within a portal. 
    89        These urls are rewritten in header.jsp and simply passed through for use 
    90        here. Every url includes a query string (either ?b=de or a real query 
    91        string) so that all links constructed in this stylesheet may begin the 
    92        query string with an ampersand. --> 
    93   <xsl:variable name="setup" select="/bedework/urlPrefixes/setup"/> 
    94   <xsl:variable name="setSelection" select="/bedework/urlPrefixes/main/setSelection"/> 
    95   <xsl:variable name="fetchPublicCalendars" select="/bedework/urlPrefixes/calendar/fetchPublicCalendars"/> 
    96   <xsl:variable name="setViewPeriod" select="/bedework/urlPrefixes/main/setViewPeriod"/> 
    97   <xsl:variable name="listEvents" select="/bedework/urlPrefixes/main/listEvents"/> 
    98   <xsl:variable name="eventView" select="/bedework/urlPrefixes/event/eventView"/> 
    99   <xsl:variable name="addEventRef" select="/bedework/urlPrefixes/event/addEventRef"/> 
    100   <xsl:variable name="export" select="/bedework/urlPrefixes/misc/export"/> 
    101   <xsl:variable name="search" select="/bedework/urlPrefixes/search/search"/> 
    102   <xsl:variable name="search-next" select="/bedework/urlPrefixes/search/next"/> 
    103   <xsl:variable name="calendar-fetchForExport" select="/bedework/urlPrefixes/calendar/fetchForExport"/> 
    104   <xsl:variable name="mailEvent" select="/bedework/urlPrefixes/mail/mailEvent"/> 
    105   <xsl:variable name="stats" select="/bedework/urlPrefixes/stats/stats"/> 
     83    urls; allows the application to be used without cookies or within a portal. 
     84    These urls are rewritten in header.jsp and simply passed through for use 
     85    here. Every url includes a query string (either ?b=de or a real query 
     86    string) so that all links constructed in this stylesheet may begin the 
     87    query string with an ampersand. --> 
     88  <xsl:variable name="setup" select="/bedework/urlPrefixes/setup" /> 
     89  <xsl:variable name="setSelection" select="/bedework/urlPrefixes/main/setSelection" /> 
     90  <xsl:variable name="fetchPublicCalendars" select="/bedework/urlPrefixes/calendar/fetchPublicCalendars" /> 
     91  <xsl:variable name="setViewPeriod" select="/bedework/urlPrefixes/main/setViewPeriod" /> 
     92  <xsl:variable name="listEvents" select="/bedework/urlPrefixes/main/listEvents" /> 
     93  <xsl:variable name="eventView" select="/bedework/urlPrefixes/event/eventView" /> 
     94  <xsl:variable name="addEventRef" select="/bedework/urlPrefixes/event/addEventRef" /> 
     95  <xsl:variable name="export" select="/bedework/urlPrefixes/misc/export" /> 
     96  <xsl:variable name="search" select="/bedework/urlPrefixes/search/search" /> 
     97  <xsl:variable name="search-next" select="/bedework/urlPrefixes/search/next" /> 
     98  <xsl:variable name="calendar-fetchForExport" select="/bedework/urlPrefixes/calendar/fetchForExport" /> 
     99  <xsl:variable name="mailEvent" select="/bedework/urlPrefixes/mail/mailEvent" /> 
     100  <xsl:variable name="stats" select="/bedework/urlPrefixes/stats/stats" /> 
    106101 
    107102  <!-- acheck --> 
     
    109104 
    110105  <!-- URL of the web application - includes web context --> 
    111   <xsl:variable name="urlPrefix" select="/bedework/urlprefix"/> 
     106  <xsl:variable name="urlPrefix" select="/bedework/urlprefix" /> 
    112107 
    113108  <!-- Other generally useful global variables --> 
    114109  <xsl:variable name="privateCal">/ucal</xsl:variable> 
    115   <xsl:variable name="prevdate" select="/bedework/previousdate"/> 
    116   <xsl:variable name="nextdate" select="/bedework/nextdate"/> 
    117   <xsl:variable name="curdate" select="/bedework/currentdate/date"/> 
     110  <xsl:variable name="prevdate" select="/bedework/previousdate" /> 
     111  <xsl:variable name="nextdate" select="/bedework/nextdate" /> 
     112  <xsl:variable name="curdate" select="/bedework/currentdate/date" /> 
    118113 
    119114  <!-- MAIN TEMPLATE --> 
     
    123118        <xsl:choose> 
    124119          <xsl:when test="/bedework/page='event'"> 
    125             <title><xsl:value-of select="/bedework/event/summary"/></title> 
     120            <title><xsl:value-of select="/bedework/event/summary" /></title> 
    126121          </xsl:when> 
    127122          <xsl:otherwise> 
    128             <title><xsl:copy-of select="$bwStr-Root-PageTitle"/></title> 
     123            <title><xsl:copy-of select="$bwStr-Root-PageTitle" /></title> 
    129124          </xsl:otherwise> 
    130125        </xsl:choose> 
    131126        <meta content="text/html;charset=utf-8" http-equiv="Content-Type" /> 
     127 
    132128        <!-- load css --> 
    133         <link rel="stylesheet" type="text/css" media="screen" href="{$resourcesRoot}/css/fixed.css"/> 
    134         <link rel="stylesheet" type="text/css" media="print" href="{$resourcesRoot}/css/print.css"/> 
     129        <link rel="stylesheet" type="text/css" media="screen" href="{$resourcesRoot}/css/fixed.css" /> 
     130        <link rel="stylesheet" type="text/css" media="print" href="{$resourcesRoot}/css/print.css" /> 
    135131 
    136132        <!-- Dependencies --> 
     
    138134          <![CDATA[ 
    139135          <!--[if IE 6]> 
    140             <link rel="stylesheet" type="text/css" media="screen" href="{$resourcesRoot}/css/ie6.css"/> 
     136            <link rel="stylesheet" type="text/css" media="screen" href="/calrsrc.MainCampus/default/default/defaultTheme/css/ie6.css"/> 
    141137          <![endif]--> 
    142138 
    143139          <!--[if IE 7]> 
    144             <link rel="stylesheet" type="text/css" media="screen" href="{$resourcesRoot}/css/ie7.css"/> 
     140            <link rel="stylesheet" type="text/css" media="screen" href="/calrsrc.MainCampus/default/default/defaultTheme/css/ie7.css"/> 
    145141          <![endif]--> 
    146142          ]]> 
     
    153149        <script type="text/javascript" src="{$resourcesRoot}/javascript/yui/animation-min.js">&#160;</script> 
    154150        <xsl:if test="/bedework/page='searchResult'"> 
    155             <script type="text/javascript" src="{$resourcesRoot}/javascript/catSearch.js">&#160;</script> 
     151          <script type="text/javascript" src="{$resourcesRoot}/javascript/catSearch.js">&#160;</script> 
    156152        </xsl:if> 
    157       <script type="text/javascript" src="{$resourcesRoot}/javascript/mainCampus.js">&#160;</script> 
     153        <script type="text/javascript" src="{$resourcesRoot}/javascript/mainCampus.js">&#160;</script> 
    158154 
    159155        <!-- address bar icon --> 
    160         <link rel="icon" type="image/ico" href="{$resourcesRoot}/images/ecal.ico"/> 
     156        <link rel="icon" type="image/ico" href="{$resourcesRoot}/images/ecal.ico" /> 
    161157        <script type="text/javascript"> 
    162             <xsl:call-template name="jsonDataObject"/> 
     158          <xsl:call-template name="jsonDataObject" /> 
    163159        </script> 
    164         <script type="text/javascript" src="{$resourcesRoot}/javascript/ifs-calendar.js">i&#160;</script> 
     160        <script type="text/javascript" src="{$resourcesRoot}/javascript/ifs-calendar.js">&#160;</script> 
    165161      </head> 
    166162      <body> 
    167163        <div id="wrap"> 
    168164          <div id="header"> 
    169             <xsl:call-template name="dateTitleBar"/> 
    170             <xsl:call-template name="tabs"/> 
     165            <xsl:call-template name="dateTitleBar" /> 
     166            <xsl:call-template name="tabs" /> 
    171167          </div> 
    172168          <xsl:if test="/bedework/error"> 
    173169            <div id="errors"> 
    174               <xsl:apply-templates select="/bedework/error"/> 
     170              <xsl:apply-templates 
     171                select="/bedework/error" /> 
    175172            </div> 
    176173          </xsl:if> 
    177174          <div id="content"> 
    178  
    179175            <xsl:choose> 
    180  
    181176              <!-- Layout for: Single Event Display--> 
    182177              <xsl:when test="/bedework/page = 'event'"> 
    183                     <div id="contentSection"> 
    184                     <xsl:call-template name="display-left-column"/> 
    185                     <div class="double_center_column" id="center_column"> 
    186             <div class="secondaryColHeader"> <h3>Event Information</h3> </div> 
    187                         <xsl:apply-templates select="/bedework/event"/> 
    188             <div class="right_column" id="right_column"> </div> 
     178                <div id="contentSection"> 
     179                  <xsl:call-template name="display-left-column" /> 
     180                  <div class="double_center_column" id="center_column"> 
     181                    <div class="secondaryColHeader"> 
     182                      <h3>Event Information</h3> 
    189183                    </div> 
    190                  </div> 
     184                    <xsl:apply-templates select="/bedework/event" /> 
     185                    <div class="right_column" id="right_column"></div> 
     186                  </div> 
     187                </div> 
    191188              </xsl:when> 
    192189 
     
    197194                    <h3>All Calendars</h3> 
    198195                  </div> 
    199                   <xsl:apply-templates select="/bedework/calendars"/> 
     196                  <xsl:apply-templates select="/bedework/calendars" /> 
    200197                </div> 
    201198              </xsl:when> 
     
    204201              <xsl:when test="/bedework/page='searchResult'"> 
    205202                <div id="contentSection"> 
    206                   <xsl:call-template name="display-left-column"/> 
     203                  <xsl:call-template name="display-left-column" /> 
    207204                </div> 
    208      <div class="double_center_column" id="right_column"> </div> 
     205                <div class="double_center_column" id="right_column"> 
     206                </div> 
    209207                <div class="double_center_column" id="center_column"> 
    210                     <xsl:call-template name="searchResult"/> 
    211                     <xsl:call-template name="advancedSearch"/> 
     208                  <xsl:call-template name="searchResult" /> 
     209                  <xsl:call-template name="advancedSearch" /> 
    212210                </div> 
    213211              </xsl:when> 
     
    215213              <!-- Layout for: Current Day (list only) --> 
    216214              <xsl:when test="/bedework/periodname = 'Day' and ((/bedework/now/date) = (/bedework/currentdate/date))"> 
    217       <div id="contentSection"> 
    218                       <xsl:call-template name="jsDateSelectionCal"/> 
    219                       <div id="feature"> 
    220                            <xsl:apply-templates select="document('./data/FeaturedEvent/FeaturedEvent.xml')/system-data-structure"/> 
     215                <div id="contentSection"> 
     216                  <xsl:call-template name="jsDateSelectionCal" /> 
     217                  <div id="feature"> 
     218                    <xsl:apply-templates select="document('./data/FeaturedEvent/FeaturedEvent.xml')/system-data-structure" /> 
     219                  </div> 
     220                  <div class="clear">&#160;</div> 
     221                </div> 
     222                <div id="contentSection"> 
     223                  <div class="left_column"> 
     224                    <xsl:call-template name="display-side-bar" /> 
     225                    <div class="extFeeds"> 
     226                      <a href="http://buzz.duke.edu"> 
     227                        <img src="{$resourcesRoot}/images/buzz.gif" alt="Buzz" /> 
     228                      </a> 
     229                      <a id="buzzTrigger" href="#"> 
     230                        More &gt; 
     231                      </a> 
     232                      <div id="buzzResult" style="display:none"> 
     233                        Events List 
    221234                      </div> 
    222                       <div class="clear">&#160;</div> 
     235                    </div> 
    223236                  </div> 
    224       <div id="contentSection"> 
    225                       <div class="left_column"> 
    226                             <xsl:call-template name="display-side-bar"/> 
    227                            <div class="extFeeds"><a href="http://buzz.duke.edu"><img src="{$resourcesRoot}/images/buzz.gif" alt="Buzz"/></a> 
    228                                <a id="buzzTrigger" href="#">More &gt;</a><div id="buzzResult" style="display:none"> 
    229                                Events List</div> 
    230                      </div> 
     237                  <xsl:call-template name="groupsList" /> 
     238 
     239                  <xsl:call-template name="display-center-column" /> 
     240                  <div class="right_column" id="right_column"> 
     241                    <xsl:call-template name="ongoingEventList" /> 
    231242                  </div> 
    232       <xsl:call-template name="groupsList"/> 
    233  
    234                   <xsl:call-template name="display-center-column"/> 
    235                   <div class="right_column" id="right_column"> <xsl:call-template name="ongoingEventList"/> </div> 
    236     </div> 
    237               </xsl:when> 
    238  
    239               <!-- Layout for: Daily (list only) --> 
    240               <xsl:when test="/bedework/periodname = 'Day' and /bedework/page='eventscalendar'"> 
    241                 <div id="contentSection"> 
    242                    <xsl:call-template name="display-left-column"/> 
    243                    <xsl:call-template name="display-center-column"/> 
    244                   <div class="right_column" id="right_column"> <xsl:call-template name="ongoingEventList"/> </div> 
    245243                </div> 
    246244              </xsl:when> 
    247245 
    248               <!-- Layout for: Week (list) --> 
    249               <xsl:when test="bedework/periodname = 'Week' and /bedework/page='eventscalendar'"> 
     246              <!-- Layout for: Daily (list only) --> 
     247              <xsl:when 
     248                test="/bedework/periodname = 'Day' and /bedework/page='eventscalendar'"> 
    250249                <div id="contentSection"> 
    251                    <xsl:call-template name="display-left-column"/> 
    252                    <xsl:call-template name="display-center-column"/> 
    253                    <div class="right_column" id="right_column"> <xsl:call-template name="ongoingEventList"/> </div> 
     250                  <xsl:call-template name="display-left-column" /> 
     251                  <xsl:call-template name="display-center-column" /> 
     252                  <div class="right_column" id="right_column"> 
     253                    <xsl:call-template name="ongoingEventList" /> 
     254                  </div> 
    254255                </div> 
    255256              </xsl:when> 
    256257 
     258              <!-- Layout for: Week (list) --> 
     259              <xsl:when 
     260                test="bedework/periodname = 'Week' and /bedework/page='eventscalendar'"> 
     261                <div id="contentSection"> 
     262                  <xsl:call-template name="display-left-column" /> 
     263                  <xsl:call-template name="display-center-column" /> 
     264                  <div class="right_column" id="right_column"> 
     265                    <xsl:call-template name="ongoingEventList" /> 
     266                  </div> 
     267                </div> 
     268              </xsl:when> 
     269 
    257270              <!-- Layout for: Month (List) --> 
    258               <xsl:when test="bedework/periodname = 'Month' and /bedework/page='eventscalendar'"> 
    259                   <div id="contentSection"> 
    260                      <xsl:call-template name="display-left-column"/> 
    261                      <xsl:call-template name="display-center-column"/> 
    262                      <div class="right_column" id="right_column"> <xsl:call-template name="ongoingEventList"/> </div> 
     271              <xsl:when 
     272                test="bedework/periodname = 'Month' and /bedework/page='eventscalendar'"> 
     273                <div id="contentSection"> 
     274                  <xsl:call-template name="display-left-column" /> 
     275                  <xsl:call-template name="display-center-column" /> 
     276                  <div class="right_column" id="right_column"> 
     277                    <xsl:call-template name="ongoingEventList" /> 
    263278                  </div> 
     279                </div> 
    264280              </xsl:when> 
    265281 
    266282              <!-- Layout for: Year --> 
    267               <xsl:when test="bedework/periodname = 'Year' and /bedework/page='eventscalendar'"> 
     283              <xsl:when 
     284                test="bedework/periodname = 'Year' and /bedework/page='eventscalendar'"> 
    268285                <div id="contentSection"> 
    269                   <xsl:call-template name="display-left-column"/> 
     286                  <xsl:call-template name="display-left-column" /> 
    270287                  <div class="double_center_column" id="center_column"> 
    271288                    <div class="secondaryColHeader"> 
    272                       <xsl:call-template name="navigation"/> 
     289                      <xsl:call-template name="navigation" /> 
    273290                    </div> 
    274                     <xsl:call-template name="yearView"/> 
     291                    <xsl:call-template name="yearView" /> 
    275292                  </div> 
    276        <div class="right_column" id="right_column"> </div> 
     293                  <div class="right_column" id="right_column"></div> 
    277294                </div> 
    278295              </xsl:when> 
     
    280297              <!-- Layout for: System Stats --> 
    281298              <xsl:when test="/bedework/page='showSysStats'"> 
    282                 <xsl:call-template name="stats"/> 
     299                <xsl:call-template name="stats" /> 
    283300              </xsl:when> 
    284301 
     
    286303                a pop-up widget; see the calendars template) --> 
    287304              <xsl:when test="/bedework/page='displayCalendarForExport'"> 
    288                 <xsl:apply-templates select="/bedework/currentCalendar" mode="export"/> 
     305                <xsl:apply-templates select="/bedework/currentCalendar" mode="export" /> 
    289306              </xsl:when> 
    290307 
    291               <!-- Layout for: Catch all for errors --> 
    292               <xsl:otherwise>Error: <xsl:value-of select="/bedework/page"/></xsl:otherwise> 
     308              <!-- Layout for: Catch all errors --> 
     309              <xsl:otherwise> 
     310                Error: <xsl:value-of select="/bedework/page" /> 
     311              </xsl:otherwise> 
    293312            </xsl:choose> 
    294313 
     
    296315          </div> 
    297316          <!-- footer --> 
    298           <xsl:call-template name="footer"/> 
     317          <xsl:call-template name="footer" /> 
    299318        </div> 
    300319 
    301        <!--=====  If we're running in production, send stats to google analytics ========--> 
    302        <xsl:variable name="server-name"><xsl:call-template name="current-server"/></xsl:variable> 
    303        <xsl:if test="$server-name='http://calendar.duke.edu'"> 
    304              <script type="text/javascript"> 
    305                  var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); 
    306                  document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); 
    307              </script> 
    308              <script type="text/javascript"> 
    309                  var pageTracker = _gat._getTracker("UA-2424370-34"); 
    310                  pageTracker._initData(); 
    311                  pageTracker._trackPageview(); 
    312              </script> 
    313          </xsl:if> 
     320        <!--=====  If we're running in production, send stats to google analytics ========--> 
     321        <xsl:variable name="server-name"> 
     322          <xsl:call-template name="current-server" /> 
     323        </xsl:variable> 
     324        <xsl:if 
     325          test="$server-name='http://calendar.myserver.edu'"> 
     326          <script type="text/javascript"> 
     327            var gaJsHost = (("https:" == 
     328            document.location.protocol) ? "https://ssl." : 
     329            "http://www."); 
     330            document.write(unescape("%3Cscript src='" + 
     331            gaJsHost + "google-analytics.com/ga.js' 
     332            type='text/javascript'%3E%3C/script%3E")); 
     333          </script> 
     334          <script type="text/javascript"> 
     335            var pageTracker = 
     336            _gat._getTracker("UA-2424370-34"); 
     337            pageTracker._initData(); 
     338            pageTracker._trackPageview(); 
     339          </script> 
     340        </xsl:if> 
    314341      </body> 
    315342    </html> 
     
    318345  <!--======= Display Left Column ===========--> 
    319346  <xsl:template name="display-left-column"> 
    320            <div class="left_column"> 
    321                  <xsl:call-template name="jsDateSelectionCal"/> 
    322                  <div class="clear">&#160;</div> 
    323                  <xsl:call-template name="display-side-bar"/> 
    324           </div> 
    325           <xsl:call-template name="groupsList"/> 
    326  </xsl:template> 
     347    <div class="left_column"> 
     348      <xsl:call-template name="jsDateSelectionCal" /> 
     349      <div class="clear">&#160;</div> 
     350      <xsl:call-template name="display-side-bar" /> 
     351    </div> 
     352    <xsl:call-template name="groupsList" /> 
     353  </xsl:template> 
    327354 
    328355  <!--======= Display Center Column ===========--> 
    329356  <xsl:template name="display-center-column"> 
    330            <div class="center_column" id="center_column"> 
    331                <div class="secondaryColHeader"> <xsl:call-template name="navigation"/> </div> 
    332                <xsl:call-template name="list-view"> 
    333                   <xsl:with-param name="node" select="."/> 
    334                   <xsl:with-param name="suite-name">Main</xsl:with-param> 
    335                </xsl:call-template> 
    336            </div> 
     357    <div class="center_column" id="center_column"> 
     358      <div class="secondaryColHeader"> 
     359        <xsl:call-template name="navigation" /> 
     360      </div> 
     361      <xsl:call-template name="list-view"> 
     362        <xsl:with-param name="node" select="." /> 
     363        <xsl:with-param name="suite-name">Main</xsl:with-param> 
     364      </xsl:call-template> 
     365    </div> 
    337366  </xsl:template> 
    338367 
    339368  <!--============= Display Side Bar ======--> 
    340369  <xsl:template name="display-side-bar"> 
    341          <xsl:call-template name="viewList"/> 
    342          <div class="sideBarContainer"> 
    343               <h4>FILTER BY GROUP/ ORG/ DEPT:</h4> 
    344               <ul class="sideLinks"> 
    345                   <li><a href="#" onClick="javascript:toggleDiv('groupListDiv'); toggleDiv('right_column'); toggleDiv('center_column');"> Group List </a> </li> 
    346               </ul> 
    347               <xsl:call-template name="display-events-calendar-info"/> 
    348               <xsl:call-template name="sideLinksList"/> 
    349          </div> 
     370    <xsl:call-template name="viewList" /> 
     371    <div class="sideBarContainer"> 
     372      <h4>FILTER BY GROUP/ ORG/ DEPT:</h4> 
     373      <ul class="sideLinks"> 
     374        <li> 
     375          <a href="#" 
     376            onClick="javascript:toggleDiv('groupListDiv'); toggleDiv('right_column'); toggleDiv('center_column');"> 
     377            Group List 
     378          </a> 
     379        </li> 
     380      </ul> 
     381      <xsl:call-template name="display-events-calendar-info" /> 
     382      <xsl:call-template name="sideLinksList" /> 
     383    </div> 
    350384  </xsl:template> 
    351385 
    352386  <!--============= Display Events Calendar Info ======--> 
    353387  <xsl:template name="display-events-calendar-info"> 
    354         <h4>EVENTS CALENDAR INFO: </h4> 
    355         <ul class="sideLinks"> 
    356             <li><a href="/caladmin"> Manage Events </a> </li> 
    357             <li><a href="/eventsubmit?setappvar=confirmed(no)"> Submit an Event </a> </li> 
    358      <li><a href="http://calendar.duke.edu/help"> Help </a> </li> 
    359         </ul> 
     388    <h4>EVENTS CALENDAR INFO:</h4> 
     389    <ul class="sideLinks"> 
     390      <li> 
     391        <a href="/caladmin">Manage Events</a> 
     392      </li> 
     393      <li> 
     394        <a href="/eventsubmit?setappvar=confirmed(no)"> 
     395          Submit an Event 
     396        </a> 
     397      </li> 
     398      <li> 
     399        <a href="http://calendar.duke.edu/help">Help</a> 
     400      </li> 
     401    </ul> 
    360402  </xsl:template> 
    361403 
     
    363405  <xsl:template match="system-data-structure"> 
    364406 
    365     <xsl:variable name="imageFilenameLEFT" select="left-image/image1/name"/> 
    366     <xsl:variable name="featureLinkLEFT" select="left-image/featureLink"/> 
    367     <xsl:variable name="toolTipLEFT" select="left-image/toolTip"/> 
    368   <xsl:variable name="imageFilenameCENTER" select="middle-image/image2/name"/> 
    369     <xsl:variable name="featureLinkCENTER" select="middle-image/featureLink"/> 
    370     <xsl:variable name="toolTipCENTER" select="middle-image/toolTip"/> 
    371   <xsl:variable name="imageFilenameRIGHT" select="right-image/image3/name"/> 
    372     <xsl:variable name="featureLinkRIGHT" select="right-image/featureLink"/> 
    373     <xsl:variable name="toolTipRIGHT" select="right-image/toolTip"/> 
     407    <xsl:variable name="imageFilenameLEFT" 
     408      select="left-image/image1/name" /> 
     409    <xsl:variable name="featureLinkLEFT" 
     410      select="left-image/featureLink" /> 
     411    <xsl:variable name="toolTipLEFT" select="left-image/toolTip" /> 
     412    <xsl:variable name="imageFilenameCENTER" 
     413      select="middle-image/image2/name" /> 
     414    <xsl:variable name="featureLinkCENTER" 
     415      select="middle-image/featureLink" /> 
     416    <xsl:variable name="toolTipCENTER" 
     417      select="middle-image/toolTip" /> 
     418    <xsl:variable name="imageFilenameRIGHT" 
     419      select="right-image/image3/name" /> 
     420    <xsl:variable name="featureLinkRIGHT" 
     421      select="right-image/featureLink" /> 
     422    <xsl:variable name="toolTipRIGHT" select="right-image/toolTip" /> 
    374423 
    375424    <xsl:choose> 
    376425      <xsl:when test="$featureLinkLEFT = ''"> 
    377         <img class="border" src="{$resourcesRoot}/data/FeaturedEvent/{$imageFilenameLEFT}" alt="{$toolTipLEFT}"/> 
     426        <img class="border" 
     427          src="{$resourcesRoot}/data/FeaturedEvent/{$imageFilenameLEFT}" 
     428          alt="{$toolTipLEFT}" /> 
    378429      </xsl:when> 
    379430      <xsl:otherwise> 
    380431        <a href="{$featureLinkLEFT}"> 
    381           <img class="border" src="{$resourcesRoot}/data/FeaturedEvent/{$imageFilenameLEFT}" alt="{$toolTipLEFT}"/> 
     432          <img class="border" 
     433            src="{$resourcesRoot}/data/FeaturedEvent/{$imageFilenameLEFT}" 
     434            alt="{$toolTipLEFT}" /> 
    382435        </a> 
    383436      </xsl:otherwise> 
    384437    </xsl:choose> 
    385438 
    386   <xsl:choose> 
     439    <xsl:choose> 
    387440      <xsl:when test="$featureLinkCENTER = ''"> 
    388         <img class="border" src="{$resourcesRoot}/data/FeaturedEvent/{$imageFilenameCENTER}" alt="{$toolTipCENTER}"/> 
     441        <img class="border" 
     442          src="{$resourcesRoot}/data/FeaturedEvent/{$imageFilenameCENTER}" 
     443          alt="{$toolTipCENTER}" /> 
    389444      </xsl:when> 
    390445      <xsl:otherwise> 
    391446        <a href="{$featureLinkCENTER}"> 
    392           <img class="border" src="{$resourcesRoot}/data/FeaturedEvent/{$imageFilenameCENTER}" alt="{$toolTipCENTER}"/> 
     447          <img class="border" 
     448            src="{$resourcesRoot}/data/FeaturedEvent/{$imageFilenameCENTER}" 
     449            alt="{$toolTipCENTER}" /> 
    393450        </a> 
    394451      </xsl:otherwise> 
    395452    </xsl:choose> 
    396453 
    397   <xsl:choose> 
     454    <xsl:choose> 
    398455      <xsl:when test="$featureLinkRIGHT = ''"> 
    399         <img src="{$resourcesRoot}/data/FeaturedEvent/{$imageFilenameRIGHT}" alt="{$toolTipRIGHT}"/> 
     456        <img 
     457          src="{$resourcesRoot}/data/FeaturedEvent/{$imageFilenameRIGHT}" 
     458          alt="{$toolTipRIGHT}" /> 
    400459      </xsl:when> 
    401460      <xsl:otherwise> 
    402461        <a href="{$featureLinkRIGHT}"> 
    403           <img src="{$resourcesRoot}/data/FeaturedEvent/{$imageFilenameRIGHT}" alt="{$toolTipRIGHT}"/> 
     462          <img 
     463            src="{$resourcesRoot}/data/FeaturedEvent/{$imageFilenameRIGHT}" 
     464            alt="{$toolTipRIGHT}" /> 
    404465        </a> 
    405466      </xsl:otherwise> 
     
    412473    <!-- Month to display (to be handed in to js, so it aligns with the events beeing shown) --> 
    413474    <xsl:variable name="displayMonthYear"> 
    414       <xsl:value-of select="substring(/bedework/currentdate/date,5,2)"/> 
     475      <xsl:value-of select="substring(/bedework/currentdate/date,5,2)" /> 
    415476      <xsl:text>/</xsl:text> 
    416       <xsl:value-of select="substring(/bedework/currentdate/date,0,5)"/> 
     477      <xsl:value-of select="substring(/bedework/currentdate/date,0,5)" /> 
    417478    </xsl:variable> 
    418  
    419479    <xsl:variable name="rangeStartMo"> 
    420       <xsl:value-of select="substring(/bedework/firstday/date,5,2)"/> 
     480      <xsl:value-of select="substring(/bedework/firstday/date,5,2)" /> 
    421481    </xsl:variable> 
    422  
    423482    <xsl:variable name="rangeStartDay"> 
    424       <xsl:value-of select="substring(/bedework/firstday/date,7,2)"/> 
     483      <xsl:value-of select="substring(/bedework/firstday/date,7,2)" /> 
    425484    </xsl:variable> 
    426  
    427485    <xsl:variable name="rangeStartYear"> 
    428       <xsl:value-of select="substring(/bedework/firstday/date,1,4)"/> 
     486      <xsl:value-of select="substring(/bedework/firstday/date,1,4)" /> 
    429487    </xsl:variable> 
    430  
    431488    <xsl:variable name="rangeEndMo"> 
    432       <xsl:value-of select="substring(/bedework/lastday/date,5,2)"/> 
     489      <xsl:value-of select="substring(/bedework/lastday/date,5,2)" /> 
    433490    </xsl:variable> 
    434  
    435491    <xsl:variable name="rangeEndDay"> 
    436       <xsl:value-of select="substring(/bedework/lastday/date,7,2)"/> 
     492      <xsl:value-of select="substring(/bedework/lastday/date,7,2)" /> 
    437493    </xsl:variable> 
    438  
    439494    <xsl:variable name="rangeEndYear"> 
    440       <xsl:value-of select="substring(/bedework/lastday/date,1,4)"/> 
     495      <xsl:value-of select="substring(/bedework/lastday/date,1,4)" /> 
    441496    </xsl:variable> 
    442       navcalendar = 
    443           [ 
    444           "<xsl:value-of select="$displayMonthYear"/>", 
    445           "<xsl:value-of select="$rangeStartMo"/>", 
    446           "<xsl:value-of select="$rangeStartDay"/>", 
    447           "<xsl:value-of select="$rangeStartYear"/>", 
    448           "<xsl:value-of select="$rangeEndMo"/>", 
    449           "<xsl:value-of select="$rangeEndDay"/>", 
    450           "<xsl:value-of select="$rangeEndYear"/>", 
    451           ]; 
    452   </xsl:template> 
     497    navcalendar = [ "<xsl:value-of select="$displayMonthYear" />", "<xsl:value-of select="$rangeStartMo" />", "<xsl:value-of select="$rangeStartDay" />", "<xsl:value-of select="$rangeStartYear" />", "<xsl:value-of select="$rangeEndMo" />", "<xsl:value-of select="$rangeEndDay" />", "<xsl:value-of select="$rangeEndYear" />", ]; 
     498  </xsl:template> 
     499 
    453500  <!--==== HEADER TEMPLATES and NAVIGATION  ====--> 
    454501  <!-- these templates are separated out for convenience and to simplify the default template --> 
    455502  <xsl:template name="dateTitleBar"> 
    456503    <xsl:choose> 
    457       <xsl:when test="/bedework/page='showSysStats' or /bedework/page='calendars'">&#160;</xsl:when> 
     504      <xsl:when 
     505        test="/bedework/page='showSysStats' or /bedework/page='calendars'"> 
     506        &#160; 
     507      </xsl:when> 
    458508      <xsl:otherwise> 
    459509        <div id="head-top"> 
    460510          <h1>Bedework Events Calendar</h1> 
    461           <p style="padding: 1em; background-color: #eee; border: 1px solid black;">In progress: <a href="?skinNameSticky=bwclassic">go to Bedework Classic</a></p> 
     511          <!-- p 
     512            style="padding: 1em; background-color: #eee; border: 1px solid black;"> 
     513            In progress: 
     514            <a href="?skinNameSticky=bwclassic"> 
     515              go to Bedework Classic 
     516            </a> 
     517          </p --> 
    462518        </div> 
    463         <a id="currentDate" href="{$setViewPeriod}&amp;viewType=todayView&amp;date={$curdate}"> 
    464           <xsl:value-of select="/bedework/now/longdate"/> 
     519        <a id="currentDate" 
     520          href="{$setViewPeriod}&amp;viewType=todayView&amp;date={$curdate}"> 
     521          <xsl:value-of select="/bedework/now/longdate" /> 
    465522        </a> 
    466523      </xsl:otherwise> 
     
    472529        <select name="viewStartDate.month"> 
    473530          <xsl:for-each select="/bedework/monthvalues/val"> 
    474             <xsl:variable name="temp" select="."/> 
    475             <xsl:variable name="pos" select="position()"/> 
     531            <xsl:variable name="temp" select="." /> 
     532            <xsl:variable name="pos" select="position()" /> 
    476533            <xsl:choose> 
    477               <xsl:when test="/bedework/monthvalues[start=$temp]"> 
    478                 <option value="{$temp}" selected="selected"> 
    479                   <xsl:value-of select="/bedework/monthlabels/val[position()=$pos]"/> 
     534              <xsl:when 
     535                test="/bedework/monthvalues[start=$temp]"> 
     536                <option value="{$temp}" 
     537                  selected="selected"> 
     538                  <xsl:value-of 
     539                    select="/bedework/monthlabels/val[position()=$pos]" /> 
    480540                </option> 
    481541              </xsl:when> 
    482542              <xsl:otherwise> 
    483543                <option value="{$temp}"> 
    484                   <xsl:value-of select="/bedework/monthlabels/val[position()=$pos]"/> 
     544                  <xsl:value-of 
     545                    select="/bedework/monthlabels/val[position()=$pos]" /> 
    485546                </option> 
    486547              </xsl:otherwise> 
     
    490551        <xsl:if test="/bedework/periodname!='Month'"> 
    491552          <select name="viewStartDate.day"> 
    492             <xsl:for-each select="/bedework/dayvalues/val"> 
    493               <xsl:variable name="temp" select="."/> 
    494               <xsl:variable name="pos" select="position()"/> 
     553            <xsl:for-each 
     554              select="/bedework/dayvalues/val"> 
     555              <xsl:variable name="temp" select="." /> 
     556              <xsl:variable name="pos" 
     557                select="position()" /> 
    495558              <xsl:choose> 
    496                 <xsl:when test="/bedework/dayvalues[start=$temp]"> 
    497                   <option value="{$temp}" selected="selected"> 
    498                     <xsl:value-of select="/bedework/daylabels/val[position()=$pos]"/> 
     559                <xsl:when 
     560                  test="/bedework/dayvalues[start=$temp]"> 
     561                  <option value="{$temp}" 
     562                    selected="selected"> 
     563                    <xsl:value-of 
     564                      select="/bedework/daylabels/val[position()=$pos]" /> 
    499565                  </option> 
    500566                </xsl:when> 
    501567                <xsl:otherwise> 
    502568                  <option value="{$temp}"> 
    503                     <xsl:value-of select="/bedework/daylabels/val[position()=$pos]"/> 
     569                    <xsl:value-of 
     570                      select="/bedework/daylabels/val[position()=$pos]" /> 
    504571                  </option> 
    505572                </xsl:otherwise> 
     
    509576        </xsl:if> 
    510577      </xsl:if> 
    511       <xsl:variable name="temp" select="/bedework/yearvalues/start"/> 
    512       <input type="text" name="viewStartDate.year" maxlength="4" size="4" value="{$temp}"/> 
    513       <input name="submit" type="submit" value="go"/> 
     578      <xsl:variable name="temp" 
     579        select="/bedework/yearvalues/start" /> 
     580      <input type="text" name="viewStartDate.year" maxlength="4" 
     581        size="4" value="{$temp}" /> 
     582      <input name="submit" type="submit" value="go" /> 
    514583    </form> 
    515584  </xsl:template> 
     
    518587    <div id="nav-search-wrap"> 
    519588      <!-- <xsl:if test="/bedework/page!='searchResult'"> --> 
    520       <form name="searchForm" id="basic_search" method="post" onsubmit="var bsearch = document.getElementById('basicsearchbox'); bsearch.value == '' ? bsearch.value += 'category:Main' : bsearch.value += ' AND category:Main'" action="{$search}"> 
    521       <!--advance search link  --> 
     589      <form name="searchForm" id="basic_search" method="post" 
     590        onsubmit="var bsearch = document.getElementById('basicsearchbox'); bsearch.value == '' ? bsearch.value += 'category:Main' : bsearch.value += ' AND category:Main'" 
     591        action="{$search}"> 
     592        <!--advance search link  --> 
    522593        <a href="{$search-next}">Advanced Search</a> 
    523         <!--<label for="query">Search </label>--><input type="text" name="query" id="basicsearchbox"/> 
    524         <input id="searchSubmit" type="submit" name="submit" value="Search" onmouseover="this.style.backgroundColor = '#273E6D'" onmouseout="this.style.backgroundColor = '#85C13D'"/> <!--   --> 
     594        <!--<label for="query">Search </label>--> 
     595        <input type="text" name="query" id="basicsearchbox" /> 
     596        <input id="searchSubmit" type="submit" name="submit" 
     597          value="Search" onmouseover="this.style.backgroundColor = '#273E6D'" 
     598          onmouseout="this.style.backgroundColor = '#85C13D'" /> 
     599        <!--   --> 
    525600      </form> 
    526601      <!-- </xsl:if> --> 
    527602      <ul id="nav-main"> 
    528             <xsl:variable name="currentClass">current</xsl:variable> 
    529             <li> 
    530               <a href="{$setViewPeriod}&amp;viewType=dayView&amp;date={$curdate}"> 
    531                 <xsl:if test="/bedework/periodname='Day'"> 
    532                   <xsl:attribute name="class"> 
    533                     <xsl:value-of select="$currentClass"/> 
     603        <xsl:variable name="currentClass">current</xsl:variable> 
     604        <li> 
     605          <a 
     606            href="{$setViewPeriod}&amp;viewType=dayView&amp;date={$curdate}"> 
     607            <xsl:if test="/bedework/periodname='Day'"> 
     608              <xsl:attribute name="class"> 
     609                    <xsl:value-of select="$currentClass" /> 
    534610                  </xsl:attribute> 
    535                 </xsl:if>DAY</a> 
    536             </li> 
    537             <li> 
    538               <a href="{$setViewPeriod}&amp;viewType=weekView&amp;date={$curdate}"> 
    539                 <xsl:if test="/bedework/periodname='Week'"> 
    540                   <xsl:attribute name="class"> 
    541                     <xsl:value-of select="$currentClass"/> 
     611            </xsl:if> 
     612            DAY 
     613          </a> 
     614        </li> 
     615        <li> 
     616          <a 
     617            href="{$setViewPeriod}&amp;viewType=weekView&amp;date={$curdate}"> 
     618            <xsl:if test="/bedework/periodname='Week'"> 
     619              <xsl:attribute name="class"> 
     620                    <xsl:value-of select="$currentClass" /> 
    542621                  </xsl:attribute> 
    543                 </xsl:if>WEEK</a> 
    544             </li> 
    545             <li> 
    546               <a href="{$setViewPeriod}&amp;viewType=monthView&amp;date={$curdate}"><xsl:if test="/bedework/periodname='Month'"> 
    547                   <xsl:attribute name="class"> 
    548                     <xsl:value-of select="$currentClass"/> 
     622            </xsl:if> 
     623            WEEK 
     624          </a> 
     625        </li> 
     626        <li> 
     627          <a 
     628            href="{$setViewPeriod}&amp;viewType=monthView&amp;date={$curdate}"> 
     629            <xsl:if test="/bedework/periodname='Month'"> 
     630              <xsl:attribute name="class"> 
     631                    <xsl:value-of select="$currentClass" /> 
    549632                  </xsl:attribute> 
    550                 </xsl:if>MONTH</a> 
    551             </li> 
    552             <li> 
    553               <a href="{$setViewPeriod}&amp;viewType=yearView&amp;date={$curdate}"> 
    554                 <xsl:if test="/bedework/periodname='Year'"> 
    555                   <xsl:attribute name="class"> 
    556                     <xsl:value-of select="$currentClass"/> 
     633            </xsl:if> 
     634            MONTH 
     635          </a> 
     636        </li> 
     637        <li> 
     638          <a 
     639            href="{$setViewPeriod}&amp;viewType=yearView&amp;date={$curdate}"> 
     640            <xsl:if test="/bedework/periodname='Year'"> 
     641              <xsl:attribute name="class"> 
     642                    <xsl:value-of select="$currentClass" /> 
    557643                  </xsl:attribute> 
    558                 </xsl:if>YEAR</a> 
    559             </li> 
     644            </xsl:if> 
     645            YEAR 
     646          </a> 
     647        </li> 
    560648      </ul> 
    561649      <div class="clear">&#160;</div> 
     
    566654  <xsl:template name="jsDateSelectionCal"> 
    567655    <div id="cal1" class="calContainer"> 
    568       <xsl:call-template name="dateSelectForm"/> 
    569       <p>To view the interactive calendar, please enable Javascript on your browser.</p> 
     656      <xsl:call-template name="dateSelectForm" /> 
     657      <p> 
     658        To view the interactive calendar, please enable 
     659        Javascript on your browser. 
     660      </p> 
    570661    </div> 
    571662  </xsl:template> 
    572663 
    573  <xsl:template name="ongoingEventList"> 
     664  <xsl:template name="ongoingEventList"> 
    574665    <h3 class="secondaryColHeader">Ongoing</h3> 
    575666    <ul class="eventList"> 
    576       <xsl:for-each select="/bedework/eventscalendar/year/month/week/day/event[(categories/category[value|word = 'Main']) and (categories/category[value|word = 'Ongoing']) and not(categories/category[value|word = 'Local'])]"> 
    577       <xsl:sort select="start/unformatted" order="ascending" data-type="number"/> 
    578         <xsl:sort select="id" data-type="number"/> 
    579         <xsl:variable name="lastId" select="id"/> 
     667      <xsl:for-each 
     668        select="/bedework/eventscalendar/year/month/week/day/event[(categories/category[value|word = 'Main']) and (categories/category[value|word = 'Ongoing']) and not(categories/category[value|word = 'Local'])]"> 
     669        <xsl:sort select="start/unformatted" order="ascending" 
     670          data-type="number" /> 
     671        <xsl:sort select="id" data-type="number" /> 
     672        <xsl:variable name="lastId" select="id" /> 
    580673        <xsl:if test="not(preceding::event[id=$lastId])"> 
    581          <xsl:choose> 
    582               <xsl:when test="(/bedework/appvar[key = 'group']/value = /bedework/urlPrefixes/groups/group/eventOwner) and (not(/bedework/appvar[key = 'category']/value) or (/bedework/appvar[key = 'category']/value = 'all'))"> 
    583                 <xsl:variable name="creator" select="creator"/> 
    584             <xsl:variable name="envgroup" select="/bedework/appvar[key = 'group']/value"/> 
    585             <xsl:variable name="cosponsor" select="xproperties/X-BEDEWORK-CS/parameters/X-BEDEWORK-PARAM-DESCRIPTION"/> 
    586             <xsl:choose> 
    587                   <xsl:when test="/bedework/appvar[key = 'group']/value = $creator"> 
    588                 <xsl:call-template name="ongoingEvent"/> 
    589               </xsl:when> 
    590               <xsl:when test="contains($cosponsor, concat($envgroup,','))"> 
    591                 <xsl:call-template name="ongoingEvent"/> 
     674          <xsl:choose> 
     675            <xsl:when 
     676              test="(/bedework/appvar[key = 'group']/value = /bedework/urlPrefixes/groups/group/eventOwner) and (not(/bedework/appvar[key = 'category']/value) or (/bedework/appvar[key = 'category']/value = 'all'))"> 
     677              <xsl:variable name="creator" 
     678                select="creator" /> 
     679              <xsl:variable name="envgroup" 
     680                select="/bedework/appvar[key = 'group']/value" /> 
     681              <xsl:variable name="cosponsor" 
     682                select="xproperties/X-BEDEWORK-CS/parameters/X-BEDEWORK-PARAM-DESCRIPTION" /> 
     683              <xsl:choose> 
     684                <xsl:when 
     685                  test="/bedework/appvar[key = 'group']/value = $creator"> 
     686                  <xsl:call-template 
     687                    name="ongoingEvent" /> 
     688                </xsl:when> 
     689                <xsl:when 
     690                  test="contains($cosponsor, concat($envgroup,','))"> 
     691                  <xsl:call-template 
     692                    name="ongoingEvent" /> 
    592693                </xsl:when> 
    593694              </xsl:choose> 
    594               </xsl:when> 
    595             <xsl:when test="not(/bedework/appvar[key = 'group']/value = /bedework/urlPrefixes/groups/group/eventOwner) and (/bedework/appvar[key = 'category']/value) and not(/bedework/appvar[key = 'category']/value = 'all')"> 
    596                   <xsl:call-template name="split-for-ongoing"> 
    597                     <xsl:with-param name="list"><xsl:value-of select="/bedework/appvar[key = 'category']/value"/></xsl:with-param> 
    598                       <xsl:with-param name="delimiter">~</xsl:with-param> 
     695            </xsl:when> 
     696            <xsl:when 
     697              test="not(/bedework/appvar[key = 'group']/value = /bedework/urlPrefixes/groups/group/eventOwner) and (/bedework/appvar[key = 'category']/value) and not(/bedework/appvar[key = 'category']/value = 'all')"> 
     698              <xsl:call-template 
     699                name="split-for-ongoing"> 
     700                <xsl:with-param name="list"> 
     701                  <xsl:value-of 
     702                    select="/bedework/appvar[key = 'category']/value" /> 
     703                </xsl:with-param> 
     704                <xsl:with-param name="delimiter"> 
     705                  ~ 
     706                </xsl:with-param> 
    599707              </xsl:call-template> 
    600               </xsl:when> 
    601             <xsl:when test="(/bedework/appvar[key = 'group']/value = /bedework/urlPrefixes/groups/group/eventOwner) and (/bedework/appvar[key = 'category']/value) and not(/bedework/appvar[key = 'category']/value = 'all')"> 
    602                 <xsl:variable name="creator" select="creator"/> 
    603             <xsl:variable name="envgroup" select="/bedework/appvar[key = 'group']/value"/> 
    604             <xsl:variable name="cosponsor" select="xproperties/X-BEDEWORK-CS/parameters/X-BEDEWORK-PARAM-DESCRIPTION"/> 
    605             <xsl:choose> 
    606                   <xsl:when test="/bedework/appvar[key = 'group']/value = $creator"> 
    607                 <xsl:call-template name="split-for-ongoing"> 
    608                       <xsl:with-param name="list"><xsl:value-of select="/bedework/appvar[key = 'category']/value"/></xsl:with-param> 
    609                         <xsl:with-param name="delimiter">~</xsl:with-param> 
    610                 </xsl:call-template> 
    611               </xsl:when> 
    612               <xsl:when test="contains($cosponsor, concat($envgroup,','))"> 
    613                 <xsl:call-template name="split-for-ongoing"> 
    614                       <xsl:with-param name="list"><xsl:value-of select="/bedework/appvar[key = 'category']/value"/></xsl:with-param> 
    615                         <xsl:with-param name="delimiter">~</xsl:with-param> 
    616                 </xsl:call-template> 
     708            </xsl:when> 
     709            <xsl:when 
     710              test="(/bedework/appvar[key = 'group']/value = /bedework/urlPrefixes/groups/group/eventOwner) and (/bedework/appvar[key = 'category']/value) and not(/bedework/appvar[key = 'category']/value = 'all')"> 
     711              <xsl:variable name="creator" 
     712                select="creator" /> 
     713              <xsl:variable name="envgroup" 
     714                select="/bedework/appvar[key = 'group']/value" /> 
     715              <xsl:variable name="cosponsor" 
     716                select="xproperties/X-BEDEWORK-CS/parameters/X-BEDEWORK-PARAM-DESCRIPTION" /> 
     717              <xsl:choose> 
     718                <xsl:when 
     719                  test="/bedework/appvar[key = 'group']/value = $creator"> 
     720                  <xsl:call-template 
     721                    name="split-for-ongoing"> 
     722                    <xsl:with-param name="list"> 
     723                      <xsl:value-of 
     724                        select="/bedework/appvar[key = 'category']/value" /> 
     725                    </xsl:with-param> 
     726                    <xsl:with-param 
     727                      name="delimiter"> 
     728                      ~ 
     729                    </xsl:with-param> 
     730                  </xsl:call-template> 
     731                </xsl:when> 
     732                <xsl:when 
     733                  test="contains($cosponsor, concat($envgroup,','))"> 
     734                  <xsl:call-template 
     735                    name="split-for-ongoing"> 
     736                    <xsl:with-param name="list"> 
     737                      <xsl:value-of 
     738                        select="/bedework/appvar[key = 'category']/value" /> 
     739                    </xsl:with-param> 
     740                    <xsl:with-param 
     741                      name="delimiter"> 
     742                      ~ 
     743                    </xsl:with-param> 
     744                  </xsl:call-template> 
    617745                </xsl:when> 
    618746              </xsl:choose> 
    619               </xsl:when> 
    620               <xsl:otherwise> 
    621                   <xsl:call-template name="ongoingEvent"/> 
    622               </xsl:otherwise> 
     747            </xsl:when> 
     748            <xsl:otherwise> 
     749              <xsl:call-template name="ongoingEvent" /> 
     750            </xsl:otherwise> 
    623751          </xsl:choose> 
    624        </xsl:if> 
    625   </xsl:for-each> 
    626      </ul> 
    627   </xsl:template> 
    628  
    629  
    630  <xsl:template name="split-for-ongoing"> 
    631    <xsl:param name="list"/> 
    632    <xsl:param name="delimiter"/> 
    633    <xsl:variable name="newlist"> 
    634    <xsl:choose> 
    635    <xsl:when test="contains($list, $delimiter)"><xsl:value-of select="normalize-space($list)"/></xsl:when> 
    636               <xsl:otherwise><xsl:value-of select="concat(normalize-space($list), $delimiter)"/></xsl:otherwise> 
    637            </xsl:choose> 
    638        </xsl:variable> 
    639        <xsl:variable name="first" select="substring-before($newlist, $delimiter)"/> 
    640         <xsl:variable name="remaining" select="substring-after($newlist, $delimiter)"/> 
     752        </xsl:if> 
     753      </xsl:for-each> 
     754    </ul> 
     755  </xsl:template> 
     756 
     757 
     758  <xsl:template name="split-for-ongoing"> 
     759    <xsl:param name="list" /> 
     760    <xsl:param name="delimiter" /> 
     761    <xsl:variable name="newlist"> 
    641762      <xsl:choose> 
    642         <xsl:when test="$first = categories/category/value"> 
    643           <xsl:call-template name="ongoingEvent"/> 
     763        <xsl:when test="contains($list, $delimiter)"> 
     764          <xsl:value-of select="normalize-space($list)" /> 
    644765        </xsl:when> 
     766        <xsl:otherwise> 
     767          <xsl:value-of 
     768            select="concat(normalize-space($list), $delimiter)" /> 
     769        </xsl:otherwise> 
     770      </xsl:choose> 
     771    </xsl:variable> 
     772    <xsl:variable name="first" 
     773      select="substring-before($newlist, $delimiter)" /> 
     774    <xsl:variable name="remaining" 
     775      select="substring-after($newlist, $delimiter)" /> 
     776    <xsl:choose> 
     777      <xsl:when test="$first = categories/category/value"> 
     778        <xsl:call-template name="ongoingEvent" /> 
     779      </xsl:when> 
    645780      <xsl:when test="$first = categories/category/word"> 
    646           <xsl:call-template name="ongoingEvent"/> 
    647         </xsl:when> 
     781        <xsl:call-template name="ongoingEvent" /> 
     782      </xsl:when> 
    648783      <xsl:otherwise> 
    649           <xsl:if test="$remaining"> 
    650             <xsl:call-template name="split-for-ongoing"> 
    651                 <xsl:with-param name="list" select="$remaining"/> 
    652                 <xsl:with-param name="delimiter"><xsl:value-of select="$delimiter"/></xsl:with-param> 
    653             </xsl:call-template> 
     784        <xsl:if test="$remaining"> 
     785          <xsl:call-template name="split-for-ongoing"> 
     786            <xsl:with-param name="list" select="$remaining" /> 
     787            <xsl:with-param name="delimiter"> 
     788              <xsl:value-of select="$delimiter" /> 
     789            </xsl:with-param> 
     790          </xsl:call-template> 
    654791        </xsl:if> 
    655792      </xsl:otherwise> 
     793    </xsl:choose> 
     794  </xsl:template> 
     795 
     796  <xsl:template name="ongoingEvent"> 
     797    <li> 
     798      <xsl:variable name="subscriptionId" 
     799        select="subscription/id" /> 
     800      <xsl:variable name="calPath" select="calendar/encodedPath" /> 
     801      <xsl:variable name="guid" select="guid" /> 
     802      <xsl:variable name="recurrenceId" select="recurrenceId" /> 
     803      <xsl:variable name="statusClass"> 
     804        <xsl:choose> 
     805          <xsl:when test="status='CANCELLED'"> 
     806            bwStatusCancelled 
     807          </xsl:when> 
     808          <xsl:when test="status='TENTATIVE'"> 
     809            bwStatusTentative 
     810          </xsl:when> 
     811          <xsl:otherwise>bwStatusConfirmed</xsl:otherwise> 
    656812        </xsl:choose> 
    657   </xsl:template> 
    658  
    659  <xsl:template name="ongoingEvent"> 
    660       <li> 
    661           <xsl:variable name="subscriptionId" select="subscription/id"/> 
    662           <xsl:variable name="calPath" select="calendar/encodedPath"/> 
    663           <xsl:variable name="guid" select="guid"/> 
    664           <xsl:variable name="recurrenceId" select="recurrenceId"/> 
    665           <xsl:variable name="statusClass"> 
    666             <xsl:choose> 
    667               <xsl:when test="status='CANCELLED'">bwStatusCancelled</xsl:when> 
    668               <xsl:when test="status='TENTATIVE'">bwStatusTentative</xsl:when> 
    669               <xsl:otherwise>bwStatusConfirmed</xsl:otherwise> 
    670             </xsl:choose> 
    671           </xsl:variable> 
    672           <xsl:if test="status != 'CONFIRMED'"> 
    673             <xsl:value-of select="status"/> 
    674             <xsl:text>: </xsl:text> 
    675           </xsl:if> 
    676           <xsl:value-of select="summary"/>, 
    677        Ends <xsl:value-of select="end/shortdate"/><xsl:text> </xsl:text><xsl:value-of select="end/time"/> 
    678           <xsl:text> |</xsl:text> 
    679           <a href="{$eventView}&amp;subid={$subscriptionId}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}">more</a> 
    680           <xsl:text>|</xsl:text> 
    681         </li> 
    682 </xsl:template> 
     813      </xsl:variable> 
     814      <xsl:if test="status != 'CONFIRMED'"> 
     815        <xsl:value-of select="status" /> 
     816        <xsl:text>: </xsl:text> 
     817      </xsl:if> 
     818      <xsl:value-of select="summary" /> 
     819      , Ends 
     820      <xsl:value-of select="end/shortdate" /> 
     821      <xsl:text> </xsl:text> 
     822      <xsl:value-of select="end/time" /> 
     823      <xsl:text> |</xsl:text> 
     824      <a 
     825        href="{$eventView}&amp;subid={$subscriptionId}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}"> 
     826        more 
     827      </a> 
     828      <xsl:text>|</xsl:text> 
     829    </li> 
     830  </xsl:template> 
    683831 
    684832  <!-- Notices List --> 
     
    686834    <h3 class="secondaryColHeader">Notices</h3> 
    687835    <ul> 
    688       <xsl:for-each select="/bedework/eventscalendar/year/month/week/day/event[categories/category/value = 'Reminder']"> 
    689           <li> 
    690             <xsl:variable name="subscriptionId" select="subscription/id"/> 
    691             <xsl:variable name="calPath" select="calendar/encodedPath"/> 
    692             <xsl:variable name="guid" select="guid"/> 
    693             <xsl:variable name="recurrenceId" select="recurrenceId"/> 
    694             <xsl:variable name="statusClass"> 
    695               <xsl:choose> 
    696                 <xsl:when test="status='CANCELLED'">bwStatusCancelled</xsl:when> 
    697                 <xsl:when test="status='TENTATIVE'">bwStatusTentative</xsl:when> 
    698                 <xsl:otherwise>bwStatusConfirmed</xsl:otherwise> 
    699               </xsl:choose> 
    700             </xsl:variable> 
    701             <xsl:if test="status != 'CONFIRMED'"> 
    702               <xsl:value-of select="status"/> 
    703               <xsl:text>: </xsl:text> 
    704             </xsl:if> 
    705             <xsl:value-of select="summary"/> 
    706             <xsl:text> | </xsl:text> 
    707             <a href="{$eventView}&amp;subid={$subscriptionId}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}">more</a> 
    708             <xsl:text> |</xsl:text> 
    709           </li> 
     836      <xsl:for-each 
     837        select="/bedework/eventscalendar/year/month/week/day/event[categories/category/value = 'Reminder']"> 
     838        <li> 
     839          <xsl:variable name="subscriptionId" 
     840            select="subscription/id" /> 
     841          <xsl:variable name="calPath" 
     842            select="calendar/encodedPath" /> 
     843          <xsl:variable name="guid" select="guid" /> 
     844          <xsl:variable name="recurrenceId" 
     845            select="recurrenceId" /> 
     846          <xsl:variable name="statusClass"> 
     847            <xsl:choose> 
     848              <xsl:when test="status='CANCELLED'"> 
     849                bwStatusCancelled 
     850              </xsl:when> 
     851              <xsl:when test="status='TENTATIVE'"> 
     852                bwStatusTentative 
     853              </xsl:when> 
     854              <xsl:otherwise> 
     855                bwStatusConfirmed 
     856              </xsl:otherwise> 
     857            </xsl:choose> 
     858          </xsl:variable> 
     859          <xsl:if test="status != 'CONFIRMED'"> 
     860            <xsl:value-of select="status" /> 
     861            <xsl:text>: </xsl:text> 
     862          </xsl:if> 
     863          <xsl:value-of select="summary" /> 
     864          <xsl:text> | </xsl:text> 
     865          <a 
     866            href="{$eventView}&amp;subid={$subscriptionId}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}"> 
     867            more 
     868          </a> 
     869          <xsl:text> |</xsl:text> 
     870        </li> 
    710871      </xsl:for-each> 
    711872    </ul> 
     
    714875  <!-- View List --> 
    715876  <xsl:template name="viewList"> 
    716     <div class="secondaryColHeader"><h3>Calendar Views</h3></div> 
     877    <div class="secondaryColHeader"> 
     878      <h3>Calendar Views</h3> 
     879    </div> 
    717880    <ul class="viewList"> 
    718881      <!-- <xsl:for-each select="/bedework/views/view"> 
    719882        <xsl:variable name="viewName" select="name/text()"/> 
    720883        <li> 
    721           <a href="{$setSelection}&amp;viewName={$viewName}"> 
    722             <xsl:if test="$viewName = (/bedework/selectionState/view/name)"> 
    723               <xsl:attribute name="class">current</xsl:attribute> 
    724             </xsl:if> 
    725             <xsl:value-of select="$viewName"/> 
    726           </a> 
     884        <a href="{$setSelection}&amp;viewName={$viewName}"> 
     885        <xsl:if test="$viewName = (/bedework/selectionState/view/name)"> 
     886        <xsl:attribute name="class">current</xsl:attribute> 
     887        </xsl:if> 
     888        <xsl:value-of select="$viewName"/> 
     889        </a> 
    727890        </li> 
    728       </xsl:for-each> --> 
    729     <li> 
    730           <a href="/cal/?setappvar=category(all)&amp;setappvar=categoryclass(all)"> 
    731             <xsl:if test="((/bedework/appvar[key = 'categoryclass']/value = 'all') or not(/bedework/appvar[key = 'categoryclass']/value))"> 
     891        </xsl:for-each> --> 
     892      <li> 
     893        <a 
     894          href="/cal/?setappvar=category(all)&amp;setappvar=categoryclass(all)"> 
     895          <xsl:if 
     896            test="((/bedework/appvar[key = 'categoryclass']/value = 'all') or not(/bedework/appvar[key = 'categoryclass']/value))"> 
     897            <xsl:attribute name="class">current</xsl:attribute> 
     898          </xsl:if> 
     899          All 
     900        </a> 
     901      </li> 
     902      <li> 
     903        <!-- <a href="/cal/?setappvar=category(Academic Calendar Dates)&amp;setappvar=categoryclass(Academic Calendar Dates)"> 
     904          <xsl:if test="/bedework/appvar[key = 'categoryclass']/value = 'Academic Calendar Dates'"> 
     905          <xsl:attribute name="class">current</xsl:attribute> 
     906          </xsl:if> --> 
     907        <a 
     908          href="http://www.registrar.duke.edu/registrar/studentpages/student/academicalendars.html"> 
     909          Official Academic Calendar 
     910        </a> 
     911      </li> 
     912      <li> 
     913        <a 
     914          href="/cal/?setappvar=category(Concert/Music~ Dance Performance~ Exhibit~ Masterclass~ Movie/Film~ Reading~ Theater)&amp;setappvar=categoryclass(Arts)"> 
     915          <xsl:if 
     916            test="/bedework/appvar[key = 'categoryclass']/value = 'Arts'"> 
     917            <xsl:attribute name="class">current</xsl:attribute> 
     918          </xsl:if> 
     919          Arts 
     920        </a> 
     921        <span id="artsClicker">+</span> 
     922        <ul id="artsSub" style="height:0px" 
     923          class="subviewList"> 
     924          <xsl:choose> 
     925            <xsl:when 
     926              test="/bedework/appvar[key = 'categoryclass']/value = 'Arts'"> 
     927              <xsl:attribute name="style">height:170px</xsl:attribute> 
     928            </xsl:when> 
     929            <xsl:otherwise> 
     930              <xsl:attribute name="style">height:0px</xsl:attribute> 
     931            </xsl:otherwise> 
     932          </xsl:choose> 
     933          <li> 
     934            <a 
     935              href="/cal/?setappvar=category(Concert/Music)&amp;setappvar=categoryclass(Arts)"> 
     936              <xsl:if 
     937                test="/bedework/appvar[key = 'category']/value = 'Concert/Music'"> 
     938                <xsl:attribute name="class">current</xsl:attribute> 
     939              </xsl:if> 
     940              Concert/Music 
     941            </a> 
     942          </li> 
     943          <li> 
     944            <a 
     945              href="/cal/?setappvar=category(Dance Performance)&amp;setappvar=categoryclass(Arts)"> 
     946              <xsl:if 
     947                test="/bedework/appvar[key = 'category']/value = 'Dance Performance'"> 
     948                <xsl:attribute name="class">current</xsl:attribute> 
     949              </xsl:if> 
     950              Dance Performance 
     951            </a> 
     952          </li> 
     953          <li> 
     954            <a 
     955              href="/cal/?setappvar=category(Exhibit)&amp;setappvar=categoryclass(Arts)"> 
     956              <xsl:if 
     957                test="/bedework/appvar[key = 'category']/value = 'Exhibit'"> 
     958                <xsl:attribute name="class">current</xsl:attribute> 
     959              </xsl:if> 
     960              Exhibit 
     961            </a> 
     962          </li> 
     963          <li> 
     964            <a 
     965              href="/cal/?setappvar=category(Masterclass)&amp;setappvar=categoryclass(Arts)"> 
     966              <xsl:if 
     967                test="/bedework/appvar[key = 'category']/value = 'Masterclass'"> 
     968                <xsl:attribute name="class">current</xsl:attribute> 
     969              </xsl:if> 
     970              Masterclass 
     971            </a> 
     972          </li> 
     973          <li> 
     974            <a 
     975              href="/cal/?setappvar=category(Movie/Film)&amp;setappvar=categoryclass(Arts)"> 
     976              <xsl:if 
     977                test="/bedework/appvar[key = 'category']/value = 'Movie/Film'"> 
     978                <xsl:attribute name="class">current</xsl:attribute> 
     979              </xsl:if> 
     980              Movie/Film 
     981            </a> 
     982          </li> 
     983          <li> 
     984            <a 
     985              href="/cal/?setappvar=category(Reading)&amp;setappvar=categoryclass(Arts)"> 
     986              <xsl:if 
     987                test="/bedework/appvar[key = 'category']/value = 'Reading'"> 
     988                <xsl:attribute name="class">current</xsl:attribute> 
     989              </xsl:if> 
     990              Reading 
     991            </a> 
     992          </li> 
     993          <li> 
     994            <a 
     995              href="/cal/?setappvar=category(Theater)&amp;setappvar=categoryclass(Arts)"> 
     996              <xsl:if 
     997                test="/bedework/appvar[key = 'category']/value = 'Theater'"> 
     998                <xsl:attribute name="class">current</xsl:attribute> 
     999              </xsl:if> 
     1000              Theater 
     1001            </a> 
     1002          </li> 
     1003        </ul> 
     1004      </li> 
     1005      <li> 
     1006        <a 
     1007          href="/cal/?setappvar=category(Athletics/Intramurals/Recreation~ Athletics/Varsity Sports/Men~ Athletics/Varsity Sports/Women)&amp;setappvar=categoryclass(Athletics/Recreation)"> 
     1008          <xsl:if 
     1009            test="/bedework/appvar[key = 'categoryclass']/value = 'Athletics/Recreation'"> 
     1010            <xsl:attribute name="class">current</xsl:attribute> 
     1011          </xsl:if> 
     1012          Athletics/Recreation 
     1013        </a> 
     1014        <span id="athleticsClicker">+</span> 
     1015        <ul id="athleticsSub" class="subviewList"> 
     1016          <xsl:choose> 
     1017            <xsl:when 
     1018              test="/bedework/appvar[key = 'categoryclass']/value = 'Athletics/Recreation'"> 
     1019              <xsl:attribute name="style">height:75px</xsl:attribute> 
     1020            </xsl:when> 
     1021            <xsl:otherwise> 
     1022              <xsl:attribute name="style">height:0px</xsl:attribute> 
     1023            </xsl:otherwise> 
     1024          </xsl:choose> 
     1025          <li> 
     1026            <a 
     1027              href="/cal/?setappvar=category(Athletics/Varsity Sports/Men)&amp;setappvar=categoryclass(Athletics/Recreation)"> 
     1028              <xsl:if 
     1029                test="/bedework/appvar[key = 'category']/value = 'Athletics/Varsity Sports/Men'"> 
     1030                <xsl:attribute name="class">current</xsl:attribute> 
     1031              </xsl:if> 
     1032              Athletics/Varsity Sports/Men 
     1033            </a> 
     1034          </li> 
     1035          <li> 
     1036            <a 
     1037              href="/cal/?setappvar=category(Athletics/Varsity Sports/Women)&amp;setappvar=categoryclass(Athletics/Recreation)"> 
     1038              <xsl:if 
     1039                test="/bedework/appvar[key = 'category']/value = 'Athletics/Varsity Sports/Women'"> 
     1040                <xsl:attribute name="class">current</xsl:attribute> 
     1041              </xsl:if> 
     1042              Athletics/Varsity Sports/Women 
     1043            </a> 
     1044          </li> 
     1045          <li> 
     1046            <a 
     1047              href="/cal/?setappvar=category(Athletics/Intramurals/Recreation)&amp;setappvar=categoryclass(Athletics/Recreation)"> 
     1048              <xsl:if 
     1049                test="/bedework/appvar[key = 'category']/value = 'Athletics/Intramurals/Recreation'"> 
     1050                <xsl:attribute name="class">current</xsl:attribute> 
     1051              </xsl:if> 
     1052              Athletics/Intramurals/Recreation 
     1053            </a> 
     1054          </li> 
     1055        </ul> 
     1056      </li> 
     1057      <li> 
     1058        <a 
     1059          href="/cal/?setappvar=category(Conference/Symposium~ Lecture/Talk~ Panel/Seminar/Colloquium)&amp;setappvar=categoryclass(Lectures/Conferences)"> 
     1060          <xsl:if 
     1061            test="/bedework/appvar[key = 'categoryclass']/value = 'Lectures/Conferences'"> 
     1062            <xsl:attribute name="class">current</xsl:attribute> 
     1063          </xsl:if> 
     1064          Lectures/Conferences 
     1065        </a> 
     1066        <span id="lecturesClicker">+</span> 
     1067        <ul id="lecturesSub" class="subviewList"> 
     1068          <xsl:choose> 
     1069            <xsl:when 
     1070              test="/bedework/appvar[key = 'categoryclass']/value = 'Lectures/Conferences'"> 
     1071              <xsl:attribute name="style">height:75px</xsl:attribute> 
     1072            </xsl:when> 
     1073            <xsl:otherwise> 
     1074              <xsl:attribute name="style">height:0px</xsl:attribute> 
     1075            </xsl:otherwise> 
     1076          </xsl:choose> 
     1077          <li> 
     1078            <a 
     1079              href="/cal/?setappvar=category(Conference/Symposium)&amp;setappvar=categoryclass(Lectures/Conferences)"> 
     1080              <xsl:if 
     1081                test="/bedework/appvar[key = 'category']/value = 'Conference/Symposium'"> 
     1082                <xsl:attribute name="class">current</xsl:attribute> 
     1083              </xsl:if> 
     1084              Conference/Symposium 
     1085            </a> 
     1086          </li> 
     1087          <li> 
     1088            <a 
     1089              href="/cal/?setappvar=category(Lecture/Talk)&amp;setappvar=categoryclass(Lectures/Conferences)"> 
     1090              <xsl:if 
     1091                test="/bedework/appvar[key = 'category']/value = 'Lecture/Talk'"> 
     1092                <xsl:attribute name="class">current</xsl:attribute> 
     1093              </xsl:if> 
     1094              Lecture/Talk 
     1095            </a> 
     1096          </li> 
     1097          <li> 
     1098            <a 
     1099              href="/cal/?setappvar=category(Panel/Seminar/Colloquium)&amp;setappvar=categoryclass(Lectures/Conferences)"> 
     1100              <xsl:if 
     1101                test="/bedework/appvar[key = 'category']/value = 'Panel/Seminar/Colloquium'"> 
     1102                <xsl:attribute name="class">current</xsl:attribute> 
     1103              </xsl:if> 
     1104              Panel/Seminar/Colloquium 
     1105            </a> 
     1106          </li> 
     1107        </ul> 
     1108      </li> 
     1109      <li> 
     1110        <a 
     1111          href="/cal/?setappvar=category(Religious/Spiritual)&amp;setappvar=categoryclass(Religious/Spiritual)"> 
     1112          <xsl:if 
     1113            test="/bedework/appvar[key = 'categoryclass']/value = 'Religious/Spiritual'"> 
     1114            <xsl:attribute name="class">current</xsl:attribute> 
     1115          </xsl:if> 
     1116          Religious/Spiritual 
     1117        </a> 
     1118      </li> 
     1119      <li> 
     1120        <a 
     1121          href="/cal/?setappvar=category(Commencement~ Founders' Day~ Holiday~ MLK~ Parents' and Family Weekend)&amp;setappvar=categoryclass(University Events)"> 
     1122          <xsl:if 
     1123            test="/bedework/appvar[key = 'categoryclass']/value = 'University Events'"> 
     1124            <xsl:attribute name="class">current</xsl:attribute> 
     1125          </xsl:if> 
     1126          University Events 
     1127        </a> 
     1128        <span id="lifeClicker">+</span> 
     1129        <ul id="lifeSub" class="subviewList"> 
     1130          <xsl:choose> 
     1131            <xsl:when 
     1132              test="/bedework/appvar[key = 'categoryclass']/value = 'University Events'"> 
     1133              <xsl:attribute name="style">height:135px</xsl:attribute> 
     1134            </xsl:when> 
     1135            <xsl:otherwise> 
     1136              <xsl:attribute name="style">height:0px</xsl:attribute> 
     1137            </xsl:otherwise> 
     1138          </xsl:choose> 
     1139          <li> 
     1140            <a 
     1141              href="/cal/main/setViewPeriod.do?setappvar=category(Commencement)&amp;setappvar=categoryclass(University Events)&amp;date=20100501&amp;viewType=monthView"> 
     1142              <xsl:if 
     1143                test="/bedework/appvar[key = 'category']/value = 'Commencement'"> 
     1144                <xsl:attribute name="class">current</xsl:attribute> 
     1145              </xsl:if> 
     1146              Commencement 
     1147            </a> 
     1148          </li> 
     1149          <li> 
     1150            <a 
     1151              href="/cal/main/setViewPeriod.do?setappvar=category(Founders' Day)&amp;setappvar=categoryclass(University Events)&amp;date=20091001&amp;viewType=monthView"> 
     1152              <xsl:if 
     1153                test="/bedework/appvar[key = &quot;category&quot;]/value = &quot;Founders' Day&quot;"> 
     1154                <xsl:attribute name="class">current</xsl:attribute> 
     1155              </xsl:if> 
     1156              Founders' Day 
     1157            </a> 
     1158          </li> 
     1159          <li> 
     1160            <a 
     1161              href="/cal/?setappvar=category(Holiday)&amp;setappvar=categoryclass(University Events)"> 
     1162              <xsl:if 
     1163                test="/bedework/appvar[key = 'category']/value = 'Holiday'"> 
     1164                <xsl:attribute name="class">current</xsl:attribute> 
     1165              </xsl:if> 
     1166              Holiday 
     1167            </a> 
     1168          </li> 
     1169          <li> 
     1170            <a 
     1171              href="/cal/main/setViewPeriod.do?setappvar=category(MLK)&amp;setappvar=categoryclass(University Events)&amp;date=20100101&amp;viewType=monthView"> 
     1172              <xsl:if 
     1173                test="/bedework/appvar[key = 'category']/value = 'MLK'"> 
     1174                <xsl:attribute name="class">current</xsl:attribute> 
     1175              </xsl:if> 
     1176              MLK 
     1177            </a> 
     1178          </li> 
     1179          <li> 
     1180            <a 
     1181              href="/cal/main/setViewPeriod.do?setappvar=category(Parents' and Family Weekend)&amp;setappvar=categoryclass(University Events)&amp;date=20091023&amp;viewType=monthView"> 
     1182              <xsl:if 
     1183                test="/bedework/appvar[key = &quot;category&quot;]/value = &quot;Parents' and Family Weekend&quot;"> 
     1184                <xsl:attribute name="class">current</xsl:attribute> 
     1185              </xsl:if> 
     1186              Parents' and Family Weekend 
     1187            </a> 
     1188          </li> 
     1189        </ul> 
     1190      </li> 
     1191      <li> 
     1192        <a 
     1193          href="/cal/?setappvar=category(Workshop/Short Course)&amp;setappvar=categoryclass(Workshop/Short Course)"> 
     1194          <xsl:if 
     1195            test="/bedework/appvar[key = 'categoryclass']/value = 'Workshop/Short Course'"> 
     1196            <xsl:attribute name="class">current</xsl:attribute> 
     1197          </xsl:if> 
     1198          Workshop/Short Course 
     1199        </a> 
     1200      </li> 
     1201      <li> 
     1202        <div 
     1203          style="font: bold 1.2em/2 Arial, sans-serif; display:inline;"> 
     1204          Other 
     1205        </div> 
     1206        <span id="otherClicker">+</span> 
     1207        <ul id="otherSub" class="subviewList"> 
     1208          <xsl:choose> 
     1209            <xsl:when 
     1210              test="/bedework/appvar[key = 'categoryclass']/value = 'Other'"> 
     1211              <xsl:attribute name="style">height:330px</xsl:attribute> 
     1212            </xsl:when> 
     1213            <xsl:otherwise> 
     1214              <xsl:attribute name="style">height:0px</xsl:attribute> 
     1215            </xsl:otherwise> 
     1216          </xsl:choose> 
     1217          <li> 
     1218            <a 
     1219              href="/cal/?setappvar=category(Alumni/Reunion)&amp;setappvar=categoryclass(Other)"> 
     1220              <xsl:if 
     1221                test="/bedework/appvar[key = 'category']/value = 'Alumni/Reunion'"> 
     1222                <xsl:attribute name="class">current</xsl:attribute> 
     1223              </xsl:if> 
     1224              Alumni/Reunion 
     1225            </a> 
     1226          </li> 
     1227          <li> 
     1228            <a 
     1229              href="/cal/?setappvar=category(Brown Bag)&amp;setappvar=categoryclass(Other)"> 
     1230              <xsl:if 
     1231                test="/bedework/appvar[key = 'category']/value = 'Brown Bag'"> 
     1232                <xsl:attribute name="class">current</xsl:attribute> 
     1233              </xsl:if> 
     1234              Brown Bag 
     1235            </a> 
     1236          </li> 
     1237          <li> 
     1238            <a 
     1239              href="/cal/?setappvar=category(Ceremony)&amp;setappvar=categoryclass(Other)"> 
     1240              <xsl:if 
     1241                test="/bedework/appvar[key = 'category']/value = 'Ceremony'"> 
     1242                <xsl:attribute name="class">current</xsl:attribute> 
     1243              </xsl:if> 
     1244              Ceremony 
     1245            </a> 
     1246          </li> 
     1247          <li> 
     1248            <a 
     1249              href="/cal/?setappvar=category(Health/Wellness)&amp;setappvar=categoryclass(Other)"> 
     1250              <xsl:if 
     1251                test="/bedework/appvar[key = 'category']/value = 'Health/Wellness'"> 
     1252                <xsl:attribute name="class">current</xsl:attribute> 
     1253              </xsl:if> 
     1254              Health/Wellness 
     1255            </a> 
     1256          </li> 
     1257          <li> 
     1258            <a 
     1259              href="/cal/?setappvar=category(Meeting)&amp;setappvar=categoryclass(Other)"> 
     1260              <xsl:if 
     1261                test="/bedework/appvar[key = 'category']/value = 'Meeting'"> 
     1262                <xsl:attribute name="class">current</xsl:attribute> 
     1263              </xsl:if> 
     1264              Meeting 
     1265            </a> 
     1266          </li> 
     1267          <li> 
     1268            <a 
     1269              href="/cal/?setappvar=category(Orientation)&amp;setappvar=categoryclass(Other)"> 
     1270              <xsl:if 
     1271                test="/bedework/appvar[key = 'category']/value = 'Orientation'"> 
     1272                <xsl:attribute name="class">current</xsl:attribute> 
     1273              </xsl:if> 
     1274              Orientation 
     1275            </a> 
     1276          </li> 
     1277          <li> 
     1278            <a 
     1279              href="/cal/?setappvar=category(Reception)&amp;setappvar=categoryclass(Other)"> 
     1280              <xsl:if 
     1281                test="/bedework/appvar[key = 'category']/value = 'Reception'"> 
     1282                <xsl:attribute name="class">current</xsl:attribute> 
     1283              </xsl:if> 
     1284              Reception 
     1285            </a> 
     1286          </li> 
     1287          <li> 
     1288            <a 
     1289              href="/cal/?setappvar=category(Research)&amp;setappvar=categoryclass(Other)"> 
     1290              <xsl:if 
     1291                test="/bedework/appvar[key = 'category']/value = 'Research'"> 
     1292                <xsl:attribute name="class">current</xsl:attribute> 
     1293              </xsl:if> 
     1294              Research 
     1295            </a> 
     1296          </li> 
     1297          <li> 
     1298            <a 
     1299              href="/cal/?setappvar=category(Social)&amp;setappvar=categoryclass(Other)"> 
     1300              <xsl:if 
     1301                test="/bedework/appvar[key = 'category']/value = 'Social'"> 
     1302                <xsl:attribute name="class">current</xsl:attribute> 
     1303              </xsl:if> 
     1304              Social 
     1305            </a> 
     1306          </li> 
     1307          <li> 
     1308            <a 
     1309              href="/cal/?setappvar=category(Technology)&amp;setappvar=categoryclass(Other)"> 
     1310              <xsl:if 
     1311                test="/bedework/appvar[key = 'category']/value = 'Technology'"> 
     1312                <xsl:attribute name="class">current</xsl:attribute> 
     1313              </xsl:if> 
     1314              Technology 
     1315            </a> 
     1316          </li> 
     1317          <li> 
     1318            <a 
     1319              href="/cal/?setappvar=category(Tour)&amp;setappvar=categoryclass(Other)"> 
     1320              <xsl:if 
     1321                test="/bedework/appvar[key = 'category']/value = 'Tour'"> 
     1322                <xsl:attribute name="class">current</xsl:attribute> 
     1323              </xsl:if> 
     1324              Tour 
     1325            </a> 
     1326          </li> 
     1327          <li> 
     1328            <a 
     1329              href="/cal/?setappvar=category(Training)&amp;setappvar=categoryclass(Other)"> 
     1330              <xsl:if 
     1331                test="/bedework/appvar[key = 'category']/value = 'Training'"> 
     1332                <xsl:attribute name="class">current</xsl:attribute> 
     1333              </xsl:if> 
     1334              Training 
     1335            </a> 
     1336          </li> 
     1337          <li> 
     1338            <a 
     1339              href="/cal/?setappvar=category(Volunteer/Community Service)&amp;setappvar=categoryclass(Other)"> 
     1340              <xsl:if 
     1341                test="/bedework/appvar[key = 'category']/value = 'Volunteer/Community Service'"> 
     1342                <xsl:attribute name="class">current</xsl:attribute> 
     1343              </xsl:if> 
     1344              Volunteer/Community Service 
     1345            </a> 
     1346          </li> 
     1347        </ul> 
     1348      </li> 
     1349    </ul> 
     1350  </xsl:template> 
     1351 
     1352  <!-- Groups List --> 
     1353  <xsl:template name="groupsList"> 
     1354    <div style="display:none;" id="groupListDiv"> 
     1355      <div class="groupHeader"> 
     1356        <h3>Select a Group</h3> 
     1357        <a href="#" 
     1358          onClick="javascript:toggleDiv('groupListDiv'); toggleDiv('right_column'); toggleDiv('center_column');"> 
     1359          X - Close 
     1360        </a> 
     1361      </div> 
     1362      <ul class="groupList"> 
     1363        <li> 
     1364          <a href="/cal/?setappvar=group(all)"> 
     1365            <xsl:if 
     1366              test="((/bedework/appvar[key = 'group']/value = 'all') or not(/bedework/appvar[key = 'group']/value))"> 
    7321367              <xsl:attribute name="class">current</xsl:attribute> 
    7331368            </xsl:if> 
     
    7351370          </a> 
    7361371        </li> 
    737     <li> 
    738           <!-- <a href="/cal/?setappvar=category(Academic Calendar Dates)&amp;setappvar=categoryclass(Academic Calendar Dates)"> 
    739             <xsl:if test="/bedework/appvar[key = 'categoryclass']/value = 'Academic Calendar Dates'"> 
    740               <xsl:attribute name="class">current</xsl:attribute> 
    741               </xsl:if> --> 
    742       <a href="http://www.registrar.duke.edu/registrar/studentpages/student/academicalendars.html"> 
    743       Official Academic Calendar 
    744           </a> 
    745         </li> 
    746     <li> 
    747          <a href="/cal/?setappvar=category(Concert/Music~ Dance Performance~ Exhibit~ Masterclass~ Movie/Film~ Reading~ Theater)&amp;setappvar=categoryclass(Arts)"> 
    748               <xsl:if test="/bedework/appvar[key = 'categoryclass']/value = 'Arts'"> 
    749                 <xsl:attribute name="class">current</xsl:attribute> 
    750               </xsl:if> 
    751         Arts 
    752          </a><span id="artsClicker">+</span> 
    753       <ul id="artsSub" style="height:0px" class="subviewList"> 
    754           <xsl:choose> 
    755         <xsl:when test="/bedework/appvar[key = 'categoryclass']/value = 'Arts'"> 
    756                 <xsl:attribute name="style">height:170px</xsl:attribute> 
    757               </xsl:when> 
    758         <xsl:otherwise> 
    759                 <xsl:attribute name="style">height:0px</xsl:attribute> 
    760               </xsl:otherwise> 
    761         </xsl:choose> 
    762           <li><a href="/cal/?setappvar=category(Concert/Music)&amp;setappvar=categoryclass(Arts)"> 
    763         <xsl:if test="/bedework/appvar[key = 'category']/value = 'Concert/Music'"> 
    764         <xsl:attribute name="class">current</xsl:attribute> 
    765         </xsl:if> 
    766         Concert/Music 
    767             </a></li> 
    768         <li><a href="/cal/?setappvar=category(Dance Performance)&amp;setappvar=categoryclass(Arts)"> 
    769         <xsl:if test="/bedework/appvar[key = 'category']/value = 'Dance Performance'"> 
    770         <xsl:attribute name="class">current</xsl:attribute> 
    771         </xsl:if> 
    772         Dance Performance 
    773             </a></li> 
    774         <li><a href="/cal/?setappvar=category(Exhibit)&amp;setappvar=categoryclass(Arts)"> 
    775         <xsl:if test="/bedework/appvar[key = 'category']/value = 'Exhibit'"> 
    776         <xsl:attribute name="class">current</xsl:attribute> 
    777         </xsl:if> 
    778         Exhibit 
    779             </a></li> 
    780         <li><a href="/cal/?setappvar=category(Masterclass)&amp;setappvar=categoryclass(Arts)"> 
    781         <xsl:if test="/bedework/appvar[key = 'category']/value = 'Masterclass'"> 
    782         <xsl:attribute name="class">current</xsl:attribute> 
    783         </xsl:if> 
    784         Masterclass 
    785             </a></li> 
    786         <li><a href="/cal/?setappvar=category(Movie/Film)&amp;setappvar=categoryclass(Arts)"> 
    787         <xsl:if test="/bedework/appvar[key = 'category']/value = 'Movie/Film'"> 
    788         <xsl:attribute name="class">current</xsl:attribute> 
    789         </xsl:if> 
    790         Movie/Film 
    791             </a></li> 
    792          <li><a href="/cal/?setappvar=category(Reading)&amp;setappvar=categoryclass(Arts)"> 
    793         <xsl:if test="/bedework/appvar[key = 'category']/value = 'Reading'"> 
    794         <xsl:attribute name="class">current</xsl:attribute> 
    795         </xsl:if> 
    796         Reading 
    797             </a></li> 
    798          <li><a href="/cal/?setappvar=category(Theater)&amp;setappvar=categoryclass(Arts)"> 
    799         <xsl:if test="/bedework/appvar[key = 'category']/value = 'Theater'"> 
    800         <xsl:attribute name="class">current</xsl:attribute> 
    801         </xsl:if> 
    802         Theater 
    803             </a></li> 
    804     </ul> 
    805     </li> 
    806     <li> 
    807           <a href="/cal/?setappvar=category(Athletics/Intramurals/Recreation~ Athletics/Varsity Sports/Men~ Athletics/Varsity Sports/Women)&amp;setappvar=categoryclass(Athletics/Recreation)"> 
    808             <xsl:if test="/bedework/appvar[key = 'categoryclass']/value = 'Athletics/Recreation'"> 
    809               <xsl:attribute name="class">current</xsl:attribute> 
     1372        <xsl:for-each 
     1373          select="/bedework/urlPrefixes/groups/group[ memberof/name = 'campusAdminGroups' ]"> 
     1374          <xsl:variable name="eventOwner" 
     1375            select="eventOwner/text()" /> 
     1376          <xsl:variable name="groupName" select="name/text()" /> 
     1377          <xsl:variable name="groupDescription" 
     1378            select="description/text()" /> 
     1379          <li> 
     1380            <a 
     1381              href="/cal/?setappvar=group({$eventOwner})"> 
     1382              <xsl:if 
     1383                test="$eventOwner = (/bedework/appvar[key = 'group']/value)"> 
     1384                <xsl:attribute name="class">current</xsl:attribute> 
     1385              </xsl:if> 
     1386              <xsl:value-of select="$groupName" /> 
     1387            </a> 
     1388            <xsl:if 
     1389              test="$groupName != $groupDescription"> 
     1390              <div class="groupDesc"> 
     1391                <xsl:value-of 
     1392                  select="$groupDescription" /> 
     1393              </div> 
    8101394            </xsl:if> 
    811       Athletics/Recreation 
    812           </a><span id="athleticsClicker">+</span> 
    813       <ul id="athleticsSub" class="subviewList"> 
    814           <xsl:choose> 
    815         <xsl:when test="/bedework/appvar[key = 'categoryclass']/value = 'Athletics/Recreation'"> 
    816                 <xsl:attribute name="style">height:75px</xsl:attribute> 
    817               </xsl:when> 
    818         <xsl:otherwise> 
    819                 <xsl:attribute name="style">height:0px</xsl:attribute> 
    820               </xsl:otherwise> 
    821         </xsl:choose> 
    822           <li><a href="/cal/?setappvar=category(Athletics/Varsity Sports/Men)&amp;setappvar=categoryclass(Athletics/Recreation)"> 
    823         <xsl:if test="/bedework/appvar[key = 'category']/value = 'Athletics/Varsity Sports/Men'"> 
    824         <xsl:attribute name="class">current</xsl:attribute> 
    825         </xsl:if> 
    826         Athletics/Varsity Sports/Men 
    827             </a></li> 
    828         <li><a href="/cal/?setappvar=category(Athletics/Varsity Sports/Women)&amp;setappvar=categoryclass(Athletics/Recreation)"> 
    829         <xsl:if test="/bedework/appvar[key = 'category']/value = 'Athletics/Varsity Sports/Women'"> 
    830         <xsl:attribute name="class">current</xsl:attribute> 
    831         </xsl:if> 
    832         Athletics/Varsity Sports/Women 
    833             </a></li> 
    834         <li><a href="/cal/?setappvar=category(Athletics/Intramurals/Recreation)&amp;setappvar=categoryclass(Athletics/Recreation)"> 
    835         <xsl:if test="/bedework/appvar[key = 'category']/value = 'Athletics/Intramurals/Recreation'"> 
    836         <xsl:attribute name="class">current</xsl:attribute> 
    837         </xsl:if> 
    838         Athletics/Intramurals/Recreation 
    839             </a></li> 
    840     </ul> 
    841         </li> 
    842     <li> 
    843           <a href="/cal/?setappvar=category(Conference/Symposium~ Lecture/Talk~ Panel/Seminar/Colloquium)&amp;setappvar=categoryclass(Lectures/Conferences)"> 
    844             <xsl:if test="/bedework/appvar[key = 'categoryclass']/value = 'Lectures/Conferences'"> 
    845               <xsl:attribute name="class">current</xsl:attribute> 
    846             </xsl:if> 
    847       Lectures/Conferences 
    848           </a><span id="lecturesClicker">+</span> 
    849       <ul id="lecturesSub" class="subviewList"> 
    850           <xsl:choose> 
    851         <xsl:when test="/bedework/appvar[key = 'categoryclass']/value = 'Lectures/Conferences'"> 
    852                 <xsl:attribute name="style">height:75px</xsl:attribute> 
    853               </xsl:when> 
    854         <xsl:otherwise> 
    855                 <xsl:attribute name="style">height:0px</xsl:attribute> 
    856               </xsl:otherwise> 
    857         </xsl:choose> 
    858           <li><a href="/cal/?setappvar=category(Conference/Symposium)&amp;setappvar=categoryclass(Lectures/Conferences)"> 
    859         <xsl:if test="/bedework/appvar[key = 'category']/value = 'Conference/Symposium'"> 
    860         <xsl:attribute name="class">current</xsl:attribute> 
    861         </xsl:if> 
    862         Conference/Symposium 
    863             </a></li> 
    864         <li><a href="/cal/?setappvar=category(Lecture/Talk)&amp;setappvar=categoryclass(Lectures/Conferences)"> 
    865         <xsl:if test="/bedework/appvar[key = 'category']/value = 'Lecture/Talk'"> 
    866         <xsl:attribute name="class">current</xsl:attribute> 
    867         </xsl:if> 
    868         Lecture/Talk 
    869             </a></li> 
    870         <li><a href="/cal/?setappvar=category(Panel/Seminar/Colloquium)&amp;setappvar=categoryclass(Lectures/Conferences)"> 
    871         <xsl:if test="/bedework/appvar[key = 'category']/value = 'Panel/Seminar/Colloquium'"> 
    872         <xsl:attribute name="class">current</xsl:attribute> 
    873         </xsl:if> 
    874         Panel/Seminar/Colloquium 
    875             </a></li> 
    876     </ul> 
    877         </li> 
    878     <li> 
    879           <a href="/cal/?setappvar=category(Religious/Spiritual)&amp;setappvar=categoryclass(Religious/Spiritual)"> 
    880             <xsl:if test="/bedework/appvar[key = 'categoryclass']/value = 'Religious/Spiritual'"> 
    881               <xsl:attribute name="class">current</xsl:attribute> 
    882             </xsl:if> 
    883             Religious/Spiritual 
    884           </a> 
    885         </li> 
    886     <li> 
    887           <a href="/cal/?setappvar=category(Commencement~ Founders' Day~ Holiday~ MLK~ Parents' and Family Weekend)&amp;setappvar=categoryclass(University Events)"> 
    888             <xsl:if test="/bedework/appvar[key = 'categoryclass']/value = 'University Events'"> 
    889               <xsl:attribute name="class">current</xsl:attribute> 
    890             </xsl:if> 
    891       University Events 
    892           </a><span id="lifeClicker">+</span> 
    893       <ul id="lifeSub" class="subviewList"> 
    894           <xsl:choose> 
    895             <xsl:when test="/bedework/appvar[key = 'categoryclass']/value = 'University Events'"> 
    896                 <xsl:attribute name="style">height:135px</xsl:attribute> 
    897               </xsl:when> 
    898         <xsl:otherwise> 
    899                 <xsl:attribute name="style">height:0px</xsl:attribute> 
    900               </xsl:otherwise> 
    901         </xsl:choose> 
    902         <li><a href="/cal/main/setViewPeriod.do?setappvar=category(Commencement)&amp;setappvar=categoryclass(University Events)&amp;date=20100501&amp;viewType=monthView"> 
    903           <xsl:if test="/bedework/appvar[key = 'category']/value = 'Commencement'"> 
    904             <xsl:attribute name="class">current</xsl:attribute> 
    905           </xsl:if> 
    906           Commencement 
    907         </a></li> 
    908         <li><a href="/cal/main/setViewPeriod.do?setappvar=category(Founders' Day)&amp;setappvar=categoryclass(University Events)&amp;date=20091001&amp;viewType=monthView"> 
    909           <xsl:if test="/bedework/appvar[key = &quot;category&quot;]/value = &quot;Founders' Day&quot;"> 
    910             <xsl:attribute name="class">current</xsl:attribute> 
    911           </xsl:if> 
    912           Founders' Day 
    913         </a></li> 
    914         <li><a href="/cal/?setappvar=category(Holiday)&amp;setappvar=categoryclass(University Events)"> 
    915           <xsl:if test="/bedework/appvar[key = 'category']/value = 'Holiday'"> 
    916             <xsl:attribute name="class">current</xsl:attribute> 
    917           </xsl:if> 
    918           Holiday 
    919         </a></li> 
    920         <li><a href="/cal/main/setViewPeriod.do?setappvar=category(MLK)&amp;setappvar=categoryclass(University Events)&amp;date=20100101&amp;viewType=monthView"> 
    921           <xsl:if test="/bedework/appvar[key = 'category']/value = 'MLK'"> 
    922             <xsl:attribute name="class">current</xsl:attribute> 
    923           </xsl:if> 
    924           MLK 
    925         </a></li> 
    926         <li><a href="/cal/main/setViewPeriod.do?setappvar=category(Parents' and Family Weekend)&amp;setappvar=categoryclass(University Events)&amp;date=20091023&amp;viewType=monthView"> 
    927           <xsl:if test="/bedework/appvar[key = &quot;category&quot;]/value = &quot;Parents' and Family Weekend&quot;"> 
    928             <xsl:attribute name="class">current</xsl:attribute> 
    929           </xsl:if> 
    930           Parents' and Family Weekend 
    931         </a></li> 
    932     </ul> 
    933         </li> 
    934     <li> 
    935           <a href="/cal/?setappvar=category(Workshop/Short Course)&amp;setappvar=categoryclass(Workshop/Short Course)"> 
    936             <xsl:if test="/bedework/appvar[key = 'categoryclass']/value = 'Workshop/Short Course'"> 
    937               <xsl:attribute name="class">current</xsl:attribute> 
    938             </xsl:if> 
    939             Workshop/Short Course 
    940           </a> 
    941         </li> 
    942     <li><div style="font: bold 1.2em/2 Arial, sans-serif; display:inline;">Other</div> 
    943           <span id="otherClicker">+</span> 
    944       <ul id="otherSub" class="subviewList"> 
    945         <xsl:choose> 
    946         <xsl:when test="/bedework/appvar[key = 'categoryclass']/value = 'Other'"> 
    947                 <xsl:attribute name="style">height:330px</xsl:attribute> 
    948               </xsl:when> 
    949         <xsl:otherwise> 
    950                 <xsl:attribute name="style">height:0px</xsl:attribute> 
    951               </xsl:otherwise> 
    952         </xsl:choose> 
    953           <li><a href="/cal/?setappvar=category(Alumni/Reunion)&amp;setappvar=categoryclass(Other)"> 
    954         <xsl:if test="/bedework/appvar[key = 'category']/value = 'Alumni/Reunion'"> 
    955         <xsl:attribute name="class">current</xsl:attribute> 
    956         </xsl:if> 
    957         Alumni/Reunion 
    958             </a></li> 
    959         <li><a href="/cal/?setappvar=category(Brown Bag)&amp;setappvar=categoryclass(Other)"> 
    960         <xsl:if test="/bedework/appvar[key = 'category']/value = 'Brown Bag'"> 
    961         <xsl:attribute name="class">current</xsl:attribute> 
    962         </xsl:if> 
    963         Brown Bag 
    964             </a></li> 
    965         <li><a href="/cal/?setappvar=category(Ceremony)&amp;setappvar=categoryclass(Other)"> 
    966           <xsl:if test="/bedework/appvar[key = 'category']/value = 'Ceremony'"> 
    967             <xsl:attribute name="class">current</xsl:attribute> 
    968           </xsl:if> 
    969           Ceremony 
    970         </a></li> 
    971         <li><a href="/cal/?setappvar=category(Health/Wellness)&amp;setappvar=categoryclass(Other)"> 
    972           <xsl:if test="/bedework/appvar[key = 'category']/value = 'Health/Wellness'"> 
    973             <xsl:attribute name="class">current</xsl:attribute> 
    974           </xsl:if> 
    975           Health/Wellness 
    976         </a></li> 
    977         <li><a href="/cal/?setappvar=category(Meeting)&amp;setappvar=categoryclass(Other)"> 
    978           <xsl:if test="/bedework/appvar[key = 'category']/value = 'Meeting'"> 
    979             <xsl:attribute name="class">current</xsl:attribute> 
    980           </xsl:if> 
    981           Meeting 
    982         </a></li> 
    983        <li><a href="/cal/?setappvar=category(Orientation)&amp;setappvar=categoryclass(Other)"> 
    984         <xsl:if test="/bedework/appvar[key = 'category']/value = 'Orientation'"> 
    985         <xsl:attribute name="class">current</xsl:attribute> 
    986         </xsl:if> 
    987         Orientation 
    988             </a></li> 
    989         <li><a href="/cal/?setappvar=category(Reception)&amp;setappvar=categoryclass(Other)"> 
    990           <xsl:if test="/bedework/appvar[key = 'category']/value = 'Reception'"> 
    991             <xsl:attribute name="class">current</xsl:attribute> 
    992           </xsl:if> 
    993           Reception 
    994         </a></li> 
    995        <li><a href="/cal/?setappvar=category(Research)&amp;setappvar=categoryclass(Other)"> 
    996         <xsl:if test="/bedework/appvar[key = 'category']/value = 'Research'"> 
    997         <xsl:attribute name="class">current</xsl:attribute> 
    998         </xsl:if> 
    999         Research 
    1000            </a></li> 
    1001         <li><a href="/cal/?setappvar=category(Social)&amp;setappvar=categoryclass(Other)"> 
    1002           <xsl:if test="/bedework/appvar[key = 'category']/value = 'Social'"> 
    1003             <xsl:attribute name="class">current</xsl:attribute> 
    1004           </xsl:if> 
    1005           Social 
    1006         </a></li> 
    1007         <li><a href="/cal/?setappvar=category(Technology)&amp;setappvar=categoryclass(Other)"> 
    1008         <xsl:if test="/bedework/appvar[key = 'category']/value = 'Technology'"> 
    1009         <xsl:attribute name="class">current</xsl:attribute> 
    1010         </xsl:if> 
    1011         Technology 
    1012             </a></li> 
    1013         <li><a href="/cal/?setappvar=category(Tour)&amp;setappvar=categoryclass(Other)"> 
    1014         <xsl:if test="/bedework/appvar[key = 'category']/value = 'Tour'"> 
    1015         <xsl:attribute name="class">current</xsl:attribute> 
    1016         </xsl:if> 
    1017         Tour 
    1018             </a></li> 
    1019         <li><a href="/cal/?setappvar=category(Training)&amp;setappvar=categoryclass(Other)"> 
    1020         <xsl:if test="/bedework/appvar[key = 'category']/value = 'Training'"> 
    1021         <xsl:attribute name="class">current</xsl:attribute> 
    1022         </xsl:if> 
    1023         Training 
    1024             </a></li> 
    1025          <li><a href="/cal/?setappvar=category(Volunteer/Community Service)&amp;setappvar=categoryclass(Other)"> 
    1026         <xsl:if test="/bedework/appvar[key = 'category']/value = 'Volunteer/Community Service'"> 
    1027         <xsl:attribute name="class">current</xsl:attribute> 
    1028         </xsl:if> 
    1029         Volunteer/Community Service 
    1030             </a></li> 
    1031     </ul> 
    1032         </li> 
    1033     </ul> 
    1034   </xsl:template> 
    1035  
    1036 <!-- Groups List --> 
    1037 <xsl:template name="groupsList"> 
    1038   <div style="display:none;" id="groupListDiv"> 
    1039     <div class="groupHeader"> 
    1040       <h3>Select a Group</h3> 
    1041       <a href="#" onClick="javascript:toggleDiv('groupListDiv'); toggleDiv('right_column'); toggleDiv('center_column');"> 
    1042        X - Close</a> 
     1395          </li> 
     1396        </xsl:for-each> 
     1397      </ul> 
    10431398    </div> 
    1044     <ul class="groupList"> 
    1045       <li><a href="/cal/?setappvar=group(all)"> 
    1046       <xsl:if test="((/bedework/appvar[key = 'group']/value = 'all') or not(/bedework/appvar[key = 'group']/value))"> 
    1047         <xsl:attribute name="class">current</xsl:attribute> 
    1048         </xsl:if> 
    1049     All</a></li> 
    1050       <xsl:for-each select="/bedework/urlPrefixes/groups/group[ memberof/name = 'campusAdminGroups' ]"> 
    1051         <xsl:variable name="eventOwner" select="eventOwner/text()"/> 
    1052         <xsl:variable name="groupName" select="name/text()"/> 
    1053         <xsl:variable name="groupDescription" select="description/text()"/> 
    1054               <li><a href="/cal/?setappvar=group({$eventOwner})"> 
    1055               <xsl:if test="$eventOwner = (/bedework/appvar[key = 'group']/value)"> 
    1056                     <xsl:attribute name="class">current</xsl:attribute> 
    1057                 </xsl:if> 
    1058           <xsl:value-of select="$groupName"/> 
    1059           </a> 
    1060           <xsl:if test="$groupName != $groupDescription"> 
    1061             <div class="groupDesc"><xsl:value-of select="$groupDescription"/></div> 
    1062           </xsl:if> 
    1063           </li> 
    1064       </xsl:for-each> 
    1065    </ul> 
    1066   </div> 
    1067 </xsl:template> 
     1399  </xsl:template> 
    10681400 
    10691401  <!-- Side Links Navigation --> 
    10701402  <xsl:template name="sideLinksList"> 
    10711403    <ul class="sideLinksExpand"> 
    1072     <li> 
    1073       <h4>OTHER UNIVERSITY CALENDARS</h4><span id="additionalUnivClicker">+</span> 
    1074         <ul id="additionalUnivSub" style="height:0px;overflow:hidden;"> 
    1075           <li><a href="http://dukehealth.org/events" target="_blank">DukeHealth.org Event Calendar</a></li> 
    1076           <li><a href="http://calendar.activedatax.com/ncstate/EventList.aspx" target="_blank">NC State Calendar</a></li> 
    1077           <li><a href="http://webevent.nccu.edu/CalendarNOW.aspx" target="_blank">NCCU Calendar</a></li> 
    1078           <li><a href="http://events.unc.edu/cal/" target="_blank">UNC Calendar</a></li> 
    1079       </ul> 
    1080   </li> 
    1081   <li> 
    1082     <h4>OTHER LINKS</h4><span id="additionalOptionsClicker">+</span> 
    1083        <ul id="additionalOptionsSub" style="height:0px;overflow:hidden"> 
    1084          <li><a href="http://www.durham-nc.com" target="_blank">Durham Visitor's Bureau Calendar</a></li> 
    1085          <li><a href="http://map.duke.edu" target="_blank">Duke Campus Map</a></li> 
    1086       </ul> 
    1087   </li> 
    1088   </ul> 
     1404      <li> 
     1405        <h4>OTHER UNIVERSITY CALENDARS</h4> 
     1406        <span id="additionalUnivClicker">+</span> 
     1407        <ul id="additionalUnivSub" 
     1408          style="height:0px;overflow:hidden;"> 
     1409          <li> 
     1410            <a href="http://dukehealth.org/events" 
     1411              target="_blank"> 
     1412              DukeHealth.org Event Calendar 
     1413            </a> 
     1414          </li> 
     1415          <li> 
     1416            <a 
     1417              href="http://calendar.activedatax.com/ncstate/EventList.aspx" 
     1418              target="_blank"> 
     1419              NC State Calendar 
     1420            </a> 
     1421          </li> 
     1422          <li> 
     1423            <a 
     1424              href="http://webevent.nccu.edu/CalendarNOW.aspx" 
     1425              target="_blank"> 
     1426              NCCU Calendar 
     1427            </a> 
     1428          </li> 
     1429          <li> 
     1430            <a href="http://events.unc.edu/cal/" 
     1431              target="_blank"> 
     1432              UNC Calendar 
     1433            </a> 
     1434          </li> 
     1435        </ul> 
     1436      </li> 
     1437      <li> 
     1438        <h4>OTHER LINKS</h4> 
     1439        <span id="additionalOptionsClicker">+</span> 
     1440        <ul id="additionalOptionsSub" 
     1441          style="height:0px;overflow:hidden"> 
     1442          <li> 
     1443            <a href="http://www.durham-nc.com" 
     1444              target="_blank"> 
     1445              Durham Visitor's Bureau Calendar 
     1446            </a> 
     1447          </li> 
     1448          <li> 
     1449            <a href="http://map.duke.edu" target="_blank"> 
     1450              Duke Campus Map 
     1451            </a> 
     1452          </li> 
     1453        </ul> 
     1454      </li> 
     1455    </ul> 
    10891456  </xsl:template> 
    10901457 
     
    10991466        <li> 
    11001467          <xsl:choose> 
    1101             <xsl:when test="/bedework/appvar[key='summaryMode']/value='details'"> 
    1102               <a href="{$setup}&amp;setappvar=summaryMode(summary)" title="toggle                   summary/detailed view"> Summary </a> 
     1468            <xsl:when 
     1469              test="/bedework/appvar[key='summaryMode']/value='details'"> 
     1470              <a 
     1471                href="{$setup}&amp;setappvar=summaryMode(summary)" 
     1472                title="toggle                   summary/detailed view"> 
     1473                Summary 
     1474              </a> 
    11031475            </xsl:when> 
    11041476            <xsl:otherwise> 
    1105               <a href="{$setup}&amp;setappvar=summaryMode(details)" title="toggle                   summary/detailed view"> Details </a> 
     1477              <a 
     1478                href="{$setup}&amp;setappvar=summaryMode(details)" 
     1479                title="toggle                   summary/detailed view"> 
     1480                Details 
     1481              </a> 
    11061482            </xsl:otherwise> 
    11071483          </xsl:choose> 
    11081484        </li> 
    11091485      </ul> 
    1110       <xsl:variable name="rssCurrDate" select="/bedework/currentdate/date"/> 
     1486      <xsl:variable name="rssCurrDate" 
     1487        select="/bedework/currentdate/date" /> 
    11111488      <xsl:variable name="rssGroups"> 
    11121489        <xsl:choose> 
    1113           <xsl:when test="(/bedework/appvar[key = 'group']/value) = 'all' or not(/bedework/appvar[key = 'group']/value)"> 
     1490          <xsl:when 
     1491            test="(/bedework/appvar[key = 'group']/value) = 'all' or not(/bedework/appvar[key = 'group']/value)"> 
    11141492            <xsl:text>(all)</xsl:text> 
    11151493          </xsl:when> 
    11161494          <xsl:otherwise> 
    1117             <xsl:variable name="rssCurrGroup" select="/bedework/appvar[key = 'group']/value"/> 
     1495            <xsl:variable name="rssCurrGroup" 
     1496              select="/bedework/appvar[key = 'group']/value" /> 
    11181497            <xsl:variable name="rssGroupTemplate"> 
    11191498              <xsl:text>(</xsl:text> 
    1120               <xsl:value-of select="$rssCurrGroup"/> 
     1499              <xsl:value-of select="$rssCurrGroup" /> 
    11211500              <xsl:text>)</xsl:text> 
    11221501            </xsl:variable> 
    1123             <xsl:value-of select="$rssGroupTemplate"/> 
     1502            <xsl:value-of select="$rssGroupTemplate" /> 
    11241503          </xsl:otherwise> 
    11251504        </xsl:choose> 
     
    11281507      <xsl:variable name="rssCategory"> 
    11291508        <xsl:choose> 
    1130           <xsl:when test="(/bedework/appvar[key = 'category']/value = 'all') or not(/bedework/appvar[key = 'category']/value)"> 
     1509          <xsl:when 
     1510            test="(/bedework/appvar[key = 'category']/value = 'all') or not(/bedework/appvar[key = 'category']/value)"> 
    11311511            <xsl:text>all</xsl:text> 
    11321512          </xsl:when> 
    11331513          <xsl:otherwise> 
    1134             <xsl:variable name="rssCurrCategory" select="/bedework/appvar[key = 'category']/value"/> 
     1514            <xsl:variable name="rssCurrCategory" 
     1515              select="/bedework/appvar[key = 'category']/value" /> 
    11351516            <xsl:variable name="rssCatTemplate"> 
    1136               <xsl:text/> 
    1137               <xsl:value-of select="$rssCurrCategory"/> 
    1138               <xsl:text/> 
     1517              <xsl:text /> 
     1518              <xsl:value-of select="$rssCurrCategory" /> 
     1519              <xsl:text /> 
    11391520            </xsl:variable> 
    1140             <xsl:value-of select="$rssCatTemplate"/> 
     1521            <xsl:value-of select="$rssCatTemplate" /> 
    11411522          </xsl:otherwise> 
    11421523        </xsl:choose> 
     
    11541535        </xsl:if> 
    11551536      </xsl:variable> 
    1156       <a id="rssRequest" class="rss" href="/feed/calendar/{$rssViewType}/rss/{$rssGroups}/details/{$rssCategory}" title="RSS feed"> <!-- &amp;date={$rssCurrDate} --> 
    1157         <img src="{$resourcesRoot}/images/feed-icon-14x14.png" alt="RSS Feed Icon"/> 
     1537      <a id="rssRequest" class="rss" 
     1538        href="/feed/calendar/{$rssViewType}/rss/{$rssGroups}/details/{$rssCategory}" 
     1539        title="RSS feed"> 
     1540<!-- &amp;date={$rssCurrDate} --> 
     1541        <img src="{$resourcesRoot}/images/feed-icon-14x14.png" 
     1542          alt="RSS Feed Icon" /> 
    11581543      </a> 
    1159       <div id="rssPopUp" style="display:none;position:absolute"> <!-- RSS Popup window --> 
    1160         <p id="rssClose" onclick="this.parentNode.style.display = 'none'">X - Close</p> 
     1544      <div id="rssPopUp" style="display:none;position:absolute"> 
     1545<!-- RSS Popup window --> 
     1546        <p id="rssClose" 
     1547          onclick="this.parentNode.style.display = 'none'"> 
     1548          X - Close 
     1549        </p> 
    11611550        <h5 style="padding: 6px;">RSS Feed Details</h5> 
    11621551        <!-- setappvar=summaryMode(details){$rssGroups}skinName=rss{$rssCategory}viewType={$rssViewType} --> 
    11631552        <ul style="padding: 6px;"> 
    1164           <li style="border-bottom: solid 1px #CCC;">Time Period: Current <xsl:value-of select="/bedework/periodname"/></li> 
    1165           <li style="border-bottom: solid 1px #CCC;">Group: <span id="rssDetailGroup">All</span></li> 
    1166           <li style="border-bottom: solid 1px #CCC;">Calendar Categories: <span id="rssDetailCategory">All</span></li> 
     1553          <li style="border-bottom: solid 1px #CCC;"> 
     1554            Time Period: Current 
     1555            <xsl:value-of select="/bedework/periodname" /> 
     1556          </li> 
     1557          <li style="border-bottom: solid 1px #CCC;"> 
     1558            Group: 
     1559            <span id="rssDetailGroup">All</span> 
     1560          </li> 
     1561          <li style="border-bottom: solid 1px #CCC;"> 
     1562            Calendar Categories: 
     1563            <span id="rssDetailCategory">All</span> 
     1564          </li> 
    11671565        </ul> 
    1168         <p style="padding: 6px;">To subscribe to an RSS feed of your current calendar view, copy and paste the entire URL below into your preferred RSS reader.</p> 
    1169         <p style="padding: 6px;"><strong>Your RSS URL:</strong></p> 
    1170         <input id="rssValue" size="35" type="text" value=""/> 
     1566        <p style="padding: 6px;"> 
     1567          To subscribe to an RSS feed of your current calendar 
     1568          view, copy and paste the entire URL below into your 
     1569          preferred RSS reader. 
     1570        </p> 
     1571        <p style="padding: 6px;"> 
     1572          <strong>Your RSS URL:</strong> 
     1573        </p> 
     1574        <input id="rssValue" size="35" type="text" value="" /> 
    11711575        <ul style="padding: 6px;"> 
    1172           <li><a href="/feed/list/30">Click here for 30-day feed of events</a></li> 
    1173           <li><a href="/feed/list/60">Click here for 60-day feed of events</a></li> 
    1174           <li><a href="/feed/list/90">Click here for 90-day feed of events</a></li> 
     1576          <li> 
     1577            <a href="/feed/list/30"> 
     1578              Click here for 30-day feed of events 
     1579            </a> 
     1580          </li> 
     1581          <li> 
     1582            <a href="/feed/list/60"> 
     1583              Click here for 60-day feed of events 
     1584            </a> 
     1585          </li> 
     1586          <li> 
     1587            <a href="/feed/list/90"> 
     1588              Click here for 90-day feed of events 
     1589            </a> 
     1590          </li> 
    11751591        </ul> 
    11761592      </div> 
    11771593    </xsl:if> 
    1178     <a id="prevViewPeriod" href="{$setViewPeriod}&amp;date={$prevdate}">«</a> 
     1594    <a id="prevViewPeriod" 
     1595      href="{$setViewPeriod}&amp;date={$prevdate}"> 
     1596      « 
     1597    </a> 
    11791598    <h3> 
    11801599      <xsl:choose> 
    11811600        <xsl:when test="/bedework/periodname='Year'"> 
    1182           <xsl:value-of select="substring(/bedework/firstday/date,1,4)"/> 
     1601          <xsl:value-of 
     1602            select="substring(/bedework/firstday/date,1,4)" /> 
    11831603        </xsl:when> 
    11841604        <xsl:when test="/bedework/periodname='Month'"> 
    1185           <xsl:value-of select="/bedework/firstday/monthname"/>, <xsl:value-of select="substring(/bedework/firstday/date,1,4)"/> 
     1605          <xsl:value-of select="/bedework/firstday/monthname" /> 
     1606          , 
     1607          <xsl:value-of 
     1608            select="substring(/bedework/firstday/date,1,4)" /> 
    11861609        </xsl:when> 
    1187         <xsl:when test="/bedework/periodname='Week'">Week of <xsl:value-of select="substring-after(/bedework/firstday/longdate,', ')"/> 
     1610        <xsl:when test="/bedework/periodname='Week'"> 
     1611          Week of 
     1612          <xsl:value-of 
     1613            select="substring-after(/bedework/firstday/longdate,', ')" /> 
    11881614        </xsl:when> 
    11891615        <xsl:otherwise> 
    1190           <xsl:value-of select="/bedework/firstday/longdate"/> 
     1616          <xsl:value-of select="/bedework/firstday/longdate" /> 
    11911617        </xsl:otherwise> 
    11921618      </xsl:choose> 
    11931619    </h3> 
    1194     <a id="nextViewPeriod" href="{$setViewPeriod}&amp;date={$nextdate}">»</a> 
    1195   </xsl:template> 
    1196   <xsl:template name="searchBar"> SEARCH BAR </xsl:template> 
     1620    <a id="nextViewPeriod" 
     1621      href="{$setViewPeriod}&amp;date={$nextdate}"> 
     1622      » 
     1623    </a> 
     1624  </xsl:template> 
     1625  <xsl:template name="searchBar">SEARCH BAR</xsl:template> 
    11971626  <!--==== SINGLE EVENT ====--> 
    11981627  <!-- I am going to modify this quite a bit. I don't think we need 300+ lines of code ot print out an event, 
    11991628    but may want to compare this to the original if things get wonky --> 
    12001629  <xsl:template match="event"> 
    1201     <xsl:variable name="subscriptionId" select="subscription/id"/> 
    1202     <xsl:variable name="calPath" select="calendar/encodedPath"/> 
    1203     <xsl:variable name="guid" select="guid"/> 
    1204     <xsl:variable name="guidEsc" select="translate(guid, '.', '_')"/> 
    1205     <xsl:variable name="recurrenceId" select="recurrenceId"/> 
     1630    <xsl:variable name="subscriptionId" select="subscription/id" /> 
     1631    <xsl:variable name="calPath" select="calendar/encodedPath" /> 
     1632    <xsl:variable name="guid" select="guid" /> 
     1633    <xsl:variable name="guidEsc" select="translate(guid, '.', '_')" /> 
     1634    <xsl:variable name="recurrenceId" select="recurrenceId" /> 
    12061635    <xsl:variable name="statusClass"> 
    12071636      <xsl:choose> 
    1208         <xsl:when test="status='CANCELLED'">bwStatusCancelled</xsl:when> 
    1209         <xsl:when test="status='TENTATIVE'">bwStatusTentative</xsl:when> 
     1637        <xsl:when test="status='CANCELLED'"> 
     1638          bwStatusCancelled 
     1639        </xsl:when> 
     1640        <xsl:when test="status='TENTATIVE'"> 
     1641          bwStatusTentative 
     1642        </xsl:when> 
    12101643        <xsl:otherwise>bwStatusConfirmed</xsl:otherwise> 
    12111644      </xsl:choose> 
     
    12151648 
    12161649      <h2 class="{$statusClass} eventTitle"> 
    1217         <xsl:variable name="gStartdate" select="start/utcdate"/> 
    1218         <xsl:variable name="gLocation" select="location/address"/> 
    1219         <xsl:variable name="gEnddate" select="end/utcdate"/> 
    1220         <xsl:variable name="gText" select="summary"/> 
    1221         <xsl:variable name="gDetails" select="summary"/> 
    1222         <a class="eventIcons" href="http://www.google.com/calendar/event?action=TEMPLATE&amp;dates={$gStartdate}/{$gEnddate}&amp;text={$gText}&amp;details={$gDetails}&amp;location={$gLocation}"><img title="Add to Google Calendar" src="{$resourcesRoot}/images/gcal.gif" alt="Add to Google Calendar"/></a> 
     1650        <xsl:variable name="gStartdate" select="start/utcdate" /> 
     1651        <xsl:variable name="gLocation" 
     1652          select="location/address" /> 
     1653        <xsl:variable name="gEnddate" select="end/utcdate" /> 
     1654        <xsl:variable name="gText" select="summary" /> 
     1655        <xsl:variable name="gDetails" select="summary" /> 
     1656        <a class="eventIcons" 
     1657          href="http://www.google.com/calendar/event?action=TEMPLATE&amp;dates={$gStartdate}/{$gEnddate}&amp;text={$gText}&amp;details={$gDetails}&amp;location={$gLocation}"> 
     1658          <img title="Add to Google Calendar" 
     1659            src="{$resourcesRoot}/images/gcal.gif" 
     1660            alt="Add to Google Calendar" /> 
     1661        </a> 
    12231662        <xsl:choose> 
    12241663          <xsl:when test="string-length($recurrenceId)"> 
    1225             <a class="eventIcons" href="http://www.facebook.com/share.php?u=http://calendar.duke.edu/feed/event/cal/html/{$subscriptionId}/Public/{$recurrenceId}/{$guidEsc}"><img title="Add to Facebook" src="{$resourcesRoot}/images/Facebook_Badge.gif" alt="Add to Facebook"/></a> 
     1664            <a class="eventIcons" 
     1665              href="http://www.facebook.com/share.php?u=http://calendar.duke.edu/feed/event/cal/html/{$subscriptionId}/Public/{$recurrenceId}/{$guidEsc}"> 
     1666              <img title="Add to Facebook" 
     1667                src="{$resourcesRoot}/images/Facebook_Badge.gif" 
     1668                alt="Add to Facebook" /> 
     1669            </a> 
    12261670          </xsl:when> 
    12271671          <xsl:otherwise> 
    1228             <a class="eventIcons" href="http://www.facebook.com/share.php?u=http://calendar.duke.edu/feed/event/cal/html/{$subscriptionId}/Public/0/{$guidEsc}"><img title="Add to Facebook" src="{$resourcesRoot}/images/Facebook_Badge.gif" alt="Add to Facebook"/></a> 
     1672            <a class="eventIcons" 
     1673              href="http://www.facebook.com/share.php?u=http://calendar.duke.edu/feed/event/cal/html/{$subscriptionId}/Public/0/{$guidEsc}"> 
     1674              <img title="Add to Facebook" 
     1675                src="{$resourcesRoot}/images/Facebook_Badge.gif" 
     1676                alt="Add to Facebook" /> 
     1677            </a> 
    12291678          </xsl:otherwise> 
    12301679        </xsl:choose> 
    1231         <xsl:variable name="eventIcalName" select="concat($guid,'.ics')"/> 
    1232         <a class="eventIcons" href="{$export}&amp;subid={$subscriptionId}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}&amp;nocache=no&amp;contentName={$eventIcalName}" title="Download .ics file for import to other calendars"> 
    1233           <img src="{$resourcesRoot}/images/std-ical_icon.gif" alt="Download this event"/> 
     1680        <xsl:variable name="eventIcalName" 
     1681          select="concat($guid,'.ics')" /> 
     1682        <a class="eventIcons" 
     1683          href="{$export}&amp;subid={$subscriptionId}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}&amp;nocache=no&amp;contentName={$eventIcalName}" 
     1684          title="Download .ics file for import to other calendars"> 
     1685          <img src="{$resourcesRoot}/images/std-ical_icon.gif" 
     1686            alt="Download this event" /> 
    12341687        </a> 
    1235         <xsl:if test="status='CANCELLED'">CANCELLED: </xsl:if> 
     1688        <xsl:if test="status='CANCELLED'">CANCELLED:</xsl:if> 
    12361689        <xsl:if test="summary != ''"> 
    1237           <xsl:variable name="summary" select="summary"/> 
    1238           <xsl:value-of select="$summary"/> 
     1690          <xsl:variable name="summary" select="summary" /> 
     1691          <xsl:value-of select="$summary" /> 
    12391692        </xsl:if> 
    12401693      </h2> 
    12411694 
    12421695      <span class="eventWhen"> 
    1243         <br/> 
    1244         <span class="infoTitle">When: </span> 
    1245         <xsl:value-of select="start/dayname"/>, <xsl:value-of select="start/longdate"/> 
     1696        <br /> 
     1697        <span class="infoTitle">When:</span> 
     1698        <xsl:value-of select="start/dayname" /> 
     1699        , 
     1700        <xsl:value-of select="start/longdate" /> 
    12461701        <xsl:text> </xsl:text> 
    12471702        <xsl:if test="start/allday = 'false'"> 
    12481703          <span class="time"> 
    1249             <xsl:value-of select="start/time"/> 
     1704            <xsl:value-of select="start/time" /> 
    12501705          </span> 
    12511706        </xsl:if> 
    1252         <xsl:if test="(end/longdate != start/longdate) or ((end/longdate = start/longdate) and (end/time != start/time))"> - </xsl:if> 
     1707        <xsl:if 
     1708          test="(end/longdate != start/longdate) or ((end/longdate = start/longdate) and (end/time != start/time))"> 
     1709          - 
     1710        </xsl:if> 
    12531711        <xsl:if test="end/longdate != start/longdate"> 
    1254           <xsl:value-of select="substring(end/dayname,1,3)"/>, <xsl:value-of select="end/longdate"/><xsl:text> </xsl:text> 
     1712          <xsl:value-of select="substring(end/dayname,1,3)" /> 
     1713          , 
     1714          <xsl:value-of select="end/longdate" /> 
     1715          <xsl:text> </xsl:text> 
    12551716        </xsl:if> 
    1256           <xsl:choose> 
    1257             <xsl:when test="start/allday = 'true'"> 
    1258               <span class="time"> 
    1259                 <em>(All day)</em> 
    1260               </span> 
    1261             </xsl:when> 
    1262             <xsl:when test="end/longdate != start/longdate"> 
    1263               <span class="time"> 
    1264                 <xsl:value-of select="end/time"/> 
    1265               </span> 
    1266             </xsl:when> 
    1267             <xsl:when test="end/time != start/time"> 
    1268               <span class="time"> 
    1269                 <xsl:value-of select="end/time"/> 
    1270               </span> 
    1271             </xsl:when> 
    1272           </xsl:choose> 
    1273         </span> 
    1274  
    1275         <span class="eventWhere"> 
    1276           <span class="infoTitle">Where: </span> 
    1277           <xsl:choose> 
    1278             <xsl:when test="location/link=''"> 
    1279               <xsl:value-of select="location/address"/> 
     1717        <xsl:choose> 
     1718          <xsl:when test="start/allday = 'true'"> 
     1719            <span class="time"> 
     1720              <em>(All day)</em> 
     1721            </span> 
     1722          </xsl:when> 
     1723          <xsl:when test="end/longdate != start/longdate"> 
     1724            <span class="time"> 
     1725              <xsl:value-of select="end/time" /> 
     1726            </span> 
     1727          </xsl:when> 
     1728          <xsl:when test="end/time != start/time"> 
     1729            <span class="time"> 
     1730              <xsl:value-of select="end/time" /> 
     1731            </span> 
     1732          </xsl:when> 
     1733        </xsl:choose> 
     1734      </span> 
     1735 
     1736      <span class="eventWhere"> 
     1737        <span class="infoTitle">Where:</span> 
     1738        <xsl:choose> 
     1739          <xsl:when test="location/link=''"> 
     1740            <xsl:value-of select="location/address" /> 
     1741            <xsl:text> </xsl:text> 
     1742            <xsl:if test="location/subaddress!=''"> 
    12801743              <xsl:text> </xsl:text> 
     1744              <xsl:value-of select="location/subaddress" /> 
     1745            </xsl:if> 
     1746          </xsl:when> 
     1747          <xsl:otherwise> 
     1748            <xsl:variable name="locationLink" 
     1749              select="location/link" /> 
     1750            <a href="{$locationLink}"> 
     1751              <xsl:value-of select="location/address" /> 
    12811752              <xsl:if test="location/subaddress!=''"> 
    12821753                <xsl:text> </xsl:text> 
    1283                 <xsl:value-of select="location/subaddress"/> 
    1284               </xsl:if> 
     1754                <xsl:value-of 
     1755                  select="location/subaddress" /> 
     1756              </xsl:if> 
     1757            </a> 
     1758          </xsl:otherwise> 
     1759        </xsl:choose> 
     1760      </span> 
     1761 
     1762      <xsl:if test="cost!=''"> 
     1763        <span class="eventCost"> 
     1764          <span class="infoTitle">Cost:</span> 
     1765          <xsl:value-of select="cost" /> 
     1766        </span> 
     1767      </xsl:if> 
     1768 
     1769      <span class="eventLink"> 
     1770        <xsl:if test="link != ''"> 
     1771          <xsl:variable name="link" select="link" /> 
     1772          <span class="infoTitle"> 
     1773            <a href="{$link}">More Info</a> 
     1774          </span> 
     1775        </xsl:if> 
     1776      </span> 
     1777 
     1778      <br /> 
     1779      <xsl:if 
     1780        test="xproperties/node()[name()='X-BEDEWORK-IMAGE']"> 
     1781        <xsl:variable name="bwImage"> 
     1782          <xsl:value-of 
     1783            select="xproperties/node()[name()='X-BEDEWORK-IMAGE']/values/text" /> 
     1784        </xsl:variable> 
     1785        <img src="{$bwImage}" class="bwEventImage" /> 
     1786      </xsl:if> 
     1787      <span class="eventDescription"> 
     1788        <span class="infoTitle">Description:</span> 
     1789        <xsl:call-template name="replace"> 
     1790          <xsl:with-param name="string" select="description" /> 
     1791          <xsl:with-param name="pattern" select="'&#xA;'" /> 
     1792          <xsl:with-param name="replacement"></xsl:with-param> 
     1793        </xsl:call-template> 
     1794      </span> 
     1795      <br /> 
     1796 
     1797      <!--   <span class="eventListingCal"> 
     1798        <xsl:if test="calendar/path!=''"> 
     1799        Calendar: 
     1800        <xsl:variable name="calUrl" select="calendar/encodedPath"/> 
     1801        <a href="{$setSelection}&amp;calUrl={$calUrl}"> 
     1802        <xsl:value-of select="calendar/name"/> 
     1803        </a> 
     1804        </xsl:if> 
     1805        </span>--> 
     1806 
     1807      <xsl:if test="status !='' and status != 'CONFIRMED'"> 
     1808        <span class="eventStatus"> 
     1809          <span class="infoTitle">Status:</span> 
     1810          <xsl:value-of select="status" /> 
     1811        </span> 
     1812      </xsl:if> 
     1813      <xsl:choose> 
     1814        <xsl:when 
     1815          test="xproperties/X-BEDEWORK-CS/values/text != ''"> 
     1816          <span class="eventContact"> 
     1817            <span class="infoTitle">Co-sponsors:</span> 
     1818            <xsl:if test="creator != ''"> 
     1819              <xsl:variable name="creator" 
     1820                select="creator" /> 
     1821              <xsl:value-of 
     1822                select="/bedework/urlPrefixes/groups/group[eventOwner = $creator]/name" /> 
     1823            </xsl:if> 
     1824            <xsl:value-of disable-output-escaping="yes" 
     1825              select="xproperties/X-BEDEWORK-CS/values/text" /> 
     1826          </span> 
     1827        </xsl:when> 
     1828        <xsl:otherwise> 
     1829          <span class="eventContact"> 
     1830            <span class="infoTitle">Sponsor:</span> 
     1831            <xsl:if test="creator != ''"> 
     1832              <xsl:variable name="creator" 
     1833                select="creator" /> 
     1834              <xsl:value-of 
     1835                select="/bedework/urlPrefixes/groups/group[eventOwner = $creator]/name" /> 
     1836            </xsl:if> 
     1837            <xsl:value-of disable-output-escaping="yes" 
     1838              select="xproperties/X-BEDEWORK-CS/values/text" /> 
     1839          </span> 
     1840        </xsl:otherwise> 
     1841      </xsl:choose> 
     1842      <xsl:if test="contact/name!='None'"> 
     1843        <span class="eventContact"> 
     1844          <span class="infoTitle">Contact Information:</span> 
     1845          <xsl:choose> 
     1846            <xsl:when test="contact/link=''"> 
     1847              <xsl:value-of select="contact/name" /> 
    12851848            </xsl:when> 
    12861849            <xsl:otherwise> 
    1287               <xsl:variable name="locationLink" select="location/link"/> 
    1288               <a href="{$locationLink}"> 
    1289                 <xsl:value-of select="location/address"/> 
    1290                 <xsl:if test="location/subaddress!=''"> 
    1291                   <xsl:text> </xsl:text> 
    1292                   <xsl:value-of select="location/subaddress"/> 
    1293                 </xsl:if> 
     1850              <xsl:variable name="sponsorLink" 
     1851                select="contact/link" /> 
     1852              <a href="{$sponsorLink}"> 
     1853                <xsl:value-of select="contact/name" /> 
    12941854              </a> 
    12951855            </xsl:otherwise> 
    12961856          </xsl:choose> 
    1297         </span> 
    1298  
    1299       <xsl:if test="cost!=''"> 
    1300         <span class="eventCost"> 
    1301           <span class="infoTitle">Cost: </span><xsl:value-of select="cost"/> 
     1857          <xsl:if test="contact/phone!=''"> 
     1858            <xsl:text> </xsl:text> 
     1859            <xsl:value-of select="contact/phone" /> 
     1860          </xsl:if> 
     1861          <xsl:if test="contact/link!=''"> 
     1862            <xsl:text> </xsl:text> 
     1863            <xsl:variable name="contactLink" 
     1864              select="contact/link" /> 
     1865            <a href="{$contactLink}"> 
     1866              <xsl:value-of select="$contactLink" /> 
     1867            </a> 
     1868          </xsl:if> 
    13021869        </span> 
    13031870      </xsl:if> 
    1304  
    1305       <span class="eventLink"> 
    1306         <xsl:if test="link != ''"> 
    1307           <xsl:variable name="link" select="link"/> 
    1308           <span class="infoTitle"><a href="{$link}">More Info</a></span> 
    1309         </xsl:if> 
    1310       </span> 
    1311  
    1312     <br/> 
    1313       <xsl:if test="xproperties/node()[name()='X-BEDEWORK-IMAGE']"> 
    1314         <xsl:variable name="bwImage"><xsl:value-of select="xproperties/node()[name()='X-BEDEWORK-IMAGE']/values/text"/></xsl:variable> 
    1315         <img src="{$bwImage}" class="bwEventImage"/> 
    1316       </xsl:if> 
    1317         <span class="eventDescription"> 
    1318           <span class="infoTitle">Description: </span> 
    1319           <xsl:call-template name="replace"> 
    1320             <xsl:with-param name="string" select="description"/> 
    1321             <xsl:with-param name="pattern" select="'&#xA;'"/> 
    1322             <xsl:with-param name="replacement"> 
    1323             </xsl:with-param> 
    1324           </xsl:call-template> 
    1325         </span> 
    1326     <br/> 
    1327  
    1328    <!--   <span class="eventListingCal"> 
    1329         <xsl:if test="calendar/path!=''"> 
    1330           Calendar: 
    1331           <xsl:variable name="calUrl" select="calendar/encodedPath"/> 
    1332           <a href="{$setSelection}&amp;calUrl={$calUrl}"> 
    1333             <xsl:value-of select="calendar/name"/> 
    1334           </a> 
    1335         </xsl:if> 
    1336       </span>--> 
    1337  
    1338       <xsl:if test="status !='' and status != 'CONFIRMED'"> 
    1339         <span class="eventStatus"> 
    1340         <span class="infoTitle">Status: </span><xsl:value-of select="status"/> 
     1871      <xsl:if 
     1872        test="xproperties/node()[name()='X-BEDEWORK-STUDENT-CONTACT']/values/text != ''"> 
     1873        <span class="eventContact"> 
     1874          <span class="infoTitle">Contact Information:</span> 
     1875          <xsl:value-of 
     1876            select="xproperties/node()[name()='X-BEDEWORK-STUDENT-CONTACT']/values/text" /> 
     1877          <xsl:if 
     1878            test="xproperties/node()[name()='X-BEDEWORK-STUDENT-CONTACT']/parameters/X-BEDEWORK-PARAM-EMAIL != ''"> 
     1879            <xsl:variable name="emailAddress" 
     1880              select="xproperties/node()[name()='X-BEDEWORK-STUDENT-CONTACT']/parameters/X-BEDEWORK-PARAM-EMAIL" /> 
     1881            <a href="mailto:{$emailAddress}">E-mail</a> 
     1882          </xsl:if> 
    13411883        </span> 
    13421884      </xsl:if> 
    1343     <xsl:choose> 
    1344       <xsl:when test="xproperties/X-BEDEWORK-CS/values/text != ''"> 
    1345        <span class="eventContact"><span class="infoTitle">Co-sponsors: </span> 
    1346         <xsl:if test="creator != ''"> 
    1347           <xsl:variable name="creator" select="creator"/> 
    1348          <xsl:value-of select="/bedework/urlPrefixes/groups/group[eventOwner = $creator]/name"/> 
    1349         </xsl:if> 
    1350        <xsl:value-of disable-output-escaping="yes" select="xproperties/X-BEDEWORK-CS/values/text"/></span> 
    1351       </xsl:when> 
    1352       <xsl:otherwise> 
    1353        <span class="eventContact"><span class="infoTitle">Sponsor: </span> 
    1354         <xsl:if test="creator != ''"> 
    1355           <xsl:variable name="creator" select="creator"/> 
    1356          <xsl:value-of select="/bedework/urlPrefixes/groups/group[eventOwner = $creator]/name"/> 
    1357         </xsl:if> 
    1358        <xsl:value-of disable-output-escaping="yes" select="xproperties/X-BEDEWORK-CS/values/text"/></span> 
    1359       </xsl:otherwise> 
    1360     </xsl:choose> 
    1361       <xsl:if test="contact/name!='None'"> 
    1362         <span class="eventContact"> 
    1363            <span class="infoTitle">Contact Information: </span> 
    1364             <xsl:choose> 
    1365               <xsl:when test="contact/link=''"> 
    1366                 <xsl:value-of select="contact/name"/> 
    1367               </xsl:when> 
    1368               <xsl:otherwise> 
    1369                 <xsl:variable name="sponsorLink" select="contact/link"/> 
    1370                 <a href="{$sponsorLink}"> 
    1371                   <xsl:value-of select="contact/name"/> 
    1372                 </a> 
    1373               </xsl:otherwise> 
    1374             </xsl:choose> 
    1375             <xsl:if test="contact/phone!=''"> 
    1376               <xsl:text> </xsl:text> 
    1377               <xsl:value-of select="contact/phone"/> 
    1378             </xsl:if> 
    1379             <xsl:if test="contact/link!=''"> 
    1380               <xsl:text> </xsl:text> 
    1381               <xsl:variable name="contactLink" select="contact/link"/> 
    1382               <a href="{$contactLink}"><xsl:value-of select="$contactLink"/></a> 
    1383             </xsl:if> 
    1384         </span> 
    1385       </xsl:if> 
    1386      <xsl:if test="xproperties/node()[name()='X-BEDEWORK-STUDENT-CONTACT']/values/text != ''"> 
    1387         <span class="eventContact"> 
    1388            <span class="infoTitle">Contact Information: </span> 
    1389             <xsl:value-of select="xproperties/node()[name()='X-BEDEWORK-STUDENT-CONTACT']/values/text"/> 
    1390        <xsl:if test="xproperties/node()[name()='X-BEDEWORK-STUDENT-CONTACT']/parameters/X-BEDEWORK-PARAM-EMAIL != ''"> 
    1391               <xsl:variable name="emailAddress" select="xproperties/node()[name()='X-BEDEWORK-STUDENT-CONTACT']/parameters/X-BEDEWORK-PARAM-EMAIL"/> 
    1392         <a href="mailto:{$emailAddress}"> 
    1393                   E-mail 
    1394                 </a> 
    1395            </xsl:if> 
    1396         </span> 
    1397       </xsl:if> 
    1398      <xsl:if test="categories[1]/category"> 
     1885      <xsl:if test="categories[1]/category"> 
    13991886        <span class="eventCategories"> 
    1400           <span class="infoTitle">Categories: </span> 
    1401           <xsl:for-each select="categories[1]/category[(word != 'Local') and (word != 'Main') and (word != 'Student') and (word != 'calCrossPublish')]"> 
    1402             <xsl:value-of select="word"/> 
    1403             <xsl:if test="position() != last()">, </xsl:if> 
     1887          <span class="infoTitle">Categories:</span> 
     1888          <xsl:for-each 
     1889            select="categories[1]/category[(word != 'Local') and (word != 'Main') and (word != 'Student') and (word != 'calCrossPublish')]"> 
     1890            <xsl:value-of select="word" /> 
     1891            <xsl:if test="position() != last()">,</xsl:if> 
    14041892          </xsl:for-each> 
    14051893        </span> 
     
    14081896      <xsl:if test="comments/comment"> 
    14091897        <span class="eventComments"> 
    1410           <span class="infoTitle">Comments: </span> 
    1411             <xsl:for-each select="comments/comment"> 
    1412               <p> 
    1413                 <xsl:value-of select="value"/> 
    1414               </p> 
    1415             </xsl:for-each> 
     1898          <span class="infoTitle">Comments:</span> 
     1899          <xsl:for-each select="comments/comment"> 
     1900            <p> 
     1901              <xsl:value-of select="value" /> 
     1902            </p> 
     1903          </xsl:for-each> 
    14161904        </span> 
    14171905      </xsl:if> 
     
    14261914        <xsl:for-each select="/bedework/daynames/val"> 
    14271915          <th class="dayHeading"> 
    1428             <xsl:value-of select="."/> 
     1916            <xsl:value-of select="." /> 
    14291917          </th> 
    14301918        </xsl:for-each> 
    14311919      </tr> 
    14321920      <tr> 
    1433         <xsl:for-each select="/bedework/eventscalendar/year/month/week/day"> 
     1921        <xsl:for-each 
     1922          select="/bedework/eventscalendar/year/month/week/day"> 
    14341923          <xsl:if test="filler='false'"> 
    1435                   <xsl:call-template name="display-month-calendar"/> 
     1924            <xsl:call-template 
     1925              name="display-month-calendar" /> 
    14361926          </xsl:if> 
    14371927        </xsl:for-each> 
     
    14471937        <xsl:for-each select="/bedework/daynames/val"> 
    14481938          <th class="dayHeading"> 
    1449             <xsl:value-of select="."/> 
     1939            <xsl:value-of select="." /> 
    14501940          </th> 
    14511941        </xsl:for-each> 
    14521942      </tr> 
    1453       <xsl:for-each select="/bedework/eventscalendar/year/month/week"> 
     1943      <xsl:for-each 
     1944        select="/bedework/eventscalendar/year/month/week"> 
    14541945        <tr> 
    14551946          <xsl:for-each select="day"> 
    14561947            <xsl:choose> 
    14571948              <xsl:when test="filler='true'"> 
    1458                   <td class="filler">&#160;</td> 
     1949                <td class="filler">&#160;</td> 
    14591950              </xsl:when> 
    14601951              <xsl:otherwise> 
    1461                   <xsl:call-template name="display-month-calendar"/> 
     1952                <xsl:call-template 
     1953                  name="display-month-calendar" /> 
    14621954              </xsl:otherwise> 
    14631955            </xsl:choose> 
     
    14701962  <!--== EVENTS IN THE CALENDAR GRID ==--> 
    14711963  <xsl:template match="event" mode="calendarLayout"> 
    1472     <xsl:param name="dayPos"/> 
    1473     <xsl:variable name="subscriptionId" select="subscription/id"/> 
    1474     <xsl:variable name="calPath" select="calendar/encodedPath"/> 
    1475     <xsl:variable name="guid" select="guid"/> 
    1476     <xsl:variable name="recurrenceId" select="recurrenceId"/> 
     1964    <xsl:param name="dayPos" /> 
     1965    <xsl:variable name="subscriptionId" select="subscription/id" /> 
     1966    <xsl:variable name="calPath" select="calendar/encodedPath" /> 
     1967    <xsl:variable name="guid" select="guid" /> 
     1968    <xsl:variable name="recurrenceId" select="recurrenceId" /> 
    14771969    <xsl:variable name="eventClass"> 
    14781970      <xsl:choose> 
    14791971        <!-- Special styles for the month grid --> 
    1480         <xsl:when test="status='CANCELLED'">eventCancelled</xsl:when> 
    1481         <xsl:when test="status='TENTATIVE'">eventTentative</xsl:when> 
     1972        <xsl:when test="status='CANCELLED'"> 
     1973          eventCancelled 
     1974        </xsl:when> 
     1975        <xsl:when test="status='TENTATIVE'"> 
     1976          eventTentative 
     1977        </xsl:when> 
    14821978        <!-- Default alternating colors for all standard events --> 
    1483         <xsl:when test="position() mod 2 = 1">eventLinkA</xsl:when> 
     1979        <xsl:when test="position() mod 2 = 1"> 
     1980          eventLinkA 
     1981        </xsl:when> 
    14841982        <xsl:otherwise>eventLinkB</xsl:otherwise> 
    14851983      </xsl:choose> 
    14861984    </xsl:variable> 
    14871985    <!-- Subscription styles. 
    1488          These are set in the add/modify subscription forms in the admin client; 
    1489          if present, these override the background-color set by eventClass. The 
    1490          subscription styles should not be used for cancelled events (tentative is ok). --> 
     1986      These are set in the add/modify subscription forms in the admin client; 
     1987      if present, these override the background-color set by eventClass. The 
     1988      subscription styles should not be used for cancelled events (tentative is ok). --> 
    14911989    <xsl:variable name="subscriptionClass"> 
    1492       <xsl:if test="status != 'CANCELLED' and                     subscription/subStyle != '' and         subscription/subStyle != 'default'"> 
    1493         <xsl:value-of select="subscription/subStyle"/> 
     1990      <xsl:if 
     1991        test="status != 'CANCELLED' and                     subscription/subStyle != '' and         subscription/subStyle != 'default'"> 
     1992        <xsl:value-of select="subscription/subStyle" /> 
    14941993      </xsl:if> 
    14951994    </xsl:variable> 
    14961995    <li> 
    1497       <a href="{$eventView}&amp;subid={$subscriptionId}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}" class="{$eventClass} {$subscriptionClass}"> 
    1498         <xsl:if test="status='CANCELLED'">CANCELLED: </xsl:if> 
     1996      <a 
     1997        href="{$eventView}&amp;subid={$subscriptionId}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}" 
     1998        class="{$eventClass} {$subscriptionClass}"> 
     1999        <xsl:if test="status='CANCELLED'">CANCELLED:</xsl:if> 
    14992000        <xsl:choose> 
    1500           <xsl:when test="start/shortdate != ../shortdate"> (cont) </xsl:when> 
     2001          <xsl:when test="start/shortdate != ../shortdate"> 
     2002            (cont) 
     2003          </xsl:when> 
    15012004          <xsl:when test="start/allday = 'false'"> 
    1502             <xsl:value-of select="start/time"/>: </xsl:when> 
    1503           <xsl:otherwise> All day: </xsl:otherwise> 
     2005            <xsl:value-of select="start/time" /> 
     2006            : 
     2007          </xsl:when> 
     2008          <xsl:otherwise>All day:</xsl:otherwise> 
    15042009        </xsl:choose> 
    1505         <xsl:value-of select="summary"/> 
     2010        <xsl:value-of select="summary" /> 
    15062011        <xsl:variable name="eventTipClass"> 
    15072012          <xsl:choose> 
    1508             <xsl:when test="$dayPos &gt; 5">eventTipReverse</xsl:when> 
     2013            <xsl:when test="$dayPos &gt; 5"> 
     2014              eventTipReverse 
     2015            </xsl:when> 
    15092016            <xsl:otherwise>eventTip</xsl:otherwise> 
    15102017          </xsl:choose> 
     
    15122019        <span class="{$eventTipClass}"> 
    15132020          <xsl:if test="status='CANCELLED'"> 
    1514             <span class="eventTipStatusCancelled">CANCELLED</span> 
     2021            <span class="eventTipStatusCancelled"> 
     2022              CANCELLED 
     2023            </span> 
    15152024          </xsl:if> 
    15162025          <xsl:if test="status='TENTATIVE'"> 
    1517             <span class="eventTipStatusTentative">TENTATIVE</span> 
     2026            <span class="eventTipStatusTentative"> 
     2027              TENTATIVE 
     2028            </span> 
    15182029          </xsl:if> 
    15192030          <strong> 
    1520             <xsl:value-of select="summary"/> 
    1521           </strong><br/> Time: <xsl:choose> 
    1522             <xsl:when test="start/allday = 'true'"> All day </xsl:when> 
     2031            <xsl:value-of select="summary" /> 
     2032          </strong> 
     2033          <br /> 
     2034          Time: 
     2035          <xsl:choose> 
     2036            <xsl:when test="start/allday = 'true'"> 
     2037              All day 
     2038            </xsl:when> 
    15232039            <xsl:otherwise> 
    1524               <xsl:if test="start/shortdate != ../shortdate"> 
    1525                 <xsl:value-of select="start/month"/>/<xsl:value-of select="start/day"/> 
     2040              <xsl:if 
     2041                test="start/shortdate != ../shortdate"> 
     2042                <xsl:value-of select="start/month" /> 
     2043                / 
     2044                <xsl:value-of select="start/day" /> 
    15262045                <xsl:text> </xsl:text> 
    15272046              </xsl:if> 
    1528               <xsl:value-of select="start/time"/> 
    1529               <xsl:if test="(start/time != end/time) or (start/shortdate != end/shortdate)"> - 
    1530                   <xsl:if test="end/shortdate != ../shortdate"> 
    1531                   <xsl:value-of select="end/month"/>/<xsl:value-of select="end/day"/> 
     2047              <xsl:value-of select="start/time" /> 
     2048              <xsl:if 
     2049                test="(start/time != end/time) or (start/shortdate != end/shortdate)"> 
     2050                - 
     2051                <xsl:if 
     2052                  test="end/shortdate != ../shortdate"> 
     2053                  <xsl:value-of select="end/month" /> 
     2054                  / 
     2055                  <xsl:value-of select="end/day" /> 
    15322056                  <xsl:text> </xsl:text> 
    15332057                </xsl:if> 
    1534                 <xsl:value-of select="end/time"/> 
     2058                <xsl:value-of select="end/time" /> 
    15352059              </xsl:if> 
    15362060            </xsl:otherwise> 
    1537           </xsl:choose><br/> 
    1538           <xsl:if test="location/address"> Location: <xsl:value-of select="location/address"/><br/> 
    1539           </xsl:if> Calendar: <xsl:value-of select="calendar/name"/> 
     2061          </xsl:choose> 
     2062          <br /> 
     2063          <xsl:if test="location/address"> 
     2064            Location: 
     2065            <xsl:value-of select="location/address" /> 
     2066            <br /> 
     2067          </xsl:if> 
     2068          Calendar: 
     2069          <xsl:value-of select="calendar/name" /> 
    15402070        </span> 
    15412071      </a> 
     
    15472077  <xsl:template name="yearView"> 
    15482078    <div class="yearMonthRow"> 
    1549       <xsl:apply-templates select="/bedework/eventscalendar/year/month[position() &lt;= 4]"/> 
     2079      <xsl:apply-templates 
     2080        select="/bedework/eventscalendar/year/month[position() &lt;= 4]" /> 
    15502081    </div> 
    15512082    <div class="yearMonthRow"> 
    1552       <xsl:apply-templates select="/bedework/eventscalendar/year/month[(position() &gt; 4) and (position() &lt;= 8)]"/> 
     2083      <xsl:apply-templates 
     2084        select="/bedework/eventscalendar/year/month[(position() &gt; 4) and (position() &lt;= 8)]" /> 
    15532085    </div> 
    15542086    <div class="yearMonthRow"> 
    1555       <xsl:apply-templates select="/bedework/eventscalendar/year/month[position() &gt; 8]"/> 
     2087      <xsl:apply-templates 
     2088        select="/bedework/eventscalendar/year/month[position() &gt; 8]" /> 
    15562089    </div> 
    15572090  </xsl:template> 
    15582091  <!-- year view month tables --> 
    15592092  <xsl:template match="month"> 
    1560     <table class="yearViewMonthTable" cellspacing="0" cellpadding="0"> 
     2093    <table class="yearViewMonthTable" cellspacing="0" 
     2094      cellpadding="0"> 
    15612095      <tr> 
    15622096        <td colspan="7" class="monthName"> 
    1563           <xsl:variable name="firstDayOfMonth" select="week/day/date"/> 
    1564           <a href="{$setViewPeriod}&amp;viewType=monthView&amp;date={$firstDayOfMonth}"> 
    1565             <xsl:value-of select="longname"/> 
     2097          <xsl:variable name="firstDayOfMonth" 
     2098            select="week/day/date" /> 
     2099          <a 
     2100            href="{$setViewPeriod}&amp;viewType=monthView&amp;date={$firstDayOfMonth}"> 
     2101            <xsl:value-of select="longname" /> 
    15662102          </a> 
    15672103        </td> 
     
    15702106        <!-- Uhh... skipping the week numbers 
    15712107          <th>&#160;</th> 
    1572           --> 
     2108        --> 
    15732109        <xsl:for-each select="/bedework/shortdaynames/val"> 
    15742110          <th> 
    1575             <xsl:value-of select="."/> 
     2111            <xsl:value-of select="." /> 
    15762112          </th> 
    15772113        </xsl:for-each> 
     
    15812117          <!-- Uhh... skipping the week numbers 
    15822118            <td class="weekCell"> 
    1583               <xsl:variable name="firstDayOfWeek" select="day/date"/> 
    1584  
    1585               <a href="{$setViewPeriod}&amp;viewType=weekView&amp;date={$firstDayOfWeek}"> 
    1586                 me<xsl:value-of select="value"/> 
    1587               </a> 
    1588  
    1589               </td>--> 
     2119            <xsl:variable name="firstDayOfWeek" select="day/date"/> 
     2120 
     2121            <a href="{$setViewPeriod}&amp;viewType=weekView&amp;date={$firstDayOfWeek}"> 
     2122            me<xsl:value-of select="value"/> 
     2123            </a> 
     2124 
     2125            </td>--> 
    15902126          <xsl:for-each select="day"> 
    15912127            <xsl:choose> 
     
    15952131              <xsl:otherwise> 
    15962132                <td> 
    1597                   <xsl:if test="/bedework/now/date = date"> 
     2133                  <xsl:if 
     2134                    test="/bedework/now/date = date"> 
    15982135                    <xsl:attribute name="class">today</xsl:attribute> 
    15992136                  </xsl:if> 
    1600                   <xsl:variable name="dayDate" select="date"/> 
    1601                   <a href="{$setViewPeriod}&amp;viewType=dayView&amp;date={$dayDate}"> 
     2137                  <xsl:variable name="dayDate" 
     2138                    select="date" /> 
     2139                  <a 
     2140                    href="{$setViewPeriod}&amp;viewType=dayView&amp;date={$dayDate}"> 
    16022141                    <xsl:attribute name="class">today</xsl:attribute> 
    1603                     <xsl:value-of select="value"/> 
     2142                    <xsl:value-of select="value" /> 
    16042143                  </a> 
    16052144                </td> 
     
    16152154  <!-- list of available calendars --> 
    16162155  <xsl:template match="calendars"> 
    1617     <xsl:variable name="topLevelCalCount" select="count(calendar/calendar)"/> 
     2156    <xsl:variable name="topLevelCalCount" 
     2157      select="count(calendar/calendar)" /> 
    16182158    <ul class="calendarTree"> 
    1619       <li><a class="breadcrumb" href="/cal/">« Return to Main Calendar</a></li> 
    1620       <xsl:apply-templates select="calendar/calendar" mode="calTree"/> 
     2159      <li> 
     2160        <a class="breadcrumb" href="/cal/"> 
     2161          « Return to Main Calendar 
     2162        </a> 
     2163      </li> 
     2164      <xsl:apply-templates select="calendar/calendar" 
     2165        mode="calTree" /> 
    16212166    </ul> 
    16222167  </xsl:template> 
     
    16252170    <xsl:variable name="itemClass"> 
    16262171      <xsl:choose> 
    1627         <xsl:when test="calendarCollection='false'">folder</xsl:when> 
     2172        <xsl:when test="calendarCollection='false'"> 
     2173          folder 
     2174        </xsl:when> 
    16282175        <xsl:otherwise>calendar</xsl:otherwise> 
    16292176      </xsl:choose> 
    16302177    </xsl:variable> 
    1631     <xsl:variable name="url" select="encodedPath"/> 
     2178    <xsl:variable name="url" select="encodedPath" /> 
    16322179    <li class="{$itemClass}"> 
    1633       <a href="{$setSelection}&amp;calUrl={$url}" title="view calendar"> 
    1634         <xsl:value-of select="name"/> 
     2180      <a href="{$setSelection}&amp;calUrl={$url}" 
     2181        title="view calendar"> 
     2182        <xsl:value-of select="name" /> 
    16352183      </a> 
    16362184      <xsl:if test="calendarCollection='true'"> 
    1637         <xsl:variable name="calPath" select="path"/> 
     2185        <xsl:variable name="calPath" select="path" /> 
    16382186        <span class="exportCalLink"> 
    1639           <a href="{$calendar-fetchForExport}&amp;calPath={$calPath}" title="export calendar as iCal"> 
    1640             <img src="{$resourcesRoot}/images/calIconExport-sm.gif" alt="export calendar"/> 
     2187          <a 
     2188            href="{$calendar-fetchForExport}&amp;calPath={$calPath}" 
     2189            title="export calendar as iCal"> 
     2190            <img 
     2191              src="{$resourcesRoot}/images/calIconExport-sm.gif" 
     2192              alt="export calendar" /> 
    16412193          </a> 
    16422194        </span> 
     
    16442196      <xsl:if test="calendar"> 
    16452197        <ul> 
    1646           <xsl:apply-templates select="calendar" mode="calTree"/> 
     2198          <xsl:apply-templates select="calendar" 
     2199            mode="calTree" /> 
    16472200        </ul> 
    16482201      </xsl:if> 
     
    16562209        <strong>Calendar to export:</strong> 
    16572210      </p> 
    1658       <div class="indent"> Name: <strong> 
     2211      <div class="indent"> 
     2212        Name: 
     2213        <strong> 
    16592214          <em> 
    1660             <xsl:value-of select="name"/> 
     2215            <xsl:value-of select="name" /> 
    16612216          </em> 
    1662         </strong><br/> Path: <xsl:value-of select="path"/> 
     2217        </strong> 
     2218        <br /> 
     2219        Path: 
     2220        <xsl:value-of select="path" /> 
    16632221      </div> 
    16642222      <p> 
    16652223        <strong>Event date limits:</strong> 
    16662224      </p> 
    1667       <form name="exportCalendarForm" id="exportCalendarForm" action="{$export}" method="post"> 
     2225      <form name="exportCalendarForm" id="exportCalendarForm" 
     2226        action="{$export}" method="post"> 
    16682227        <input type="hidden" name="calPath"> 
    16692228          <xsl:attribute name="value"> 
    1670             <xsl:value-of select="path"/> 
     2229            <xsl:value-of select="path" /> 
    16712230          </xsl:attribute> 
    16722231        </input> 
    16732232        <!-- fill these on submit --> 
    1674         <input type="hidden" name="eventStartDate.year" value=""/> 
    1675         <input type="hidden" name="eventStartDate.month" value=""/> 
    1676         <input type="hidden" name="eventStartDate.day" value=""/> 
    1677         <input type="hidden" name="eventEndDate.year" value=""/> 
    1678         <input type="hidden" name="eventEndDate.month" value=""/> 
    1679         <input type="hidden" name="eventEndDate.day" value=""/> 
     2233        <input type="hidden" name="eventStartDate.year" 
     2234          value="" /> 
     2235        <input type="hidden" name="eventStartDate.month" 
     2236          value="" /> 
     2237        <input type="hidden" name="eventStartDate.day" value="" /> 
     2238        <input type="hidden" name="eventEndDate.year" value="" /> 
     2239        <input type="hidden" name="eventEndDate.month" value="" /> 
     2240        <input type="hidden" name="eventEndDate.day" value="" /> 
    16802241        <!-- static fields --> 
    1681         <input type="hidden" name="nocache" value="no"/> 
    1682         <input type="hidden" name="skinName" value="ical"/> 
    1683         <input type="hidden" name="contentType" value="text/calendar"/> 
     2242        <input type="hidden" name="nocache" value="no" /> 
     2243        <input type="hidden" name="skinName" value="ical" /> 
     2244        <input type="hidden" name="contentType" 
     2245          value="text/calendar" /> 
    16842246        <input type="hidden" name="contentName"> 
    1685           <xsl:attribute name="value"><xsl:value-of select="name"/>.ics</xsl:attribute> 
     2247          <xsl:attribute name="value"><xsl:value-of 
     2248              select="name" />.ics</xsl:attribute> 
    16862249        </input> 
    16872250        <!-- visible fields --> 
    1688         <input type="radio" name="dateLimits" value="active" checked="checked" onclick="changeClass('exportDateRange','invisible')"/> today forward <input type="radio" name="dateLimits" value="none" onclick="changeClass('exportDateRange','invisible')"/> all 
    1689         dates <input type="radio" name="dateLimits" value="limited" onclick="changeClass('exportDateRange','visible')"/> date range <div id="exportDateRange" class="invisible"> Start: <div dojoType="dropdowndatepicker" formatLength="medium" saveFormat="yyyyMMdd" id="bwExportCalendarWidgetStartDate"> 
     2251        <input type="radio" name="dateLimits" value="active" 
     2252          checked="checked" 
     2253          onclick="changeClass('exportDateRange','invisible')" /> 
     2254        today forward 
     2255        <input type="radio" name="dateLimits" value="none" 
     2256          onclick="changeClass('exportDateRange','invisible')" /> 
     2257        all dates 
     2258        <input type="radio" name="dateLimits" value="limited" 
     2259          onclick="changeClass('exportDateRange','visible')" /> 
     2260        date range 
     2261        <div id="exportDateRange" class="invisible"> 
     2262          Start: 
     2263          <div dojoType="dropdowndatepicker" 
     2264            formatLength="medium" saveFormat="yyyyMMdd" 
     2265            id="bwExportCalendarWidgetStartDate"> 
    16902266            <xsl:text> </xsl:text> 
    1691           </div> Ends <div dojoType="dropdowndatepicker" formatLength="medium" saveFormat="yyyyMMdd" id="bwExportCalendarWidgetEndDate"> 
     2267          </div> 
     2268          Ends 
     2269          <div dojoType="dropdowndatepicker" 
     2270            formatLength="medium" saveFormat="yyyyMMdd" 
     2271            id="bwExportCalendarWidgetEndDate"> 
    16922272            <xsl:text> </xsl:text> 
    16932273          </div> 
    16942274        </div> 
    16952275        <p> 
    1696           <input type="submit" value="export" class="bwWidgetSubmit" onclick="fillExportFields(this.form)"/> 
     2276          <input type="submit" value="export" 
     2277            class="bwWidgetSubmit" onclick="fillExportFields(this.form)" /> 
    16972278        </p> 
    16982279      </form> 
     
    17042285    <div class="secondaryColHeader"> 
    17052286      <h3>Search Results</h3> 
    1706   </div> 
    1707  
    1708         <!-- <xsl:if test="/bedework/searchResults/numPages &gt; 1"> 
    1709           <span class="resultPages"> 
    1710           <xsl:variable name="curPage" select="/bedework/searchResults/curPage"/> 
    1711           <xsl:if test="/bedework/searchResults/curPage != 1"> 
    1712             <xsl:variable name="prevPage" select="number($curPage) - 1"/> 
    1713             <a href="{$search-next}&amp;pageNum={$prevPage}">&#171;</a> 
    1714           </xsl:if> 
    1715           <xsl:text> </xsl:text> 
    1716           <xsl:call-template name="searchResultPageNav"> 
    1717             <xsl:with-param name="page"> 
    1718               <xsl:choose> 
    1719                 <xsl:when test="number($curPage) - 10 &lt; 1">1</xsl:when> 
    1720                 <xsl:otherwise> 
    1721                   <xsl:value-of select="number($curPage) - 6"/> 
    1722                 </xsl:otherwise> 
    1723               </xsl:choose> 
    1724             </xsl:with-param> 
    1725           </xsl:call-template> 
    1726           <xsl:text> </xsl:text> 
    1727           <xsl:choose> 
    1728             <xsl:when test="$curPage != /bedework/searchResults/numPages"> 
    1729               <xsl:variable name="nextPage" select="number($curPage) + 1"/> 
    1730               <a href="{$search-next}&amp;pageNum={$nextPage}">&#187;</a></xsl:when> 
    1731             <xsl:otherwise> 
    1732               <span class="hidden">&#171;</span> 
    1733             </xsl:otherwise> 
    1734           </xsl:choose> 
    1735         </span> 
    1736         </xsl:if> --> 
     2287    </div> 
     2288 
     2289    <!-- <xsl:if test="/bedework/searchResults/numPages &gt; 1"> 
     2290      <span class="resultPages"> 
     2291      <xsl:variable name="curPage" select="/bedework/searchResults/curPage"/> 
     2292      <xsl:if test="/bedework/searchResults/curPage != 1"> 
     2293      <xsl:variable name="prevPage" select="number($curPage) - 1"/> 
     2294      <a href="{$search-next}&amp;pageNum={$prevPage}">&#171;</a> 
     2295      </xsl:if> 
     2296      <xsl:text> </xsl:text> 
     2297      <xsl:call-template name="searchResultPageNav"> 
     2298      <xsl:with-param name="page"> 
     2299      <xsl:choose> 
     2300      <xsl:when test="number($curPage) - 10 &lt; 1">1</xsl:when> 
     2301      <xsl:otherwise> 
     2302      <xsl:value-of select="number($curPage) - 6"/> 
     2303      </xsl:otherwise> 
     2304      </xsl:choose> 
     2305      </xsl:with-param> 
     2306      </xsl:call-template> 
     2307      <xsl:text> </xsl:text> 
     2308      <xsl:choose> 
     2309      <xsl:when test="$curPage != /bedework/searchResults/numPages"> 
     2310      <xsl:variable name="nextPage" select="number($curPage) + 1"/> 
     2311      <a href="{$search-next}&amp;pageNum={$nextPage}">&#187;</a></xsl:when> 
     2312      <xsl:otherwise> 
     2313      <span class="hidden">&#171;</span> 
     2314      </xsl:otherwise> 
     2315      </xsl:choose> 
     2316      </span> 
     2317      </xsl:if> --> 
    17372318 
    17382319    <xsl:if test="/bedework/searchResults/curPage &lt; 2"> 
    1739      <span class="numReturnedResults"> 
    1740         <xsl:value-of select="/bedework/searchResults/resultSize"/><xsl:text> result</xsl:text> 
    1741         <xsl:if test="/bedework/searchResults/resultSize != 1">s</xsl:if><xsl:text> returned for: </xsl:text> 
    1742         <em><xsl:value-of select="/bedework/searchResults/query"/></em> 
    1743      </span> 
     2320      <span class="numReturnedResults"> 
     2321        <xsl:value-of 
     2322          select="/bedework/searchResults/resultSize" /> 
     2323        <xsl:text> result</xsl:text> 
     2324        <xsl:if 
     2325          test="/bedework/searchResults/resultSize != 1"> 
     2326          s 
     2327        </xsl:if> 
     2328        <xsl:text> returned for: </xsl:text> 
     2329        <em> 
     2330          <xsl:value-of 
     2331            select="/bedework/searchResults/query" /> 
     2332        </em> 
     2333      </span> 
    17442334    </xsl:if> 
    1745      <xsl:if test="/bedework/searchResults/searchResult"> 
    1746         <table id="searchTable" cellpadding="0" cellspacing="0" width="100%"> 
    1747           <tr> 
    1748             <th class="search_relevance">Rank</th> 
    1749             <th class="search_date">Date</th> 
    1750             <th class="search_summary">Summary</th> 
    1751             <th class="search_location">Location</th> 
    1752           </tr> 
    1753         <xsl:for-each select="/bedework/searchResults/searchResult[not(event/categories/category/value = 'Local')]"> 
     2335    <xsl:if test="/bedework/searchResults/searchResult"> 
     2336      <table id="searchTable" cellpadding="0" cellspacing="0" 
     2337        width="100%"> 
     2338        <tr> 
     2339          <th class="search_relevance">Rank</th> 
     2340          <th class="search_date">Date</th> 
     2341          <th class="search_summary">Summary</th> 
     2342          <th class="search_location">Location</th> 
     2343        </tr> 
     2344        <xsl:for-each 
     2345          select="/bedework/searchResults/searchResult[not(event/categories/category/value = 'Local')]"> 
    17542346          <xsl:if test="event/summary"> 
    1755         <xsl:variable name="subscriptionId" select="event/subscription/id"/> 
    1756             <xsl:variable name="calPath" select="event/calendar/encodedPath"/> 
    1757             <xsl:variable name="guid" select="event/guid"/> 
    1758             <xsl:variable name="recurrenceId" select="event/recurrenceId"/> 
     2347            <xsl:variable name="subscriptionId" 
     2348              select="event/subscription/id" /> 
     2349            <xsl:variable name="calPath" 
     2350              select="event/calendar/encodedPath" /> 
     2351            <xsl:variable name="guid" select="event/guid" /> 
     2352            <xsl:variable name="recurrenceId" 
     2353              select="event/recurrenceId" /> 
    17592354            <tr> 
    17602355              <td class="search_relevance"> 
    1761                  <xsl:choose> 
    1762                 <xsl:when test="contains(score,'E')">1%</xsl:when> 
    1763                 <xsl:otherwise> 
    1764                     <xsl:value-of select="ceiling(number(score)*100)"/>% 
    1765             </xsl:otherwise> 
    1766             </xsl:choose> 
     2356                <xsl:choose> 
     2357                  <xsl:when 
     2358                    test="contains(score,'E')"> 
     2359                    1% 
     2360                  </xsl:when> 
     2361                  <xsl:otherwise> 
     2362                    <xsl:value-of 
     2363                      select="ceiling(number(score)*100)" /> 
     2364                    % 
     2365                  </xsl:otherwise> 
     2366                </xsl:choose> 
    17672367              </td> 
    17682368              <td class="search_date"> 
    1769                 <xsl:value-of select="event/start/shortdate"/> 
     2369                <xsl:value-of 
     2370                  select="event/start/shortdate" /> 
    17702371                <xsl:text> </xsl:text> 
    17712372              </td> 
    17722373              <td class="search_summary"> 
    1773                 <a href="{$eventView}&amp;subid={$subscriptionId}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}"> 
    1774                   <xsl:value-of select="event/summary"/> 
     2374                <a 
     2375                  href="{$eventView}&amp;subid={$subscriptionId}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}"> 
     2376                  <xsl:value-of 
     2377                    select="event/summary" /> 
    17752378                </a> 
    17762379              </td> 
    17772380              <td class="search_location"> 
    1778                 <xsl:value-of select="event/location/address"/> 
     2381                <xsl:value-of 
     2382                  select="event/location/address" /> 
    17792383              </td> 
    17802384            </tr> 
    1781       </xsl:if> 
     2385          </xsl:if> 
    17822386        </xsl:for-each> 
    17832387      </table> 
    1784   </xsl:if> 
     2388    </xsl:if> 
    17852389    <xsl:if test="/bedework/searchResults/numPages &gt; 1"> 
    1786       <span class="resultPages" id="resultsBottom">Page(s): 
    1787         <xsl:variable name="curPage" select="/bedework/searchResults/curPage"/> 
     2390      <span class="resultPages" id="resultsBottom"> 
     2391        Page(s): 
     2392        <xsl:variable name="curPage" 
     2393          select="/bedework/searchResults/curPage" /> 
    17882394        <xsl:if test="/bedework/searchResults/curPage != 1"> 
    1789           <xsl:variable name="prevPage" select="number($curPage) - 1"/> 
    1790           <a href="{$search-next}&amp;pageNum={$prevPage}">«</a> 
     2395          <xsl:variable name="prevPage" 
     2396            select="number($curPage) - 1" /> 
     2397          <a href="{$search-next}&amp;pageNum={$prevPage}"> 
     2398            « 
     2399          </a> 
    17912400        </xsl:if> 
    17922401        <xsl:text> </xsl:text> 
     
    17942403          <xsl:with-param name="page"> 
    17952404            <xsl:choose> 
    1796               <xsl:when test="number($curPage) - 10 &lt; 1">1</xsl:when> 
     2405              <xsl:when 
     2406                test="number($curPage) - 10 &lt; 1"> 
     2407                1 
     2408              </xsl:when> 
    17972409              <xsl:otherwise> 
    1798                 <xsl:value-of select="number($curPage) - 6"/> 
     2410                <xsl:value-of 
     2411                  select="number($curPage) - 6" /> 
    17992412              </xsl:otherwise> 
    18002413            </xsl:choose> 
     
    18032416        <xsl:text> </xsl:text> 
    18042417        <xsl:choose> 
    1805           <xsl:when test="$curPage != /bedework/searchResults/numPages"> 
    1806             <xsl:variable name="nextPage" select="number($curPage) + 1"/> 
    1807             <a href="{$search-next}&amp;pageNum={$nextPage}">»</a></xsl:when> 
     2418          <xsl:when 
     2419            test="$curPage != /bedework/searchResults/numPages"> 
     2420            <xsl:variable name="nextPage" 
     2421              select="number($curPage) + 1" /> 
     2422            <a 
     2423              href="{$search-next}&amp;pageNum={$nextPage}"> 
     2424              » 
     2425            </a> 
     2426          </xsl:when> 
    18082427          <xsl:otherwise> 
    18092428            <span class="hidden">«</span> 
     
    18162435 
    18172436  <xsl:template name="advancedSearch"> 
    1818       <div id="advSearch"> 
    1819         <h3>Advanced Search</h3> 
    1820         <form id="advSearchForm" name="searchForm" onsubmit="return initCat()" method="post" action="{$search}"> 
    1821           Search: <input type="text" name="query" size="40" value=""/> 
    1822 <!--          <xsl:attribute name="value"> 
    1823             <xsl:value-of select="/bedework/searchResults/query"/> 
     2437    <div id="advSearch"> 
     2438      <h3>Advanced Search</h3> 
     2439      <form id="advSearchForm" name="searchForm" 
     2440        onsubmit="return initCat()" method="post" action="{$search}"> 
     2441        Search: 
     2442        <input type="text" name="query" size="40" value="" /> 
     2443        <!--          <xsl:attribute name="value"> 
     2444          <xsl:value-of select="/bedework/searchResults/query"/> 
    18242445          </xsl:attribute> 
    18252446          </input>--> 
    1826           <br/> 
    1827           <label>Limit by:</label><br/> 
    1828          <xsl:choose> 
    1829             <xsl:when test="/bedework/searchResults/searchLimits = 'beforeToday'"> 
    1830               <input type="radio" name="searchLimits" value="fromToday"/>Today forward 
    1831               <br/> 
    1832               <input type="radio" name="searchLimits" value="beforeToday" checked="checked"/>Past dates 
    1833               <br/> 
    1834               <input type="radio" name="searchLimits" value="none"/>All dates<br/> 
    1835             </xsl:when> 
    1836             <xsl:when test="/bedework/searchResults/searchLimits = 'none'"> 
    1837               <input type="radio" name="searchLimits" value="fromToday"/>Today forward<br/> 
    1838               <input type="radio" name="searchLimits" value="beforeToday"/>Past dates<br/> 
    1839               <input type="radio" name="searchLimits" value="none" checked="checked"/>All dates<br/> 
    1840             </xsl:when> 
    1841             <xsl:otherwise> 
    1842               <input type="radio" name="searchLimits" value="fromToday" checked="checked"/>Today forward<br/> 
    1843               <input type="radio" name="searchLimits" value="beforeToday"/>Past dates<br/> 
    1844               <input type="radio" name="searchLimits" value="none"/>All dates<br/> 
    1845             </xsl:otherwise> 
    1846          </xsl:choose> 
    1847  
    1848           <input type="submit" name="submit" value="Search"/> 
    1849  
    1850      <div id="searchCats"> 
    1851             <h4>Select Categories to Search (Optional)</h4> 
    1852             <p>A search term is not required if at least one category is selected.</p> 
    1853             <xsl:variable name="catCount" select="count(/bedework/categories/category)"/> 
    1854       <table><tr> 
    1855         <td> 
    1856           <ul> 
    1857             <xsl:for-each select="/bedework/categories/category[(position() &lt;= ceiling($catCount div 2)) and (keyword != 'Local') and (creator != 'agrp_public-user') and (keyword != 'Main') and (keyword != 'Student') and (keyword != 'calCrossPublish')]"> 
    1858                   <xsl:variable name="currId" select="keyword"/> 
    1859                   <li> 
    1860                     <p><input type="checkbox" name="categoryKey" value="{$currId}"/> 
    1861                     <xsl:value-of select="keyword"/></p> 
    1862                   </li> 
    1863                 </xsl:for-each> 
    1864           </ul> 
    1865         </td> 
    1866         <td> 
    1867           <ul> 
    1868             <xsl:for-each select="/bedework/categories/category[(position() &gt; ceiling($catCount div 2)) and (keyword != 'Local') and (creator != 'agrp_public-user') and (keyword != 'Main') and (keyword != 'Student') and (keyword != 'calCrossPublish')]"> 
    1869                   <xsl:variable name="currId2" select="keyword"/> 
    1870                   <li> 
    1871                     <p><input type="checkbox" name="categoryKey" value="{$currId2}"/> 
    1872                     <xsl:value-of select="keyword"/></p> 
    1873                   </li> 
    1874                 </xsl:for-each> 
    1875               </ul> 
    1876         </td> 
    1877         </tr> 
    1878         </table> 
    1879           </div> 
    1880        <input type="submit" name="submit" value="Search"/> 
    1881         </form> 
     2447        <br /> 
     2448        <label>Limit by:</label> 
     2449        <br /> 
     2450        <xsl:choose> 
     2451          <xsl:when 
     2452            test="/bedework/searchResults/searchLimits = 'beforeToday'"> 
     2453            <input type="radio" name="searchLimits" 
     2454              value="fromToday" /> 
     2455            Today forward 
     2456            <br /> 
     2457            <input type="radio" name="searchLimits" 
     2458              value="beforeToday" checked="checked" /> 
     2459            Past dates 
     2460            <br /> 
     2461            <input type="radio" name="searchLimits" 
     2462              value="none" /> 
     2463            All dates 
     2464            <br /> 
     2465          </xsl:when> 
     2466          <xsl:when 
     2467            test="/bedework/searchResults/searchLimits = 'none'"> 
     2468            <input type="radio" name="searchLimits" 
     2469              value="fromToday" /> 
     2470            Today forward 
     2471            <br /> 
     2472            <input type="radio" name="searchLimits" 
     2473              value="beforeToday" /> 
     2474            Past dates 
     2475            <br /> 
     2476            <input type="radio" name="searchLimits" 
     2477              value="none" checked="checked" /> 
     2478            All dates 
     2479            <br /> 
     2480          </xsl:when> 
     2481          <xsl:otherwise> 
     2482            <input type="radio" name="searchLimits" 
     2483              value="fromToday" checked="checked" /> 
     2484            Today forward 
     2485            <br /> 
     2486            <input type="radio" name="searchLimits" 
     2487              value="beforeToday" /> 
     2488            Past dates 
     2489            <br /> 
     2490            <input type="radio" name="searchLimits" 
     2491              value="none" /> 
     2492            All dates 
     2493            <br /> 
     2494          </xsl:otherwise> 
     2495        </xsl:choose> 
     2496 
     2497        <input type="submit" name="submit" value="Search" /> 
     2498 
     2499        <div id="searchCats"> 
     2500          <h4>Select Categories to Search (Optional)</h4> 
     2501          <p> 
     2502            A search term is not required if at least one 
     2503            category is selected. 
     2504          </p> 
     2505          <xsl:variable name="catCount" 
     2506            select="count(/bedework/categories/category)" /> 
     2507          <table> 
     2508            <tr> 
     2509              <td> 
     2510                <ul> 
     2511                  <xsl:for-each 
     2512                    select="/bedework/categories/category[(position() &lt;= ceiling($catCount div 2)) and (keyword != 'Local') and (creator != 'agrp_public-user') and (keyword != 'Main') and (keyword != 'Student') and (keyword != 'calCrossPublish')]"> 
     2513                    <xsl:variable name="currId" 
     2514                      select="keyword" /> 
     2515                    <li> 
     2516                      <p> 
     2517                        <input type="checkbox" 
     2518                          name="categoryKey" value="{$currId}" /> 
     2519                        <xsl:value-of 
     2520                          select="keyword" /> 
     2521                      </p> 
     2522                    </li> 
     2523                  </xsl:for-each> 
     2524                </ul> 
     2525              </td> 
     2526              <td> 
     2527                <ul> 
     2528                  <xsl:for-each 
     2529                    select="/bedework/categories/category[(position() &gt; ceiling($catCount div 2)) and (keyword != 'Local') and (creator != 'agrp_public-user') and (keyword != 'Main') and (keyword != 'Student') and (keyword != 'calCrossPublish')]"> 
     2530                    <xsl:variable name="currId2" 
     2531                      select="keyword" /> 
     2532                    <li> 
     2533                      <p> 
     2534                        <input type="checkbox" 
     2535                          name="categoryKey" value="{$currId2}" /> 
     2536                        <xsl:value-of 
     2537                          select="keyword" /> 
     2538                      </p> 
     2539                    </li> 
     2540                  </xsl:for-each> 
     2541                </ul> 
     2542              </td> 
     2543            </tr> 
     2544          </table> 
     2545        </div> 
     2546        <input type="submit" name="submit" value="Search" /> 
     2547      </form> 
    18822548    </div> 
    18832549  </xsl:template> 
     
    18852551  <xsl:template name="searchResultPageNav"> 
    18862552    <xsl:param name="page">1</xsl:param> 
    1887     <xsl:variable name="curPage" select="/bedework/searchResults/curPage"/> 
    1888     <xsl:variable name="numPages" select="/bedework/searchResults/numPages"/> 
     2553    <xsl:variable name="curPage" 
     2554      select="/bedework/searchResults/curPage" /> 
     2555    <xsl:variable name="numPages" 
     2556      select="/bedework/searchResults/numPages" /> 
    18892557    <xsl:variable name="endPage"> 
    18902558      <xsl:choose> 
    1891         <xsl:when test="number($curPage) + 6 &gt; number($numPages)"> 
    1892           <xsl:value-of select="$numPages"/> 
     2559        <xsl:when 
     2560          test="number($curPage) + 6 &gt; number($numPages)"> 
     2561          <xsl:value-of select="$numPages" /> 
    18932562        </xsl:when> 
    18942563        <xsl:otherwise> 
    1895           <xsl:value-of select="number($curPage) + 6"/> 
     2564          <xsl:value-of select="number($curPage) + 6" /> 
    18962565        </xsl:otherwise> 
    18972566      </xsl:choose> 
     
    18992568    <xsl:choose> 
    19002569      <xsl:when test="$page = $curPage"> 
    1901         <span class="current"><xsl:value-of select="$page"/></span> 
     2570        <span class="current"> 
     2571          <xsl:value-of select="$page" /> 
     2572        </span> 
    19022573      </xsl:when> 
    19032574      <xsl:otherwise> 
    19042575        <a href="{$search-next}&amp;pageNum={$page}"> 
    1905           <xsl:value-of select="$page"/> 
     2576          <xsl:value-of select="$page" /> 
    19062577        </a> 
    19072578      </xsl:otherwise> 
     
    19102581    <xsl:if test="$page &lt; $endPage"> 
    19112582      <xsl:call-template name="searchResultPageNav"> 
    1912         <xsl:with-param name="page" select="number($page)+1"/> 
     2583        <xsl:with-param name="page" select="number($page)+1" /> 
    19132584      </xsl:call-template> 
    19142585    </xsl:if> 
     
    19172588  <!--==== Display Month Calendar  ====--> 
    19182589  <xsl:template name="display-month-calendar"> 
    1919                 <xsl:variable name="dayPos" select="position()"/> 
    1920                 <td> 
    1921                   <xsl:if test="/bedework/now/date = date"> 
    1922                     <xsl:attribute name="class">today</xsl:attribute> 
    1923                   </xsl:if> 
    1924                   <xsl:variable name="dayDate" select="date"/> 
    1925                   <a href="{$setViewPeriod}&amp;viewType=dayView&amp;date={$dayDate}" class="dayLink"> 
    1926                     <xsl:value-of select="value"/> 
    1927                   </a> 
    1928                   <xsl:if test="event"> 
    1929                     <ul> 
    1930                       <xsl:apply-templates select="event" mode="calendarLayout"> 
    1931                         <xsl:with-param name="dayPos" select="$dayPos"/> 
    1932                       </xsl:apply-templates> 
    1933                     </ul> 
    1934                   </xsl:if> 
    1935                 </td> 
     2590    <xsl:variable name="dayPos" select="position()" /> 
     2591    <td> 
     2592      <xsl:if test="/bedework/now/date = date"> 
     2593        <xsl:attribute name="class">today</xsl:attribute> 
     2594      </xsl:if> 
     2595      <xsl:variable name="dayDate" select="date" /> 
     2596      <a 
     2597        href="{$setViewPeriod}&amp;viewType=dayView&amp;date={$dayDate}" 
     2598        class="dayLink"> 
     2599        <xsl:value-of select="value" /> 
     2600      </a> 
     2601      <xsl:if test="event"> 
     2602        <ul> 
     2603          <xsl:apply-templates select="event" 
     2604            mode="calendarLayout"> 
     2605            <xsl:with-param name="dayPos" select="$dayPos" /> 
     2606          </xsl:apply-templates> 
     2607        </ul> 
     2608      </xsl:if> 
     2609    </td> 
    19362610  </xsl:template> 
    19372611 
     
    19412615    <div id="stats"> 
    19422616      <h2>System Statistics</h2> 
    1943       <p> Stats collection: </p> 
     2617      <p>Stats collection:</p> 
    19442618      <ul> 
    19452619        <li> 
    1946           <a href="{$stats}&amp;enable=yes">enable</a> | <a href="{$stats}&amp;disable=yes">disable</a> 
     2620          <a href="{$stats}&amp;enable=yes">enable</a> 
     2621          | 
     2622          <a href="{$stats}&amp;disable=yes">disable</a> 
    19472623        </li> 
    19482624        <li> 
    1949           <a href="{$stats}&amp;fetch=yes">fetch statistics</a> 
     2625          <a href="{$stats}&amp;fetch=yes"> 
     2626            fetch statistics 
     2627          </a> 
    19502628        </li> 
    19512629        <li> 
    1952           <a href="{$stats}&amp;dump=yes">dump stats to log</a> 
     2630          <a href="{$stats}&amp;dump=yes"> 
     2631            dump stats to log 
     2632          </a> 
    19532633        </li> 
    19542634      </ul> 
     
    19592639              <tr> 
    19602640                <th colspan="2"> 
    1961                   <xsl:value-of select="."/> 
     2641                  <xsl:value-of select="." /> 
    19622642                </th> 
    19632643              </tr> 
     
    19662646              <tr> 
    19672647                <td class="label"> 
    1968                   <xsl:value-of select="label"/> 
     2648                  <xsl:value-of select="label" /> 
    19692649                </td> 
    19702650                <td class="value"> 
    1971                   <xsl:value-of select="value"/> 
     2651                  <xsl:value-of select="value" /> 
    19722652                </td> 
    19732653              </tr> 
     
    19832663  <xsl:template name="footer"> 
    19842664    <div id="footer"> 
    1985       <xsl:copy-of select="$bwStr-Foot-BasedOnThe"/><xsl:text> </xsl:text><a href="http://www.bedework.org/"><xsl:copy-of select="$bwStr-Foot-BedeworkCalendarSystem"/></a> 
     2665      <xsl:copy-of select="$bwStr-Foot-BasedOnThe" /> 
     2666      <xsl:text> </xsl:text> 
     2667      <a href="http://www.bedework.org/"> 
     2668        <xsl:copy-of 
     2669          select="$bwStr-Foot-BedeworkCalendarSystem" /> 
     2670      </a> 
    19862671    </div> 
    1987     <table id="skinSelectorTable" border="0" cellpadding="0" cellspacing="0"> 
    1988       <tr> 
    1989         <td class="leftCell"> 
    1990           <a href="http://www.bedework.org/"><xsl:copy-of select="$bwStr-Foot-BedeworkWebsite"/></a> | 
    1991           <a href="http://www.bedework.org/bedework/update.do?artcenterkey=35"><xsl:copy-of select="$bwStr-Foot-ProductionExamples"/></a> | 
    1992           <a href="?noxslt=yes"><xsl:copy-of select="$bwStr-Foot-ShowXML"/></a> | 
    1993           <a href="?refreshXslt=yes"><xsl:copy-of select="$bwStr-Foot-RefreshXSLT"/></a> 
    1994         </td> 
    1995         <td class="rightCell"> 
    1996           <form name="styleSelectForm" method="get" action="{$setup}"> 
    1997             <select name="setappvar" onchange="submit()"> 
    1998               <option value=""><xsl:copy-of select="$bwStr-Foot-ExampleStyles"/>:</option> 
    1999               <option value="style(green)"><xsl:copy-of select="$bwStr-Foot-Green"/></option> 
    2000               <option value="style(red)"><xsl:copy-of select="$bwStr-Foot-Red"/></option> 
    2001               <option value="style(blue)"><xsl:copy-of select="$bwStr-Foot-Blue"/></option> 
    2002             </select> 
    2003           </form> 
    2004           <form name="skinSelectForm" method="post" action="{$setup}"> 
    2005             <input type="hidden" name="setappvar" value="summaryMode(details)"/> 
    2006             <select name="skinPicker" onchange="window.location = this.value"> 
    2007               <option value="{$setup}&amp;skinNameSticky=default"><xsl:copy-of select="$bwStr-Foot-ExampleSkins"/>:</option> 
    2008               <option value="{$listEvents}&amp;setappvar=summaryMode(details)&amp;skinName=rss-list&amp;days=3"> 
    2009         <xsl:copy-of select="$bwStr-Foot-RSSNext3Days"/></option> 
    2010               <option value="{$listEvents}&amp;setappvar=summaryMode(details)&amp;skinName=js-list&amp;days=3&amp;contentType=text/javascript&amp;contentName=bedework.js"> 
    2011         <xsl:copy-of select="$bwStr-Foot-JavascriptNext3Days"/></option> 
    2012               <option value="{$setViewPeriod}&amp;viewType=todayView&amp;skinName=jsToday&amp;contentType=text/javascript&amp;contentName=bedeworkToday.js"> 
    2013         <xsl:copy-of select="$bwStr-Foot-JavascriptTodaysEvents"/></option> 
    2014               <option value="{$setup}&amp;browserTypeSticky=PDA"> 
    2015         <xsl:copy-of select="$bwStr-Foot-ForMobileBrowsers"/></option> 
    2016               <option value="{$setViewPeriod}&amp;viewType=todayView&amp;skinName=videocal"> 
    2017         <xsl:copy-of select="$bwStr-Foot-VideoFeed"/></option> 
    2018               <option value="{$setup}&amp;skinNameSticky=default"> 
    2019         <xsl:copy-of select="$bwStr-Foot-ResetToCalendarDefault"/></option> 
    2020             </select> 
    2021           </form> 
    2022         </td> 
    2023       </tr> 
    2024     </table> 
     2672    <div id="subfoot"> 
     2673      <a href="http://www.bedework.org/"> 
     2674        <xsl:copy-of 
     2675          select="$bwStr-Foot-BedeworkWebsite" /> 
     2676      </a> 
     2677      | 
     2678      <a 
     2679        href="http://www.bedework.org/bedework/update.do?artcenterkey=35"> 
     2680        <xsl:copy-of 
     2681          select="$bwStr-Foot-ProductionExamples" /> 
     2682      </a> 
     2683      | 
     2684      <a href="?noxslt=yes"> 
     2685        <xsl:copy-of select="$bwStr-Foot-ShowXML" /> 
     2686      </a> 
     2687      | 
     2688      <a href="?refreshXslt=yes"> 
     2689        <xsl:copy-of select="$bwStr-Foot-RefreshXSLT" /> 
     2690      </a> 
     2691      <form name="styleSelectForm" method="get" 
     2692        action="{$setup}"> 
     2693        <select name="setappvar" onchange="submit()"> 
     2694          <option value=""> 
     2695            <xsl:copy-of 
     2696              select="$bwStr-Foot-ExampleStyles" /> 
     2697            : 
     2698          </option> 
     2699          <option value="style(green)"> 
     2700            <xsl:copy-of select="$bwStr-Foot-Green" /> 
     2701          </option> 
     2702          <option value="style(red)"> 
     2703            <xsl:copy-of select="$bwStr-Foot-Red" /> 
     2704          </option> 
     2705          <option value="style(blue)"> 
     2706            <xsl:copy-of select="$bwStr-Foot-Blue" /> 
     2707          </option> 
     2708        </select> 
     2709      </form> 
     2710      <form name="skinSelectForm" method="post" 
     2711        action="{$setup}"> 
     2712        <input type="hidden" name="setappvar" 
     2713          value="summaryMode(details)" /> 
     2714        <select name="skinPicker" 
     2715          onchange="window.location = this.value"> 
     2716          <option 
     2717            value="{$setup}&amp;skinNameSticky=default"> 
     2718            <xsl:copy-of 
     2719              select="$bwStr-Foot-ExampleSkins" /> 
     2720            : 
     2721          </option> 
     2722          <option 
     2723            value="{$listEvents}&amp;setappvar=summaryMode(details)&amp;skinName=rss-list&amp;days=3"> 
     2724            <xsl:copy-of 
     2725              select="$bwStr-Foot-RSSNext3Days" /> 
     2726          </option> 
     2727          <option 
     2728            value="{$listEvents}&amp;setappvar=summaryMode(details)&amp;skinName=js-list&amp;days=3&amp;contentType=text/javascript&amp;contentName=bedework.js"> 
     2729            <xsl:copy-of 
     2730              select="$bwStr-Foot-JavascriptNext3Days" /> 
     2731          </option> 
     2732          <option 
     2733            value="{$setViewPeriod}&amp;viewType=todayView&amp;skinName=jsToday&amp;contentType=text/javascript&amp;contentName=bedeworkToday.js"> 
     2734            <xsl:copy-of 
     2735              select="$bwStr-Foot-JavascriptTodaysEvents" /> 
     2736          </option> 
     2737          <option 
     2738            value="{$setup}&amp;browserTypeSticky=PDA"> 
     2739            <xsl:copy-of 
     2740              select="$bwStr-Foot-ForMobileBrowsers" /> 
     2741          </option> 
     2742          <option 
     2743            value="{$setViewPeriod}&amp;viewType=todayView&amp;skinName=videocal"> 
     2744            <xsl:copy-of 
     2745              select="$bwStr-Foot-VideoFeed" /> 
     2746          </option> 
     2747          <option 
     2748            value="{$setup}&amp;skinNameSticky=default"> 
     2749            <xsl:copy-of 
     2750              select="$bwStr-Foot-ResetToCalendarDefault" /> 
     2751          </option> 
     2752        </select> 
     2753      </form> 
     2754    </div> 
    20252755  </xsl:template> 
    20262756</xsl:stylesheet> 
  • trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/default/default/defaultTheme/css/fixed.css

    r2464 r2466  
    191191 
    192192div.display-header  {font-weight:bold; font: italic 2em Garamond, sans-serif;} 
    193 span.event-lab { width:10%; font: italic .8em, sans-serif; color:#078C2D;} 
    194 span.tab-stop  { width:90%; color: #0A1599; font:1em} 
     193span.event-lab { 
     194  width:10%; 
     195  font-style: italic; 
     196  font-size: .8em; 
     197  font-family: sans-serif; 
     198  color:#078C2D; 
     199
     200span.tab-stop  { width:90%; color: #0A1599; font-size:1em} 
    195201div.event-title  {font-weight:bold;  font: 1.3em Garamond, sans-serif;margin: .8em 0em .4em 0em} 
    196202 
     
    285291    cursor:pointer; 
    286292    font-size: .8em; 
    287      
     293 
    288294} 
    289295#rssValue {