Changeset 2466
- Timestamp:
- 12/12/09 14:55:24
- Files:
-
- trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/default/default/default.xsl (modified) (53 diffs)
- trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/default/default/defaultTheme/css/blue.css (deleted)
- trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/default/default/defaultTheme/css/elastic.css (deleted)
- trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/default/default/defaultTheme/css/fixed.css (modified) (2 diffs)
- trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/default/default/defaultTheme/css/green.css (deleted)
- trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/default/default/defaultTheme/css/red.css (deleted)
- trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/default/default/defaultTheme/css/reset.css (deleted)
- trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/default/default/defaultTheme/css/subColors.css (deleted)
- trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/default/default/defaultTheme/css/videocal.css (deleted)
- trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/default/default/defaultTheme/display-events.xsl (added)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/default/default/default.xsl
r2464 r2466 1 1 <?xml version="1.0" encoding="UTF-8"?> 2 <xsl:stylesheet 3 version="1.0" 2 <xsl:stylesheet version="1.0" 4 3 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 5 4 xmlns="http://www.w3.org/1999/xhtml"> 6 5 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 <!-- ********************************************************************** 34 29 Copyright 2006 Rensselaer Polytechnic Institute. All worldwide rights reserved. 35 30 36 31 Redistribution and use of this distribution in source and binary forms, 37 32 with or without modification, are permitted provided that: 38 The above copyright notice and this permission notice appear in all39 copies and supporting documentation;40 41 The name, identifiers, and trademarks of Rensselaer Polytechnic42 Institute are not used in advertising or publicity without the43 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; 44 39 45 40 DISCLAIMER: The software is distributed" AS IS" without any express or … … 61 56 62 57 <!-- 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" /> 67 62 68 63 <!-- acheck --> 69 <xsl:include href=" ../default/display-events.xsl"/>64 <xsl:include href="defaultTheme/display-events.xsl" /> 70 65 <!-- <xsl:include href="featured.xsl"/> --> 71 66 … … 73 68 74 69 <!-- 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> 77 72 78 73 <!-- URL of the XSL template directory --> 79 74 <!-- The approot is an appropriate place to put 80 included stylesheets and xml fragments. These are generally81 referenced relatively (like errors.xsl and messages.xsl above);82 this variable is here for your convenience if you choose to83 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" /> 86 81 87 82 <!-- 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 use90 here. Every url includes a query string (either ?b=de or a real query91 string) so that all links constructed in this stylesheet may begin the92 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" /> 106 101 107 102 <!-- acheck --> … … 109 104 110 105 <!-- URL of the web application - includes web context --> 111 <xsl:variable name="urlPrefix" select="/bedework/urlprefix" />106 <xsl:variable name="urlPrefix" select="/bedework/urlprefix" /> 112 107 113 108 <!-- Other generally useful global variables --> 114 109 <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" /> 118 113 119 114 <!-- MAIN TEMPLATE --> … … 123 118 <xsl:choose> 124 119 <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> 126 121 </xsl:when> 127 122 <xsl:otherwise> 128 <title><xsl:copy-of select="$bwStr-Root-PageTitle" /></title>123 <title><xsl:copy-of select="$bwStr-Root-PageTitle" /></title> 129 124 </xsl:otherwise> 130 125 </xsl:choose> 131 126 <meta content="text/html;charset=utf-8" http-equiv="Content-Type" /> 127 132 128 <!-- 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" /> 135 131 136 132 <!-- Dependencies --> … … 138 134 <![CDATA[ 139 135 <!--[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"/> 141 137 <![endif]--> 142 138 143 139 <!--[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"/> 145 141 <![endif]--> 146 142 ]]> … … 153 149 <script type="text/javascript" src="{$resourcesRoot}/javascript/yui/animation-min.js"> </script> 154 150 <xsl:if test="/bedework/page='searchResult'"> 155 <script type="text/javascript" src="{$resourcesRoot}/javascript/catSearch.js"> </script>151 <script type="text/javascript" src="{$resourcesRoot}/javascript/catSearch.js"> </script> 156 152 </xsl:if> 157 <script type="text/javascript" src="{$resourcesRoot}/javascript/mainCampus.js"> </script>153 <script type="text/javascript" src="{$resourcesRoot}/javascript/mainCampus.js"> </script> 158 154 159 155 <!-- 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" /> 161 157 <script type="text/javascript"> 162 <xsl:call-template name="jsonDataObject"/>158 <xsl:call-template name="jsonDataObject" /> 163 159 </script> 164 <script type="text/javascript" src="{$resourcesRoot}/javascript/ifs-calendar.js"> i </script>160 <script type="text/javascript" src="{$resourcesRoot}/javascript/ifs-calendar.js"> </script> 165 161 </head> 166 162 <body> 167 163 <div id="wrap"> 168 164 <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" /> 171 167 </div> 172 168 <xsl:if test="/bedework/error"> 173 169 <div id="errors"> 174 <xsl:apply-templates select="/bedework/error"/> 170 <xsl:apply-templates 171 select="/bedework/error" /> 175 172 </div> 176 173 </xsl:if> 177 174 <div id="content"> 178 179 175 <xsl:choose> 180 181 176 <!-- Layout for: Single Event Display--> 182 177 <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> 189 183 </div> 190 </div> 184 <xsl:apply-templates select="/bedework/event" /> 185 <div class="right_column" id="right_column"></div> 186 </div> 187 </div> 191 188 </xsl:when> 192 189 … … 197 194 <h3>All Calendars</h3> 198 195 </div> 199 <xsl:apply-templates select="/bedework/calendars" />196 <xsl:apply-templates select="/bedework/calendars" /> 200 197 </div> 201 198 </xsl:when> … … 204 201 <xsl:when test="/bedework/page='searchResult'"> 205 202 <div id="contentSection"> 206 <xsl:call-template name="display-left-column" />203 <xsl:call-template name="display-left-column" /> 207 204 </div> 208 <div class="double_center_column" id="right_column"> </div> 205 <div class="double_center_column" id="right_column"> 206 </div> 209 207 <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" /> 212 210 </div> 213 211 </xsl:when> … … 215 213 <!-- Layout for: Current Day (list only) --> 216 214 <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"> </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 > 231 </a> 232 <div id="buzzResult" style="display:none"> 233 Events List 221 234 </div> 222 <div class="clear"> </div>235 </div> 223 236 </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 ></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" /> 231 242 </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>245 243 </div> 246 244 </xsl:when> 247 245 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'"> 250 249 <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> 254 255 </div> 255 256 </xsl:when> 256 257 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 257 270 <!-- 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" /> 263 278 </div> 279 </div> 264 280 </xsl:when> 265 281 266 282 <!-- 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'"> 268 285 <div id="contentSection"> 269 <xsl:call-template name="display-left-column" />286 <xsl:call-template name="display-left-column" /> 270 287 <div class="double_center_column" id="center_column"> 271 288 <div class="secondaryColHeader"> 272 <xsl:call-template name="navigation" />289 <xsl:call-template name="navigation" /> 273 290 </div> 274 <xsl:call-template name="yearView" />291 <xsl:call-template name="yearView" /> 275 292 </div> 276 <div class="right_column" id="right_column"></div>293 <div class="right_column" id="right_column"></div> 277 294 </div> 278 295 </xsl:when> … … 280 297 <!-- Layout for: System Stats --> 281 298 <xsl:when test="/bedework/page='showSysStats'"> 282 <xsl:call-template name="stats" />299 <xsl:call-template name="stats" /> 283 300 </xsl:when> 284 301 … … 286 303 a pop-up widget; see the calendars template) --> 287 304 <xsl:when test="/bedework/page='displayCalendarForExport'"> 288 <xsl:apply-templates select="/bedework/currentCalendar" mode="export" />305 <xsl:apply-templates select="/bedework/currentCalendar" mode="export" /> 289 306 </xsl:when> 290 307 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> 293 312 </xsl:choose> 294 313 … … 296 315 </div> 297 316 <!-- footer --> 298 <xsl:call-template name="footer" />317 <xsl:call-template name="footer" /> 299 318 </div> 300 319 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> 314 341 </body> 315 342 </html> … … 318 345 <!--======= Display Left Column ===========--> 319 346 <xsl:template name="display-left-column"> 320 <div class="left_column">321 <xsl:call-template name="jsDateSelectionCal"/>322 <div class="clear"> </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"> </div> 350 <xsl:call-template name="display-side-bar" /> 351 </div> 352 <xsl:call-template name="groupsList" /> 353 </xsl:template> 327 354 328 355 <!--======= Display Center Column ===========--> 329 356 <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> 337 366 </xsl:template> 338 367 339 368 <!--============= Display Side Bar ======--> 340 369 <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> 350 384 </xsl:template> 351 385 352 386 <!--============= Display Events Calendar Info ======--> 353 387 <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> 360 402 </xsl:template> 361 403 … … 363 405 <xsl:template match="system-data-structure"> 364 406 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" /> 374 423 375 424 <xsl:choose> 376 425 <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}" /> 378 429 </xsl:when> 379 430 <xsl:otherwise> 380 431 <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}" /> 382 435 </a> 383 436 </xsl:otherwise> 384 437 </xsl:choose> 385 438 386 <xsl:choose>439 <xsl:choose> 387 440 <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}" /> 389 444 </xsl:when> 390 445 <xsl:otherwise> 391 446 <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}" /> 393 450 </a> 394 451 </xsl:otherwise> 395 452 </xsl:choose> 396 453 397 <xsl:choose>454 <xsl:choose> 398 455 <xsl:when test="$featureLinkRIGHT = ''"> 399 <img src="{$resourcesRoot}/data/FeaturedEvent/{$imageFilenameRIGHT}" alt="{$toolTipRIGHT}"/> 456 <img 457 src="{$resourcesRoot}/data/FeaturedEvent/{$imageFilenameRIGHT}" 458 alt="{$toolTipRIGHT}" /> 400 459 </xsl:when> 401 460 <xsl:otherwise> 402 461 <a href="{$featureLinkRIGHT}"> 403 <img src="{$resourcesRoot}/data/FeaturedEvent/{$imageFilenameRIGHT}" alt="{$toolTipRIGHT}"/> 462 <img 463 src="{$resourcesRoot}/data/FeaturedEvent/{$imageFilenameRIGHT}" 464 alt="{$toolTipRIGHT}" /> 404 465 </a> 405 466 </xsl:otherwise> … … 412 473 <!-- Month to display (to be handed in to js, so it aligns with the events beeing shown) --> 413 474 <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)" /> 415 476 <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)" /> 417 478 </xsl:variable> 418 419 479 <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)" /> 421 481 </xsl:variable> 422 423 482 <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)" /> 425 484 </xsl:variable> 426 427 485 <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)" /> 429 487 </xsl:variable> 430 431 488 <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)" /> 433 490 </xsl:variable> 434 435 491 <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)" /> 437 493 </xsl:variable> 438 439 494 <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)" /> 441 496 </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 453 500 <!--==== HEADER TEMPLATES and NAVIGATION ====--> 454 501 <!-- these templates are separated out for convenience and to simplify the default template --> 455 502 <xsl:template name="dateTitleBar"> 456 503 <xsl:choose> 457 <xsl:when test="/bedework/page='showSysStats' or /bedework/page='calendars'"> </xsl:when> 504 <xsl:when 505 test="/bedework/page='showSysStats' or /bedework/page='calendars'"> 506   507 </xsl:when> 458 508 <xsl:otherwise> 459 509 <div id="head-top"> 460 510 <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 --> 462 518 </div> 463 <a id="currentDate" href="{$setViewPeriod}&viewType=todayView&date={$curdate}"> 464 <xsl:value-of select="/bedework/now/longdate"/> 519 <a id="currentDate" 520 href="{$setViewPeriod}&viewType=todayView&date={$curdate}"> 521 <xsl:value-of select="/bedework/now/longdate" /> 465 522 </a> 466 523 </xsl:otherwise> … … 472 529 <select name="viewStartDate.month"> 473 530 <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()" /> 476 533 <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]" /> 480 540 </option> 481 541 </xsl:when> 482 542 <xsl:otherwise> 483 543 <option value="{$temp}"> 484 <xsl:value-of select="/bedework/monthlabels/val[position()=$pos]"/> 544 <xsl:value-of 545 select="/bedework/monthlabels/val[position()=$pos]" /> 485 546 </option> 486 547 </xsl:otherwise> … … 490 551 <xsl:if test="/bedework/periodname!='Month'"> 491 552 <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()" /> 495 558 <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]" /> 499 565 </option> 500 566 </xsl:when> 501 567 <xsl:otherwise> 502 568 <option value="{$temp}"> 503 <xsl:value-of select="/bedework/daylabels/val[position()=$pos]"/> 569 <xsl:value-of 570 select="/bedework/daylabels/val[position()=$pos]" /> 504 571 </option> 505 572 </xsl:otherwise> … … 509 576 </xsl:if> 510 577 </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" /> 514 583 </form> 515 584 </xsl:template> … … 518 587 <div id="nav-search-wrap"> 519 588 <!-- <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 --> 522 593 <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 <!-- --> 525 600 </form> 526 601 <!-- </xsl:if> --> 527 602 <ul id="nav-main"> 528 <xsl:variable name="currentClass">current</xsl:variable> 529 <li> 530 <a href="{$setViewPeriod}&viewType=dayView&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}&viewType=dayView&date={$curdate}"> 607 <xsl:if test="/bedework/periodname='Day'"> 608 <xsl:attribute name="class"> 609 <xsl:value-of select="$currentClass" /> 534 610 </xsl:attribute> 535 </xsl:if>DAY</a> 536 </li> 537 <li> 538 <a href="{$setViewPeriod}&viewType=weekView&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}&viewType=weekView&date={$curdate}"> 618 <xsl:if test="/bedework/periodname='Week'"> 619 <xsl:attribute name="class"> 620 <xsl:value-of select="$currentClass" /> 542 621 </xsl:attribute> 543 </xsl:if>WEEK</a> 544 </li> 545 <li> 546 <a href="{$setViewPeriod}&viewType=monthView&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}&viewType=monthView&date={$curdate}"> 629 <xsl:if test="/bedework/periodname='Month'"> 630 <xsl:attribute name="class"> 631 <xsl:value-of select="$currentClass" /> 549 632 </xsl:attribute> 550 </xsl:if>MONTH</a> 551 </li> 552 <li> 553 <a href="{$setViewPeriod}&viewType=yearView&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}&viewType=yearView&date={$curdate}"> 640 <xsl:if test="/bedework/periodname='Year'"> 641 <xsl:attribute name="class"> 642 <xsl:value-of select="$currentClass" /> 557 643 </xsl:attribute> 558 </xsl:if>YEAR</a> 559 </li> 644 </xsl:if> 645 YEAR 646 </a> 647 </li> 560 648 </ul> 561 649 <div class="clear"> </div> … … 566 654 <xsl:template name="jsDateSelectionCal"> 567 655 <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> 570 661 </div> 571 662 </xsl:template> 572 663 573 <xsl:template name="ongoingEventList">664 <xsl:template name="ongoingEventList"> 574 665 <h3 class="secondaryColHeader">Ongoing</h3> 575 666 <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" /> 580 673 <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" /> 592 693 </xsl:when> 593 694 </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> 599 707 </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> 617 745 </xsl:when> 618 746 </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> 623 751 </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"> 641 762 <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)" /> 644 765 </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> 645 780 <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> 648 783 <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> 654 791 </xsl:if> 655 792 </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> 656 812 </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}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&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}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}"> 826 more 827 </a> 828 <xsl:text>|</xsl:text> 829 </li> 830 </xsl:template> 683 831 684 832 <!-- Notices List --> … … 686 834 <h3 class="secondaryColHeader">Notices</h3> 687 835 <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}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&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}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}"> 867 more 868 </a> 869 <xsl:text> |</xsl:text> 870 </li> 710 871 </xsl:for-each> 711 872 </ul> … … 714 875 <!-- View List --> 715 876 <xsl:template name="viewList"> 716 <div class="secondaryColHeader"><h3>Calendar Views</h3></div> 877 <div class="secondaryColHeader"> 878 <h3>Calendar Views</h3> 879 </div> 717 880 <ul class="viewList"> 718 881 <!-- <xsl:for-each select="/bedework/views/view"> 719 882 <xsl:variable name="viewName" select="name/text()"/> 720 883 <li> 721 <a href="{$setSelection}&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}&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> 727 890 </li> 728 </xsl:for-each> --> 729 <li> 730 <a href="/cal/?setappvar=category(all)&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)&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)&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)&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)&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)&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)&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)&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)&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)&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)&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)&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)&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)&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)&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)&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)&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)&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)&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)&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)&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)&setappvar=categoryclass(University Events)&date=20100501&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)&setappvar=categoryclass(University Events)&date=20091001&viewType=monthView"> 1152 <xsl:if 1153 test="/bedework/appvar[key = "category"]/value = "Founders' Day""> 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)&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)&setappvar=categoryclass(University Events)&date=20100101&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)&setappvar=categoryclass(University Events)&date=20091023&viewType=monthView"> 1182 <xsl:if 1183 test="/bedework/appvar[key = "category"]/value = "Parents' and Family Weekend""> 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)&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)&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)&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)&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)&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)&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)&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)&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)&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)&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)&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)&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)&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)&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))"> 732 1367 <xsl:attribute name="class">current</xsl:attribute> 733 1368 </xsl:if> … … 735 1370 </a> 736 1371 </li> 737 <li> 738 <!-- <a href="/cal/?setappvar=category(Academic Calendar Dates)&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)&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)&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)&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)&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)&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)&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)&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)&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)&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> 810 1394 </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)&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)&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)&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)&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)&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)&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)&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)&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)&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)&setappvar=categoryclass(University Events)&date=20100501&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)&setappvar=categoryclass(University Events)&date=20091001&viewType=monthView"> 909 <xsl:if test="/bedework/appvar[key = "category"]/value = "Founders' Day""> 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)&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)&setappvar=categoryclass(University Events)&date=20100101&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)&setappvar=categoryclass(University Events)&date=20091023&viewType=monthView"> 927 <xsl:if test="/bedework/appvar[key = "category"]/value = "Parents' and Family Weekend""> 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)&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)&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)&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)&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)&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)&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)&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)&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)&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)&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)&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)&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)&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)&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> 1043 1398 </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> 1068 1400 1069 1401 <!-- Side Links Navigation --> 1070 1402 <xsl:template name="sideLinksList"> 1071 1403 <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> 1089 1456 </xsl:template> 1090 1457 … … 1099 1466 <li> 1100 1467 <xsl:choose> 1101 <xsl:when test="/bedework/appvar[key='summaryMode']/value='details'"> 1102 <a href="{$setup}&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}&setappvar=summaryMode(summary)" 1472 title="toggle summary/detailed view"> 1473 Summary 1474 </a> 1103 1475 </xsl:when> 1104 1476 <xsl:otherwise> 1105 <a href="{$setup}&setappvar=summaryMode(details)" title="toggle summary/detailed view"> Details </a> 1477 <a 1478 href="{$setup}&setappvar=summaryMode(details)" 1479 title="toggle summary/detailed view"> 1480 Details 1481 </a> 1106 1482 </xsl:otherwise> 1107 1483 </xsl:choose> 1108 1484 </li> 1109 1485 </ul> 1110 <xsl:variable name="rssCurrDate" select="/bedework/currentdate/date"/> 1486 <xsl:variable name="rssCurrDate" 1487 select="/bedework/currentdate/date" /> 1111 1488 <xsl:variable name="rssGroups"> 1112 1489 <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)"> 1114 1492 <xsl:text>(all)</xsl:text> 1115 1493 </xsl:when> 1116 1494 <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" /> 1118 1497 <xsl:variable name="rssGroupTemplate"> 1119 1498 <xsl:text>(</xsl:text> 1120 <xsl:value-of select="$rssCurrGroup" />1499 <xsl:value-of select="$rssCurrGroup" /> 1121 1500 <xsl:text>)</xsl:text> 1122 1501 </xsl:variable> 1123 <xsl:value-of select="$rssGroupTemplate" />1502 <xsl:value-of select="$rssGroupTemplate" /> 1124 1503 </xsl:otherwise> 1125 1504 </xsl:choose> … … 1128 1507 <xsl:variable name="rssCategory"> 1129 1508 <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)"> 1131 1511 <xsl:text>all</xsl:text> 1132 1512 </xsl:when> 1133 1513 <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" /> 1135 1516 <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 /> 1139 1520 </xsl:variable> 1140 <xsl:value-of select="$rssCatTemplate" />1521 <xsl:value-of select="$rssCatTemplate" /> 1141 1522 </xsl:otherwise> 1142 1523 </xsl:choose> … … 1154 1535 </xsl:if> 1155 1536 </xsl:variable> 1156 <a id="rssRequest" class="rss" href="/feed/calendar/{$rssViewType}/rss/{$rssGroups}/details/{$rssCategory}" title="RSS feed"> <!-- &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 <!-- &date={$rssCurrDate} --> 1541 <img src="{$resourcesRoot}/images/feed-icon-14x14.png" 1542 alt="RSS Feed Icon" /> 1158 1543 </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> 1161 1550 <h5 style="padding: 6px;">RSS Feed Details</h5> 1162 1551 <!-- setappvar=summaryMode(details){$rssGroups}skinName=rss{$rssCategory}viewType={$rssViewType} --> 1163 1552 <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> 1167 1565 </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="" /> 1171 1575 <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> 1175 1591 </ul> 1176 1592 </div> 1177 1593 </xsl:if> 1178 <a id="prevViewPeriod" href="{$setViewPeriod}&date={$prevdate}">«</a> 1594 <a id="prevViewPeriod" 1595 href="{$setViewPeriod}&date={$prevdate}"> 1596 « 1597 </a> 1179 1598 <h3> 1180 1599 <xsl:choose> 1181 1600 <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)" /> 1183 1603 </xsl:when> 1184 1604 <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)" /> 1186 1609 </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,', ')" /> 1188 1614 </xsl:when> 1189 1615 <xsl:otherwise> 1190 <xsl:value-of select="/bedework/firstday/longdate" />1616 <xsl:value-of select="/bedework/firstday/longdate" /> 1191 1617 </xsl:otherwise> 1192 1618 </xsl:choose> 1193 1619 </h3> 1194 <a id="nextViewPeriod" href="{$setViewPeriod}&date={$nextdate}">»</a> 1195 </xsl:template> 1196 <xsl:template name="searchBar"> SEARCH BAR </xsl:template> 1620 <a id="nextViewPeriod" 1621 href="{$setViewPeriod}&date={$nextdate}"> 1622 » 1623 </a> 1624 </xsl:template> 1625 <xsl:template name="searchBar">SEARCH BAR</xsl:template> 1197 1626 <!--==== SINGLE EVENT ====--> 1198 1627 <!-- I am going to modify this quite a bit. I don't think we need 300+ lines of code ot print out an event, 1199 1628 but may want to compare this to the original if things get wonky --> 1200 1629 <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" /> 1206 1635 <xsl:variable name="statusClass"> 1207 1636 <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> 1210 1643 <xsl:otherwise>bwStatusConfirmed</xsl:otherwise> 1211 1644 </xsl:choose> … … 1215 1648 1216 1649 <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&dates={$gStartdate}/{$gEnddate}&text={$gText}&details={$gDetails}&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&dates={$gStartdate}/{$gEnddate}&text={$gText}&details={$gDetails}&location={$gLocation}"> 1658 <img title="Add to Google Calendar" 1659 src="{$resourcesRoot}/images/gcal.gif" 1660 alt="Add to Google Calendar" /> 1661 </a> 1223 1662 <xsl:choose> 1224 1663 <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> 1226 1670 </xsl:when> 1227 1671 <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> 1229 1678 </xsl:otherwise> 1230 1679 </xsl:choose> 1231 <xsl:variable name="eventIcalName" select="concat($guid,'.ics')"/> 1232 <a class="eventIcons" href="{$export}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}&nocache=no&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}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}&nocache=no&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" /> 1234 1687 </a> 1235 <xsl:if test="status='CANCELLED'">CANCELLED: </xsl:if>1688 <xsl:if test="status='CANCELLED'">CANCELLED:</xsl:if> 1236 1689 <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" /> 1239 1692 </xsl:if> 1240 1693 </h2> 1241 1694 1242 1695 <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" /> 1246 1701 <xsl:text> </xsl:text> 1247 1702 <xsl:if test="start/allday = 'false'"> 1248 1703 <span class="time"> 1249 <xsl:value-of select="start/time" />1704 <xsl:value-of select="start/time" /> 1250 1705 </span> 1251 1706 </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> 1253 1711 <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> 1255 1716 </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!=''"> 1280 1743 <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" /> 1281 1752 <xsl:if test="location/subaddress!=''"> 1282 1753 <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="'
'" /> 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}&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" /> 1285 1848 </xsl:when> 1286 1849 <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" /> 1294 1854 </a> 1295 1855 </xsl:otherwise> 1296 1856 </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> 1302 1869 </span> 1303 1870 </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="'
'"/> 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}&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> 1341 1883 </span> 1342 1884 </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"> 1399 1886 <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> 1404 1892 </xsl:for-each> 1405 1893 </span> … … 1408 1896 <xsl:if test="comments/comment"> 1409 1897 <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> 1416 1904 </span> 1417 1905 </xsl:if> … … 1426 1914 <xsl:for-each select="/bedework/daynames/val"> 1427 1915 <th class="dayHeading"> 1428 <xsl:value-of select="." />1916 <xsl:value-of select="." /> 1429 1917 </th> 1430 1918 </xsl:for-each> 1431 1919 </tr> 1432 1920 <tr> 1433 <xsl:for-each select="/bedework/eventscalendar/year/month/week/day"> 1921 <xsl:for-each 1922 select="/bedework/eventscalendar/year/month/week/day"> 1434 1923 <xsl:if test="filler='false'"> 1435 <xsl:call-template name="display-month-calendar"/> 1924 <xsl:call-template 1925 name="display-month-calendar" /> 1436 1926 </xsl:if> 1437 1927 </xsl:for-each> … … 1447 1937 <xsl:for-each select="/bedework/daynames/val"> 1448 1938 <th class="dayHeading"> 1449 <xsl:value-of select="." />1939 <xsl:value-of select="." /> 1450 1940 </th> 1451 1941 </xsl:for-each> 1452 1942 </tr> 1453 <xsl:for-each select="/bedework/eventscalendar/year/month/week"> 1943 <xsl:for-each 1944 select="/bedework/eventscalendar/year/month/week"> 1454 1945 <tr> 1455 1946 <xsl:for-each select="day"> 1456 1947 <xsl:choose> 1457 1948 <xsl:when test="filler='true'"> 1458 <td class="filler"> </td>1949 <td class="filler"> </td> 1459 1950 </xsl:when> 1460 1951 <xsl:otherwise> 1461 <xsl:call-template name="display-month-calendar"/> 1952 <xsl:call-template 1953 name="display-month-calendar" /> 1462 1954 </xsl:otherwise> 1463 1955 </xsl:choose> … … 1470 1962 <!--== EVENTS IN THE CALENDAR GRID ==--> 1471 1963 <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" /> 1477 1969 <xsl:variable name="eventClass"> 1478 1970 <xsl:choose> 1479 1971 <!-- 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> 1482 1978 <!-- 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> 1484 1982 <xsl:otherwise>eventLinkB</xsl:otherwise> 1485 1983 </xsl:choose> 1486 1984 </xsl:variable> 1487 1985 <!-- 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. The1490 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). --> 1491 1989 <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" /> 1494 1993 </xsl:if> 1495 1994 </xsl:variable> 1496 1995 <li> 1497 <a href="{$eventView}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}" class="{$eventClass} {$subscriptionClass}"> 1498 <xsl:if test="status='CANCELLED'">CANCELLED: </xsl:if> 1996 <a 1997 href="{$eventView}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}" 1998 class="{$eventClass} {$subscriptionClass}"> 1999 <xsl:if test="status='CANCELLED'">CANCELLED:</xsl:if> 1499 2000 <xsl:choose> 1500 <xsl:when test="start/shortdate != ../shortdate"> (cont) </xsl:when> 2001 <xsl:when test="start/shortdate != ../shortdate"> 2002 (cont) 2003 </xsl:when> 1501 2004 <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> 1504 2009 </xsl:choose> 1505 <xsl:value-of select="summary" />2010 <xsl:value-of select="summary" /> 1506 2011 <xsl:variable name="eventTipClass"> 1507 2012 <xsl:choose> 1508 <xsl:when test="$dayPos > 5">eventTipReverse</xsl:when> 2013 <xsl:when test="$dayPos > 5"> 2014 eventTipReverse 2015 </xsl:when> 1509 2016 <xsl:otherwise>eventTip</xsl:otherwise> 1510 2017 </xsl:choose> … … 1512 2019 <span class="{$eventTipClass}"> 1513 2020 <xsl:if test="status='CANCELLED'"> 1514 <span class="eventTipStatusCancelled">CANCELLED</span> 2021 <span class="eventTipStatusCancelled"> 2022 CANCELLED 2023 </span> 1515 2024 </xsl:if> 1516 2025 <xsl:if test="status='TENTATIVE'"> 1517 <span class="eventTipStatusTentative">TENTATIVE</span> 2026 <span class="eventTipStatusTentative"> 2027 TENTATIVE 2028 </span> 1518 2029 </xsl:if> 1519 2030 <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> 1523 2039 <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" /> 1526 2045 <xsl:text> </xsl:text> 1527 2046 </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" /> 1532 2056 <xsl:text> </xsl:text> 1533 2057 </xsl:if> 1534 <xsl:value-of select="end/time" />2058 <xsl:value-of select="end/time" /> 1535 2059 </xsl:if> 1536 2060 </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" /> 1540 2070 </span> 1541 2071 </a> … … 1547 2077 <xsl:template name="yearView"> 1548 2078 <div class="yearMonthRow"> 1549 <xsl:apply-templates select="/bedework/eventscalendar/year/month[position() <= 4]"/> 2079 <xsl:apply-templates 2080 select="/bedework/eventscalendar/year/month[position() <= 4]" /> 1550 2081 </div> 1551 2082 <div class="yearMonthRow"> 1552 <xsl:apply-templates select="/bedework/eventscalendar/year/month[(position() > 4) and (position() <= 8)]"/> 2083 <xsl:apply-templates 2084 select="/bedework/eventscalendar/year/month[(position() > 4) and (position() <= 8)]" /> 1553 2085 </div> 1554 2086 <div class="yearMonthRow"> 1555 <xsl:apply-templates select="/bedework/eventscalendar/year/month[position() > 8]"/> 2087 <xsl:apply-templates 2088 select="/bedework/eventscalendar/year/month[position() > 8]" /> 1556 2089 </div> 1557 2090 </xsl:template> 1558 2091 <!-- year view month tables --> 1559 2092 <xsl:template match="month"> 1560 <table class="yearViewMonthTable" cellspacing="0" cellpadding="0"> 2093 <table class="yearViewMonthTable" cellspacing="0" 2094 cellpadding="0"> 1561 2095 <tr> 1562 2096 <td colspan="7" class="monthName"> 1563 <xsl:variable name="firstDayOfMonth" select="week/day/date"/> 1564 <a href="{$setViewPeriod}&viewType=monthView&date={$firstDayOfMonth}"> 1565 <xsl:value-of select="longname"/> 2097 <xsl:variable name="firstDayOfMonth" 2098 select="week/day/date" /> 2099 <a 2100 href="{$setViewPeriod}&viewType=monthView&date={$firstDayOfMonth}"> 2101 <xsl:value-of select="longname" /> 1566 2102 </a> 1567 2103 </td> … … 1570 2106 <!-- Uhh... skipping the week numbers 1571 2107 <th> </th> 1572 -->2108 --> 1573 2109 <xsl:for-each select="/bedework/shortdaynames/val"> 1574 2110 <th> 1575 <xsl:value-of select="." />2111 <xsl:value-of select="." /> 1576 2112 </th> 1577 2113 </xsl:for-each> … … 1581 2117 <!-- Uhh... skipping the week numbers 1582 2118 <td class="weekCell"> 1583 <xsl:variable name="firstDayOfWeek" select="day/date"/>1584 1585 <a href="{$setViewPeriod}&viewType=weekView&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}&viewType=weekView&date={$firstDayOfWeek}"> 2122 me<xsl:value-of select="value"/> 2123 </a> 2124 2125 </td>--> 1590 2126 <xsl:for-each select="day"> 1591 2127 <xsl:choose> … … 1595 2131 <xsl:otherwise> 1596 2132 <td> 1597 <xsl:if test="/bedework/now/date = date"> 2133 <xsl:if 2134 test="/bedework/now/date = date"> 1598 2135 <xsl:attribute name="class">today</xsl:attribute> 1599 2136 </xsl:if> 1600 <xsl:variable name="dayDate" select="date"/> 1601 <a href="{$setViewPeriod}&viewType=dayView&date={$dayDate}"> 2137 <xsl:variable name="dayDate" 2138 select="date" /> 2139 <a 2140 href="{$setViewPeriod}&viewType=dayView&date={$dayDate}"> 1602 2141 <xsl:attribute name="class">today</xsl:attribute> 1603 <xsl:value-of select="value" />2142 <xsl:value-of select="value" /> 1604 2143 </a> 1605 2144 </td> … … 1615 2154 <!-- list of available calendars --> 1616 2155 <xsl:template match="calendars"> 1617 <xsl:variable name="topLevelCalCount" select="count(calendar/calendar)"/> 2156 <xsl:variable name="topLevelCalCount" 2157 select="count(calendar/calendar)" /> 1618 2158 <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" /> 1621 2166 </ul> 1622 2167 </xsl:template> … … 1625 2170 <xsl:variable name="itemClass"> 1626 2171 <xsl:choose> 1627 <xsl:when test="calendarCollection='false'">folder</xsl:when> 2172 <xsl:when test="calendarCollection='false'"> 2173 folder 2174 </xsl:when> 1628 2175 <xsl:otherwise>calendar</xsl:otherwise> 1629 2176 </xsl:choose> 1630 2177 </xsl:variable> 1631 <xsl:variable name="url" select="encodedPath" />2178 <xsl:variable name="url" select="encodedPath" /> 1632 2179 <li class="{$itemClass}"> 1633 <a href="{$setSelection}&calUrl={$url}" title="view calendar"> 1634 <xsl:value-of select="name"/> 2180 <a href="{$setSelection}&calUrl={$url}" 2181 title="view calendar"> 2182 <xsl:value-of select="name" /> 1635 2183 </a> 1636 2184 <xsl:if test="calendarCollection='true'"> 1637 <xsl:variable name="calPath" select="path" />2185 <xsl:variable name="calPath" select="path" /> 1638 2186 <span class="exportCalLink"> 1639 <a href="{$calendar-fetchForExport}&calPath={$calPath}" title="export calendar as iCal"> 1640 <img src="{$resourcesRoot}/images/calIconExport-sm.gif" alt="export calendar"/> 2187 <a 2188 href="{$calendar-fetchForExport}&calPath={$calPath}" 2189 title="export calendar as iCal"> 2190 <img 2191 src="{$resourcesRoot}/images/calIconExport-sm.gif" 2192 alt="export calendar" /> 1641 2193 </a> 1642 2194 </span> … … 1644 2196 <xsl:if test="calendar"> 1645 2197 <ul> 1646 <xsl:apply-templates select="calendar" mode="calTree"/> 2198 <xsl:apply-templates select="calendar" 2199 mode="calTree" /> 1647 2200 </ul> 1648 2201 </xsl:if> … … 1656 2209 <strong>Calendar to export:</strong> 1657 2210 </p> 1658 <div class="indent"> Name: <strong> 2211 <div class="indent"> 2212 Name: 2213 <strong> 1659 2214 <em> 1660 <xsl:value-of select="name" />2215 <xsl:value-of select="name" /> 1661 2216 </em> 1662 </strong><br/> Path: <xsl:value-of select="path"/> 2217 </strong> 2218 <br /> 2219 Path: 2220 <xsl:value-of select="path" /> 1663 2221 </div> 1664 2222 <p> 1665 2223 <strong>Event date limits:</strong> 1666 2224 </p> 1667 <form name="exportCalendarForm" id="exportCalendarForm" action="{$export}" method="post"> 2225 <form name="exportCalendarForm" id="exportCalendarForm" 2226 action="{$export}" method="post"> 1668 2227 <input type="hidden" name="calPath"> 1669 2228 <xsl:attribute name="value"> 1670 <xsl:value-of select="path" />2229 <xsl:value-of select="path" /> 1671 2230 </xsl:attribute> 1672 2231 </input> 1673 2232 <!-- 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="" /> 1680 2241 <!-- 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" /> 1684 2246 <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> 1686 2249 </input> 1687 2250 <!-- 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"> 1690 2266 <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"> 1692 2272 <xsl:text> </xsl:text> 1693 2273 </div> 1694 2274 </div> 1695 2275 <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)" /> 1697 2278 </p> 1698 2279 </form> … … 1704 2285 <div class="secondaryColHeader"> 1705 2286 <h3>Search Results</h3> 1706 </div>1707 1708 <!-- <xsl:if test="/bedework/searchResults/numPages > 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}&pageNum={$prevPage}">«</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 < 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}&pageNum={$nextPage}">»</a></xsl:when>1731 <xsl:otherwise>1732 <span class="hidden">«</span>1733 </xsl:otherwise>1734 </xsl:choose>1735 </span>1736 </xsl:if> -->2287 </div> 2288 2289 <!-- <xsl:if test="/bedework/searchResults/numPages > 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}&pageNum={$prevPage}">«</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 < 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}&pageNum={$nextPage}">»</a></xsl:when> 2312 <xsl:otherwise> 2313 <span class="hidden">«</span> 2314 </xsl:otherwise> 2315 </xsl:choose> 2316 </span> 2317 </xsl:if> --> 1737 2318 1738 2319 <xsl:if test="/bedework/searchResults/curPage < 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> 1744 2334 </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')]"> 1754 2346 <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" /> 1759 2354 <tr> 1760 2355 <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> 1767 2367 </td> 1768 2368 <td class="search_date"> 1769 <xsl:value-of select="event/start/shortdate"/> 2369 <xsl:value-of 2370 select="event/start/shortdate" /> 1770 2371 <xsl:text> </xsl:text> 1771 2372 </td> 1772 2373 <td class="search_summary"> 1773 <a href="{$eventView}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}"> 1774 <xsl:value-of select="event/summary"/> 2374 <a 2375 href="{$eventView}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}"> 2376 <xsl:value-of 2377 select="event/summary" /> 1775 2378 </a> 1776 2379 </td> 1777 2380 <td class="search_location"> 1778 <xsl:value-of select="event/location/address"/> 2381 <xsl:value-of 2382 select="event/location/address" /> 1779 2383 </td> 1780 2384 </tr> 1781 </xsl:if>2385 </xsl:if> 1782 2386 </xsl:for-each> 1783 2387 </table> 1784 </xsl:if>2388 </xsl:if> 1785 2389 <xsl:if test="/bedework/searchResults/numPages > 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" /> 1788 2394 <xsl:if test="/bedework/searchResults/curPage != 1"> 1789 <xsl:variable name="prevPage" select="number($curPage) - 1"/> 1790 <a href="{$search-next}&pageNum={$prevPage}">«</a> 2395 <xsl:variable name="prevPage" 2396 select="number($curPage) - 1" /> 2397 <a href="{$search-next}&pageNum={$prevPage}"> 2398 « 2399 </a> 1791 2400 </xsl:if> 1792 2401 <xsl:text> </xsl:text> … … 1794 2403 <xsl:with-param name="page"> 1795 2404 <xsl:choose> 1796 <xsl:when test="number($curPage) - 10 < 1">1</xsl:when> 2405 <xsl:when 2406 test="number($curPage) - 10 < 1"> 2407 1 2408 </xsl:when> 1797 2409 <xsl:otherwise> 1798 <xsl:value-of select="number($curPage) - 6"/> 2410 <xsl:value-of 2411 select="number($curPage) - 6" /> 1799 2412 </xsl:otherwise> 1800 2413 </xsl:choose> … … 1803 2416 <xsl:text> </xsl:text> 1804 2417 <xsl:choose> 1805 <xsl:when test="$curPage != /bedework/searchResults/numPages"> 1806 <xsl:variable name="nextPage" select="number($curPage) + 1"/> 1807 <a href="{$search-next}&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}&pageNum={$nextPage}"> 2424 » 2425 </a> 2426 </xsl:when> 1808 2427 <xsl:otherwise> 1809 2428 <span class="hidden">«</span> … … 1816 2435 1817 2436 <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"/> 1824 2445 </xsl:attribute> 1825 2446 </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() <= 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() > 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() <= 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() > 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> 1882 2548 </div> 1883 2549 </xsl:template> … … 1885 2551 <xsl:template name="searchResultPageNav"> 1886 2552 <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" /> 1889 2557 <xsl:variable name="endPage"> 1890 2558 <xsl:choose> 1891 <xsl:when test="number($curPage) + 6 > number($numPages)"> 1892 <xsl:value-of select="$numPages"/> 2559 <xsl:when 2560 test="number($curPage) + 6 > number($numPages)"> 2561 <xsl:value-of select="$numPages" /> 1893 2562 </xsl:when> 1894 2563 <xsl:otherwise> 1895 <xsl:value-of select="number($curPage) + 6" />2564 <xsl:value-of select="number($curPage) + 6" /> 1896 2565 </xsl:otherwise> 1897 2566 </xsl:choose> … … 1899 2568 <xsl:choose> 1900 2569 <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> 1902 2573 </xsl:when> 1903 2574 <xsl:otherwise> 1904 2575 <a href="{$search-next}&pageNum={$page}"> 1905 <xsl:value-of select="$page" />2576 <xsl:value-of select="$page" /> 1906 2577 </a> 1907 2578 </xsl:otherwise> … … 1910 2581 <xsl:if test="$page < $endPage"> 1911 2582 <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" /> 1913 2584 </xsl:call-template> 1914 2585 </xsl:if> … … 1917 2588 <!--==== Display Month Calendar ====--> 1918 2589 <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}&viewType=dayView&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}&viewType=dayView&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> 1936 2610 </xsl:template> 1937 2611 … … 1941 2615 <div id="stats"> 1942 2616 <h2>System Statistics</h2> 1943 <p> Stats collection:</p>2617 <p>Stats collection:</p> 1944 2618 <ul> 1945 2619 <li> 1946 <a href="{$stats}&enable=yes">enable</a> | <a href="{$stats}&disable=yes">disable</a> 2620 <a href="{$stats}&enable=yes">enable</a> 2621 | 2622 <a href="{$stats}&disable=yes">disable</a> 1947 2623 </li> 1948 2624 <li> 1949 <a href="{$stats}&fetch=yes">fetch statistics</a> 2625 <a href="{$stats}&fetch=yes"> 2626 fetch statistics 2627 </a> 1950 2628 </li> 1951 2629 <li> 1952 <a href="{$stats}&dump=yes">dump stats to log</a> 2630 <a href="{$stats}&dump=yes"> 2631 dump stats to log 2632 </a> 1953 2633 </li> 1954 2634 </ul> … … 1959 2639 <tr> 1960 2640 <th colspan="2"> 1961 <xsl:value-of select="." />2641 <xsl:value-of select="." /> 1962 2642 </th> 1963 2643 </tr> … … 1966 2646 <tr> 1967 2647 <td class="label"> 1968 <xsl:value-of select="label" />2648 <xsl:value-of select="label" /> 1969 2649 </td> 1970 2650 <td class="value"> 1971 <xsl:value-of select="value" />2651 <xsl:value-of select="value" /> 1972 2652 </td> 1973 2653 </tr> … … 1983 2663 <xsl:template name="footer"> 1984 2664 <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> 1986 2671 </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}&skinNameSticky=default"><xsl:copy-of select="$bwStr-Foot-ExampleSkins"/>:</option> 2008 <option value="{$listEvents}&setappvar=summaryMode(details)&skinName=rss-list&days=3"> 2009 <xsl:copy-of select="$bwStr-Foot-RSSNext3Days"/></option> 2010 <option value="{$listEvents}&setappvar=summaryMode(details)&skinName=js-list&days=3&contentType=text/javascript&contentName=bedework.js"> 2011 <xsl:copy-of select="$bwStr-Foot-JavascriptNext3Days"/></option> 2012 <option value="{$setViewPeriod}&viewType=todayView&skinName=jsToday&contentType=text/javascript&contentName=bedeworkToday.js"> 2013 <xsl:copy-of select="$bwStr-Foot-JavascriptTodaysEvents"/></option> 2014 <option value="{$setup}&browserTypeSticky=PDA"> 2015 <xsl:copy-of select="$bwStr-Foot-ForMobileBrowsers"/></option> 2016 <option value="{$setViewPeriod}&viewType=todayView&skinName=videocal"> 2017 <xsl:copy-of select="$bwStr-Foot-VideoFeed"/></option> 2018 <option value="{$setup}&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}&skinNameSticky=default"> 2718 <xsl:copy-of 2719 select="$bwStr-Foot-ExampleSkins" /> 2720 : 2721 </option> 2722 <option 2723 value="{$listEvents}&setappvar=summaryMode(details)&skinName=rss-list&days=3"> 2724 <xsl:copy-of 2725 select="$bwStr-Foot-RSSNext3Days" /> 2726 </option> 2727 <option 2728 value="{$listEvents}&setappvar=summaryMode(details)&skinName=js-list&days=3&contentType=text/javascript&contentName=bedework.js"> 2729 <xsl:copy-of 2730 select="$bwStr-Foot-JavascriptNext3Days" /> 2731 </option> 2732 <option 2733 value="{$setViewPeriod}&viewType=todayView&skinName=jsToday&contentType=text/javascript&contentName=bedeworkToday.js"> 2734 <xsl:copy-of 2735 select="$bwStr-Foot-JavascriptTodaysEvents" /> 2736 </option> 2737 <option 2738 value="{$setup}&browserTypeSticky=PDA"> 2739 <xsl:copy-of 2740 select="$bwStr-Foot-ForMobileBrowsers" /> 2741 </option> 2742 <option 2743 value="{$setViewPeriod}&viewType=todayView&skinName=videocal"> 2744 <xsl:copy-of 2745 select="$bwStr-Foot-VideoFeed" /> 2746 </option> 2747 <option 2748 value="{$setup}&skinNameSticky=default"> 2749 <xsl:copy-of 2750 select="$bwStr-Foot-ResetToCalendarDefault" /> 2751 </option> 2752 </select> 2753 </form> 2754 </div> 2025 2755 </xsl:template> 2026 2756 </xsl:stylesheet> trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/default/default/defaultTheme/css/fixed.css
r2464 r2466 191 191 192 192 div.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} 193 span.event-lab { 194 width:10%; 195 font-style: italic; 196 font-size: .8em; 197 font-family: sans-serif; 198 color:#078C2D; 199 } 200 span.tab-stop { width:90%; color: #0A1599; font-size:1em} 195 201 div.event-title {font-weight:bold; font: 1.3em Garamond, sans-serif;margin: .8em 0em .4em 0em} 196 202 … … 285 291 cursor:pointer; 286 292 font-size: .8em; 287 293 288 294 } 289 295 #rssValue {
