Changeset 572

Show
Ignore:
Timestamp:
06/12/06 15:45:21
Author:
johnsa
Message:

personal client: correct subscription selection to select by subscription rather than calendar

added copyright statement to root xsl docs

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/calendar3/deployment/webadmin/webapp/resources/default/default/default.xsl

    r533 r572  
    99  standalone="yes" 
    1010  omit-xml-declaration="yes"/> 
    11    <!-- ======================================== --> 
     11 
     12  <!-- ======================================== --> 
    1213  <!--      BEDEWORK ADMIN CLIENT STYLESHEET     --> 
    1314  <!-- ========================================= --> 
     15 
     16  <!-- ********************************************************************** 
     17    Copyright 2006 Rensselaer Polytechnic Institute. All worldwide rights reserved. 
     18 
     19    Redistribution and use of this distribution in source and binary forms, 
     20    with or without modification, are permitted provided that: 
     21       The above copyright notice and this permission notice appear in all 
     22        copies and supporting documentation; 
     23 
     24        The name, identifiers, and trademarks of Rensselaer Polytechnic 
     25        Institute are not used in advertising or publicity without the 
     26        express prior written permission of Rensselaer Polytechnic Institute; 
     27 
     28    DISCLAIMER: The software is distributed" AS IS" without any express or 
     29    implied warranty, including but not limited to, any implied warranties 
     30    of merchantability or fitness for a particular purpose or any warrant)' 
     31    of non-infringement of any current or pending patent rights. The authors 
     32    of the software make no representations about the suitability of this 
     33    software for any particular purpose. The entire risk as to the quality 
     34    and performance of the software is with the user. Should the software 
     35    prove defective, the user assumes the cost of all necessary servicing, 
     36    repair or correction. In particular, neither Rensselaer Polytechnic 
     37    Institute, nor the authors of the software are liable for any indirect, 
     38    special, consequential, or incidental damages related to the software, 
     39    to the maximum extent the law permits. --> 
    1440 
    1541  <!-- DEFINE INCLUDES --> 
  • trunk/calendar3/deployment/webpublic/webapp/resources/demoskins/default/default/default.xsl

    r548 r572  
    2323 
    2424===============================================================  --> 
     25<!-- ********************************************************************** 
     26    Copyright 2006 Rensselaer Polytechnic Institute. All worldwide rights reserved. 
     27 
     28    Redistribution and use of this distribution in source and binary forms, 
     29    with or without modification, are permitted provided that: 
     30       The above copyright notice and this permission notice appear in all 
     31        copies and supporting documentation; 
     32 
     33        The name, identifiers, and trademarks of Rensselaer Polytechnic 
     34        Institute are not used in advertising or publicity without the 
     35        express prior written permission of Rensselaer Polytechnic Institute; 
     36 
     37    DISCLAIMER: The software is distributed" AS IS" without any express or 
     38    implied warranty, including but not limited to, any implied warranties 
     39    of merchantability or fitness for a particular purpose or any warrant)' 
     40    of non-infringement of any current or pending patent rights. The authors 
     41    of the software make no representations about the suitability of this 
     42    software for any particular purpose. The entire risk as to the quality 
     43    and performance of the software is with the user. Should the software 
     44    prove defective, the user assumes the cost of all necessary servicing, 
     45    repair or correction. In particular, neither Rensselaer Polytechnic 
     46    Institute, nor the authors of the software are liable for any indirect, 
     47    special, consequential, or incidental damages related to the software, 
     48    to the maximum extent the law permits. --> 
    2549 
    2650  <!-- ================================= --> 
  • trunk/calendar3/deployment/webpublic/webapp/resources/demoskins/default/default/jsToday.xsl

    r434 r572  
    22<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> 
    33  <xsl:output method="html" omit-xml-declaration="yes" indent="no" media-type="text/javascript" standalone="yes"/> 
     4 
    45  <!-- usage: call the javascript feed from an html file by embedding the 
    56       following script tag: 
     
    1314       to display more than a single day's events. 
    1415  --> 
     16 
     17  <!-- ********************************************************************** 
     18    Copyright 2006 Rensselaer Polytechnic Institute. All worldwide rights reserved. 
     19 
     20    Redistribution and use of this distribution in source and binary forms, 
     21    with or without modification, are permitted provided that: 
     22       The above copyright notice and this permission notice appear in all 
     23        copies and supporting documentation; 
     24 
     25        The name, identifiers, and trademarks of Rensselaer Polytechnic 
     26        Institute are not used in advertising or publicity without the 
     27        express prior written permission of Rensselaer Polytechnic Institute; 
     28 
     29    DISCLAIMER: The software is distributed" AS IS" without any express or 
     30    implied warranty, including but not limited to, any implied warranties 
     31    of merchantability or fitness for a particular purpose or any warrant)' 
     32    of non-infringement of any current or pending patent rights. The authors 
     33    of the software make no representations about the suitability of this 
     34    software for any particular purpose. The entire risk as to the quality 
     35    and performance of the software is with the user. Should the software 
     36    prove defective, the user assumes the cost of all necessary servicing, 
     37    repair or correction. In particular, neither Rensselaer Polytechnic 
     38    Institute, nor the authors of the software are liable for any indirect, 
     39    special, consequential, or incidental damages related to the software, 
     40    to the maximum extent the law permits. --> 
     41 
    1542  <xsl:variable name="urlprefix" select="/bedework/urlprefix"/> 
    1643  <xsl:template match="/"> 
  • trunk/calendar3/deployment/webpublic/webapp/resources/demoskins/default/default/soe.xsl

    r548 r572  
    3434 
    3535===============================================================  --> 
     36 
     37<!-- ********************************************************************** 
     38  Copyright 2006 Rensselaer Polytechnic Institute. All worldwide rights reserved. 
     39 
     40  Redistribution and use of this distribution in source and binary forms, 
     41  with or without modification, are permitted provided that: 
     42     The above copyright notice and this permission notice appear in all 
     43      copies and supporting documentation; 
     44 
     45      The name, identifiers, and trademarks of Rensselaer Polytechnic 
     46      Institute are not used in advertising or publicity without the 
     47      express prior written permission of Rensselaer Polytechnic Institute; 
     48 
     49  DISCLAIMER: The software is distributed" AS IS" without any express or 
     50  implied warranty, including but not limited to, any implied warranties 
     51  of merchantability or fitness for a particular purpose or any warrant)' 
     52  of non-infringement of any current or pending patent rights. The authors 
     53  of the software make no representations about the suitability of this 
     54  software for any particular purpose. The entire risk as to the quality 
     55  and performance of the software is with the user. Should the software 
     56  prove defective, the user assumes the cost of all necessary servicing, 
     57  repair or correction. In particular, neither Rensselaer Polytechnic 
     58  Institute, nor the authors of the software are liable for any indirect, 
     59  special, consequential, or incidental damages related to the software, 
     60  to the maximum extent the law permits. --> 
    3661 
    3762  <!-- ================================= --> 
  • trunk/calendar3/deployment/webpublic/webapp/resources/demoskins/default/default/videocal.xsl

    r143 r572  
    55  <!--  VIDEO FEED STYLESHEET  --> 
    66  <!-- ======================= --> 
    7    
     7 
    88  <!-- Run your browser full screen at 800 x 600 and feed this to video. 
    99       There are better approaches to this, but it's an interesting example. --> 
    10    
     10 
     11 
     12  <!-- ********************************************************************** 
     13    Copyright 2006 Rensselaer Polytechnic Institute. All worldwide rights reserved. 
     14 
     15    Redistribution and use of this distribution in source and binary forms, 
     16    with or without modification, are permitted provided that: 
     17       The above copyright notice and this permission notice appear in all 
     18        copies and supporting documentation; 
     19 
     20        The name, identifiers, and trademarks of Rensselaer Polytechnic 
     21        Institute are not used in advertising or publicity without the 
     22        express prior written permission of Rensselaer Polytechnic Institute; 
     23 
     24    DISCLAIMER: The software is distributed" AS IS" without any express or 
     25    implied warranty, including but not limited to, any implied warranties 
     26    of merchantability or fitness for a particular purpose or any warrant)' 
     27    of non-infringement of any current or pending patent rights. The authors 
     28    of the software make no representations about the suitability of this 
     29    software for any particular purpose. The entire risk as to the quality 
     30    and performance of the software is with the user. Should the software 
     31    prove defective, the user assumes the cost of all necessary servicing, 
     32    repair or correction. In particular, neither Rensselaer Polytechnic 
     33    Institute, nor the authors of the software are liable for any indirect, 
     34    special, consequential, or incidental damages related to the software, 
     35    to the maximum extent the law permits. --> 
     36 
    1137  <!-- DEFINE GLOBAL CONSTANTS --> 
    1238  <xsl:variable name="appRoot" select="/bedework/approot"/> 
     
    1541  <xsl:variable name="nextDate" select="/bedework/nextdate"/> 
    1642  <xsl:variable name="curDate" select="/bedework/currentdate/date"/> 
    17      
     43 
    1844  <!-- Duration of each slide in seconds; set this to your preference --> 
    1945  <xsl:variable name="slideDuration">10</xsl:variable> 
    20    
    21   <!-- Number of consecutive days to iterate over; set this to your preference -->  
     46 
     47  <!-- Number of consecutive days to iterate over; set this to your preference --> 
    2248  <xsl:variable name="dayCount">5</xsl:variable> 
    23    
    24   <!-- Skin name -->  
     49 
     50  <!-- Skin name --> 
    2551  <xsl:variable name="skinName">videocal</xsl:variable> 
    26    
     52 
    2753  <!-- Position of the current day to be displayed --> 
    2854  <xsl:variable name="day"> 
    2955    <xsl:choose> 
    30       <xsl:when test="/bedework/appvar[key='day']">         
     56      <xsl:when test="/bedework/appvar[key='day']"> 
    3157        <xsl:choose> 
    3258          <xsl:when test="/bedework/appvar[key='day']/value > $dayCount">1</xsl:when> 
     
    3965    </xsl:choose> 
    4066  </xsl:variable> 
    41    
     67 
    4268  <!-- Position of the next day (add 1)--> 
    4369  <xsl:variable name="nextDay" select="number($day)+1"/> 
    44    
     70 
    4571  <!-- Event count for the current day --> 
    4672  <xsl:variable name="eventCount" select="count(/bedework/eventscalendar/year/month/week/day[date=$curDate]/event)"/> 
    47    
     73 
    4874  <!-- Position of the current event being displayed --> 
    4975  <xsl:variable name="event"> 
    5076    <xsl:choose> 
    51       <xsl:when test="/bedework/appvar[key='event']">         
     77      <xsl:when test="/bedework/appvar[key='event']"> 
    5278        <xsl:choose> 
    5379          <xsl:when test="/bedework/appvar[key='event']/value > $eventCount">1</xsl:when> 
     
    6086    </xsl:choose> 
    6187  </xsl:variable> 
    62    
     88 
    6389  <!-- Position of the next event (add 1)--> 
    6490  <xsl:variable name="nextEvent" select="number($event)+1"/> 
    65    
     91 
    6692  <!-- MAIN TEMPLATE --> 
    6793  <xsl:template match="/"> 
     
    78104            if (now.getMonth() &lt; 9) { 
    79105              today += "0"; 
    80             }  
     106            } 
    81107            today += (now.getMonth() + 1).toString(); 
    82108            today += now.getDate().toString(); 
     
    92118          <xsl:when test="($nextDay > $dayCount) and ($nextEvent > $eventCount)"> 
    93119            <!-- passed the last day, and all events have been displayed, 
    94                  so start over: go to today, set day=1 and *event=0* to allow  
     120                 so start over: go to today, set day=1 and *event=0* to allow 
    95121                 for the title slide "calPlug" --> 
    96             <meta http-equiv="refresh" content="{$slideDuration};url={$urlPrefix}/setViewPeriod.do?viewType=todayView&amp;setappvar=event(0)&amp;setappvar=day(1)&amp;skinNameSticky={$skinName}&amp;setappvar=summaryMode(details)"/>           
     122            <meta http-equiv="refresh" content="{$slideDuration};url={$urlPrefix}/setViewPeriod.do?viewType=todayView&amp;setappvar=event(0)&amp;setappvar=day(1)&amp;skinNameSticky={$skinName}&amp;setappvar=summaryMode(details)"/> 
    97123          </xsl:when> 
    98124          <xsl:when test="$nextEvent > $eventCount"> 
     
    102128          <xsl:otherwise> 
    103129            <!-- otherwise, go to the next event on the same day --> 
    104             <meta http-equiv="refresh" content="{$slideDuration};url={$urlPrefix}/setup.do?viewType=dayView&amp;setappvar=event({$nextEvent})&amp;setappvar=day({$day})&amp;skinNameSticky={$skinName}&amp;setappvar=summaryMode(details)"/>             
     130            <meta http-equiv="refresh" content="{$slideDuration};url={$urlPrefix}/setup.do?viewType=dayView&amp;setappvar=event({$nextEvent})&amp;setappvar=day({$day})&amp;skinNameSticky={$skinName}&amp;setappvar=summaryMode(details)"/> 
    105131          </xsl:otherwise> 
    106132        </xsl:choose> 
     
    122148            </h2> 
    123149            <h2 id="dayTitle"> 
    124               <xsl:value-of select="/bedework/firstday/longdate"/><!--  
     150              <xsl:value-of select="/bedework/firstday/longdate"/><!-- 
    125151              <br/>Events: <xsl:value-of select="$event"/> of <xsl:value-of select="$eventCount"/> 
    126152              <br/>Days: <xsl:value-of select="$day"/> of <xsl:value-of select="$dayCount"/> --> 
    127             </h2>     
     153            </h2> 
    128154            <xsl:apply-templates select="/bedework/eventscalendar/year/month/week/day[date=$curDate]/event[position()=$event]"/> 
    129155          </xsl:otherwise> 
    130         </xsl:choose>    
     156        </xsl:choose> 
    131157        <!-- remove the following two divs if used for video --> 
    132158        <div id="getBack"> 
     
    134160        </div> 
    135161        <div id="info"> 
    136           This stylesheet will rotate through five days of events at ten  
     162          This stylesheet will rotate through five days of events at ten 
    137163          second intervals.  It is intended as a video feed running full screen 
    138           at 800x600px.  It's settings  
     164          at 800x600px.  It's settings 
    139165          can be set from the top of 
    140166          the videocal.xsl stylesheet. 
     
    164190          </xsl:otherwise> 
    165191        </xsl:choose> 
    166         -          
     192        - 
    167193        <xsl:if test="end/longdate != start/longdate"> 
    168194          <xsl:value-of select="end/shortdate"/> 
    169           <xsl:text> </xsl:text>         
     195          <xsl:text> </xsl:text> 
    170196        </xsl:if> 
    171197        <xsl:value-of select="end/time"/> 
  • trunk/calendar3/deployment/webuser/webapp/resources/demoskins/default/default/default.xsl

    r570 r572  
    334334        <xsl:template name="sideBar"> 
    335335                <h3> 
    336                         <img alt="manage views" src="{$resourcesRoot}/resources/glassFill-icon-menuButton.gif" width="12" height="11" border="0"/> views 
     336                        <!--<img alt="manage views" src="{$resourcesRoot}/resources/glassFill-icon-menuButton.gif" width="12" height="11" border="0"/>--> 
     337      views 
    337338                </h3> 
    338339                <ul id="myViews"> 
     
    33163317                <xsl:variable name="itemClass"> 
    33173318                        <xsl:choose> 
    3318                                 <xsl:when test="/bedework/selectionState/selectionType = 'calendar
    3319                                                                                                 and calendars/calendar/path = /bedework/selectionState/subscriptions/subscription/calendar/path">selected</xsl:when> 
     3319                                <xsl:when test="/bedework/selectionState/selectionType = 'subscription
     3320                                                                                                and /bedework/selectionState/subscriptions/subscription/name = name">selected</xsl:when> 
    33203321                                <xsl:otherwise>calendar</xsl:otherwise> 
    33213322                        </xsl:choose> 
    33223323                </xsl:variable> 
    33233324                <li class="{$itemClass}"> 
    3324                         <xsl:variable name="subUri" select="uri"/> 
     3325                        <xsl:variable name="subName" select="name"/> 
    33253326                        <xsl:if test="style != '' and style != 'default'"> 
    33263327                                <!-- the spacer gif approach allows us to avoid some IE misbehavior --> 
     
    33283329                                <img src="{$resourcesRoot}/resources/spacer.gif" width="6" height="6" alt="subscription style" class="subStyle {$subStyle}"/> 
    33293330                        </xsl:if> 
    3330                         <a href="{$setSelection}?calUrl={$subUri}"> 
     3331                        <a href="{$setSelection}?subname={$subName}"> 
    33313332                                <xsl:value-of select="name"/> 
    33323333                        </a>