Changeset 142
- Timestamp:
- 02/09/06 22:33:53
- Files:
-
- trunk/calendar3/deployment/webpublic/webapp/resources/demoskins/default/default/default.xsl (modified) (3 diffs)
- trunk/calendar3/deployment/webpublic/webapp/resources/demoskins/default/default/rss.xsl (modified) (1 diff)
- trunk/calendar3/deployment/webpublic/webapp/resources/demoskins/default/default/videocal.css (added)
- trunk/calendar3/deployment/webpublic/webapp/resources/demoskins/default/default/videocal.xsl (moved) (moved from trunk/calendar3/deployment/webpublic/webapp/resources/demoskins/default/default/videocal.xslt) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/calendar3/deployment/webpublic/webapp/resources/demoskins/default/default/default.xsl
r141 r142 1024 1024 <td class="rightCell"> 1025 1025 <form name="styleSelectForm" method="get" action="{$setup}"> 1026 style selector:1027 1026 <select name="setappvar" onChange="submit()"> 1028 <option> choose a style</option>1027 <option>example styles:</option> 1029 1028 <option value="style(green)">green</option> 1030 1029 <option value="style(red)">red</option> … … 1033 1032 </form> 1034 1033 <form name="skinSelectForm" method="get" action="{$setup}"> 1035 skin examples:1036 1034 <input type="hidden" name="setappvar" value="summaryMode(details)"/> 1037 1035 <select name="skinName" onchange="submit()"> 1038 <option> select a skin</option>1036 <option>example skins:</option> 1039 1037 <option value="rss">rss feed</option> 1040 1038 <option value="jsToday">javascript feed</option> … … 1044 1042 </form> 1045 1043 <form name="skinSelectForm" method="get" action=""> 1046 production examples:1047 1044 <select name="sitePicker" onchange="window.location = this.value"> 1048 <option> select a calendar</option>1045 <option>production examples:</option> 1049 1046 <option value="http://events.rpi.edu">Rensselaer</option> 1050 1047 <option value="http://myuw.washington.edu/cal/">Washington</option> trunk/calendar3/deployment/webpublic/webapp/resources/demoskins/default/default/rss.xsl
r108 r142 12 12 <rss version="2.0"> 13 13 <channel> 14 <title> RensselaerEvents Calendar</title>14 <title>Bedework Events Calendar</title> 15 15 <link><xsl:value-of select="/bedework/urlprefix"/></link> 16 <description> RensselaerEvents</description>17 <language>en- us</language>18 <copyright>Copyright <xsl:value-of select="substring(/bedework/currentdate,1,4)"/>, Rensselaer Polytechnic Institute</copyright>19 <managingEditor> wentod@rpi.edu, Deb Wentorf</managingEditor>16 <description>My Site's Events</description> 17 <language>en-US</language> 18 <copyright>Copyright <xsl:value-of select="substring(/bedework/currentdate,1,4)"/>, Your Institution Here</copyright> 19 <managingEditor>editor@mysite.edu, Editor Name</managingEditor> 20 20 <xsl:apply-templates select="/bedework//event"/> 21 21 </channel> trunk/calendar3/deployment/webpublic/webapp/resources/demoskins/default/default/videocal.xsl
r140 r142 2 2 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> 3 3 <xsl:output method="html" indent="yes" media-type="text/html" doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN" doctype-system="http://www.w3.org/TR/html4/loose.dtd" standalone="yes"/> 4 <!-- ================ --> 5 <!-- DEFAULT STYLESHEET --> 6 <!-- ================ --> 4 <!-- ======================= --> 5 <!-- VIDEO FEED STYLESHEET --> 6 <!-- ======================= --> 7 8 <!-- Run your browser full screen at 800 x 600 and feed this to video. 9 There are better approaches to this, but it's an interesting example. --> 10 7 11 <!-- DEFINE GLOBAL CONSTANTS --> 8 <xsl:variable name="appRoot" select="/ ucalendar/approot"/>9 <xsl:variable name="urlPrefix" select="/ ucalendar/urlprefix"/>10 <xsl:variable name="prevDate" select="/ ucalendar/previousdate"/>11 <xsl:variable name="nextDate" select="/ ucalendar/nextdate"/>12 <xsl:variable name="curDate" select="/ ucalendar/currentdate"/>12 <xsl:variable name="appRoot" select="/bedework/approot"/> 13 <xsl:variable name="urlPrefix" select="/bedework/urlprefix"/> 14 <xsl:variable name="prevDate" select="/bedework/previousdate"/> 15 <xsl:variable name="nextDate" select="/bedework/nextdate"/> 16 <xsl:variable name="curDate" select="/bedework/currentdate/date"/> 13 17 14 18 <!-- Duration of each slide in seconds; set this to your preference --> … … 24 28 <xsl:variable name="day"> 25 29 <xsl:choose> 26 <xsl:when test="/ ucalendar/appvar[key='day']">30 <xsl:when test="/bedework/appvar[key='day']"> 27 31 <xsl:choose> 28 <xsl:when test="/ ucalendar/appvar[key='day']/value > $dayCount">1</xsl:when>32 <xsl:when test="/bedework/appvar[key='day']/value > $dayCount">1</xsl:when> 29 33 <xsl:otherwise> 30 <xsl:value-of select="/ ucalendar/appvar[key='day']/value"/>34 <xsl:value-of select="/bedework/appvar[key='day']/value"/> 31 35 </xsl:otherwise> 32 36 </xsl:choose> … … 40 44 41 45 <!-- Event count for the current day --> 42 <xsl:variable name="eventCount" select="count(/ ucalendar/eventscalendar/year/month/week/day[date=$curDate]/event)"/>46 <xsl:variable name="eventCount" select="count(/bedework/eventscalendar/year/month/week/day[date=$curDate]/event)"/> 43 47 44 48 <!-- Position of the current event being displayed --> 45 49 <xsl:variable name="event"> 46 50 <xsl:choose> 47 <xsl:when test="/ ucalendar/appvar[key='event']">51 <xsl:when test="/bedework/appvar[key='event']"> 48 52 <xsl:choose> 49 <xsl:when test="/ ucalendar/appvar[key='event']/value > $eventCount">1</xsl:when>53 <xsl:when test="/bedework/appvar[key='event']/value > $eventCount">1</xsl:when> 50 54 <xsl:otherwise> 51 <xsl:value-of select="/ ucalendar/appvar[key='event']/value"/>55 <xsl:value-of select="/bedework/appvar[key='event']/value"/> 52 56 </xsl:otherwise> 53 57 </xsl:choose> … … 64 68 <html lang="en"> 65 69 <head> 66 <title> Rensselaer Institutional Calendar of Events</title>67 <link rel="stylesheet" href="{$appRoot}/ en_US/default/videocalLarger.css"/>70 <title>Event Calendar Video Feed</title> 71 <link rel="stylesheet" href="{$appRoot}/default/default/videocal.css"/> 68 72 <meta name="robots" content="noindex,nofollow"/> 69 73 <script language="JavaScript"> … … 81 85 </script> 82 86 <xsl:choose> 83 <xsl:when test="/ ucalendar/periodname!='Day'">87 <xsl:when test="/bedework/periodname!='Day'"> 84 88 <!-- we're starting up on the wrong view; go to today and begin with the first event; 85 89 the title slide will display during this switch. --> 86 <meta http-equiv="refresh" content="{$slideDuration};url={$urlPrefix}/setView .do?viewType=todayView&setappvar=event(1)&setappvar=day(1)&skinNameSticky={$skinName}&setappvar=summaryMode(details)"/>90 <meta http-equiv="refresh" content="{$slideDuration};url={$urlPrefix}/setViewPeriod.do?viewType=todayView&setappvar=event(1)&setappvar=day(1)&skinNameSticky={$skinName}&setappvar=summaryMode(details)"/> 87 91 </xsl:when> 88 92 <xsl:when test="($nextDay > $dayCount) and ($nextEvent > $eventCount)"> … … 90 94 so start over: go to today, set day=1 and *event=0* to allow 91 95 for the title slide "calPlug" --> 92 <meta http-equiv="refresh" content="{$slideDuration};url={$urlPrefix}/setView .do?viewType=todayView&setappvar=event(0)&setappvar=day(1)&skinNameSticky={$skinName}&setappvar=summaryMode(details)"/>96 <meta http-equiv="refresh" content="{$slideDuration};url={$urlPrefix}/setViewPeriod.do?viewType=todayView&setappvar=event(0)&setappvar=day(1)&skinNameSticky={$skinName}&setappvar=summaryMode(details)"/> 93 97 </xsl:when> 94 98 <xsl:when test="$nextEvent > $eventCount"> 95 99 <!-- passed the last event for the day; go to the next day and set event=1 --> 96 <meta http-equiv="refresh" content="{$slideDuration};url={$urlPrefix}/setView .do?date={$nextDate}&viewType=dayView&setappvar=event(1)&setappvar=day({$nextDay})&skinNameSticky={$skinName}&setappvar=summaryMode(details)"/>100 <meta http-equiv="refresh" content="{$slideDuration};url={$urlPrefix}/setViewPeriod.do?date={$nextDate}&viewType=dayView&setappvar=event(1)&setappvar=day({$nextDay})&skinNameSticky={$skinName}&setappvar=summaryMode(details)"/> 97 101 </xsl:when> 98 102 <xsl:otherwise> … … 104 108 <body> 105 109 <xsl:choose> 106 <xsl:when test="($eventCount = 0) or ($event = 0) or (/ ucalendar/periodname!='Day')">110 <xsl:when test="($eventCount = 0) or ($event = 0) or (/bedework/periodname!='Day')"> 107 111 <div id="calPlug"> 108 112 <h1> 109 Rensselaer Institutional<br/>110 Calendar of Events113 Bedework Calendar of Events 114 Video Feed 111 115 </h1> 112 <h2>http:// j2ee.rpi.edu/cal</h2>116 <h2>http://www.bedework.org</h2> 113 117 </div> 114 118 </xsl:when> 115 119 <xsl:otherwise> 116 120 <h2 id="calTitle"> 117 RENSSELAER'S INSTITUTIONALCALENDAR OF EVENTS121 BEDEWORK CALENDAR OF EVENTS 118 122 </h2> 119 123 <h2 id="dayTitle"> 120 <xsl:value-of select="/ ucalendar/firstday"/><!--124 <xsl:value-of select="/bedework/firstday/longdate"/><!-- 121 125 <br/>Events: <xsl:value-of select="$event"/> of <xsl:value-of select="$eventCount"/> 122 126 <br/>Days: <xsl:value-of select="$day"/> of <xsl:value-of select="$dayCount"/> --> 123 127 </h2> 124 <xsl:apply-templates select="/ ucalendar/eventscalendar/year/month/week/day[date=$curDate]/event[position()=$event]"/>128 <xsl:apply-templates select="/bedework/eventscalendar/year/month/week/day[date=$curDate]/event[position()=$event]"/> 125 129 </xsl:otherwise> 126 </xsl:choose> 130 </xsl:choose> 131 <!-- remove the following two divs if used for video --> 132 <div id="getBack"> 133 (<a href="setup.do?skinNameSticky=default">restore normal calendar</a>) 134 </div> 135 <div id="info"> 136 This stylesheet will rotate through five days of events at ten 137 second intervals. It is intended as a video feed. It's settings 138 can be set from the top of 139 the videocal.xsl stylesheet. 140 </div> 127 141 </body> 128 142 </html> … … 132 146 <xsl:template match="event"> 133 147 <h1> 134 <xsl:value-of select="s hortdesc"/>148 <xsl:value-of select="summary"/> 135 149 </h1> 136 <xsl:if test="(start/ time!='12:00 AM') and (end/time!='12:00 AM')">150 <xsl:if test="(start/allday = 'false')"> 137 151 <div id="time"> 152 <!-- this logic needs to be updated for new event model --> 138 153 <xsl:choose> 139 154 <xsl:when test="start/time=''"> 140 155 <xsl:value-of select="start/shortdate"/> 141 156 </xsl:when> 142 <xsl:when test="start/date !=/ucalendar/firstday">157 <xsl:when test="start/date != /bedework/firstday"> 143 158 <xsl:value-of select="start/shortdate"/> 144 159 <xsl:value-of select="start/time"/> … … 148 163 </xsl:otherwise> 149 164 </xsl:choose> 150 <xsl:if test="end/time != '' or end/longdate != start/longdate"> - </xsl:if>165 - 151 166 <xsl:if test="end/longdate != start/longdate"> 152 167 <xsl:value-of select="end/shortdate"/> 153 <xsl:text> </xsl:text> 168 <xsl:text> </xsl:text> 154 169 </xsl:if> 155 <xsl:if test="end/time != ''"> 156 <xsl:value-of select="end/time"/> 157 </xsl:if> 170 <xsl:value-of select="end/time"/> 158 171 </div> 159 172 </xsl:if> … … 164 177 </xsl:if> 165 178 <div id="description"> 166 <xsl:value-of select=" longdesc"/>179 <xsl:value-of select="description"/> 167 180 </div> 168 181 </xsl:template>
