Changeset 2520

Show
Ignore:
Timestamp:
12/19/09 23:12:55
Author:
johnsa
Message:

all webclients: update references to categories

Files:

Legend:

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

    r2502 r2520  
    3030    to the maximum extent the law permits. --> 
    3131 
    32  <!-- Bring in settings -->  
     32 <!-- Bring in settings --> 
    3333  <xsl:include href="./config.xsl"/> 
    3434 
     
    5252    <html lang="en"> 
    5353      <head> 
    54         <title><xsl:copy-of select="$bwStr-Root-PageTitle"/></title>  
     54        <title><xsl:copy-of select="$bwStr-Root-PageTitle"/></title> 
    5555        <meta content="text/html;charset=utf-8" http-equiv="Content-Type" /> 
    5656        <!-- load css --> 
     
    127127    </html> 
    128128  </xsl:template> 
    129    
     129 
    130130  <!--==== SINGLE EVENT ====--> 
    131131  <xsl:template match="event"> 
     
    417417          <td class="fieldval"> 
    418418            <xsl:for-each select="categories/category"> 
    419               <xsl:value-of select="word"/><xsl:if test="position() != last()">, </xsl:if> 
     419              <xsl:value-of select="value"/><xsl:if test="position() != last()">, </xsl:if> 
    420420            </xsl:for-each> 
    421421          </td> 
     
    454454                   <xsl:variable name="date" select="date"/> 
    455455                   <!-- <a href="{$listEvents}&amp;startDate={$date}&amp;endDate={$date}"> --> 
    456                    
    457                       <xsl:choose> 
    458                            <xsl:when test="/bedework/appvar/key = 'filter'"> 
    459                              <xsl:variable name="filterName" select="substring-before(/bedework/appvar[key='filter']/value,':')"/> 
    460                              <xsl:variable name="filterVal" select="substring-after(/bedework/appvar[key='filter']/value,':')"/> 
    461                              <!-- Define filters here: --> 
    462                              <xsl:choose> 
    463                                <xsl:when test="$filterName = 'grpAndCats'"> 
    464                                       <xsl:variable name="group" select="substring-before($filterVal, '~')" />  
    465                                              <xsl:variable name="cats" select="substring-after($filterVal, '~')" /> 
    466                                                  <a href="{$bwCacheHostUrl}/v1.0/genFeedPeriod/day/{$date}/grid-html/{$group}/{$cats}"> 
    467                                        <xsl:value-of select="name"/>, <xsl:value-of select="longdate"/> 
    468                                      </a> 
    469                                </xsl:when> 
    470                                <xsl:otherwise> 
    471                                  <!-- Filter name not defined? Turn off filtering. --> 
    472                                  <a href="{$bwCacheHostUrl}/v1.0/genFeedPeriod/day/{$date}/grid-html/all/all"> 
    473                                        <xsl:value-of select="name"/>, <xsl:value-of select="longdate"/> 
    474                                      </a> 
    475                                </xsl:otherwise> 
    476                              </xsl:choose> 
    477                            </xsl:when> 
    478                            <xsl:otherwise> 
    479                              <a href="{$bwCacheHostUrl}/v1.0/genFeedPeriod/day/{$date}/grid-html/all/all"> 
    480                                    <xsl:value-of select="name"/>, <xsl:value-of select="longdate"/> 
    481                          </a> 
    482                            </xsl:otherwise> 
    483                           </xsl:choose> 
    484                     
     456 
     457                 <xsl:choose> 
     458                <xsl:when test="/bedework/appvar/key = 'filter'"> 
     459                    <xsl:variable name="filterName" select="substring-before(/bedework/appvar[key='filter']/value,':')"/> 
     460                  <xsl:variable name="filterVal" select="substring-after(/bedework/appvar[key='filter']/value,':')"/> 
     461                  <!-- Define filters here: --> 
     462                  <xsl:choose> 
     463                    <xsl:when test="$filterName = 'grpAndCats'"> 
     464                    <xsl:variable name="group" select="substring-before($filterVal, '~')" /> 
     465                <xsl:variable name="cats" select="substring-after($filterVal, '~')" /> 
     466              <a href="{$bwCacheHostUrl}/v1.0/genFeedPeriod/day/{$date}/grid-html/{$group}/{$cats}"> 
     467                      <xsl:value-of select="name"/>, <xsl:value-of select="longdate"/> 
     468                    </a> 
     469                    </xsl:when> 
     470                    <xsl:otherwise> 
     471                      <!-- Filter name not defined? Turn off filtering. --> 
     472                      <a href="{$bwCacheHostUrl}/v1.0/genFeedPeriod/day/{$date}/grid-html/all/all"> 
     473                      <xsl:value-of select="name"/>, <xsl:value-of select="longdate"/> 
     474                    </a> 
     475                      </xsl:otherwise> 
     476                  </xsl:choose> 
     477                </xsl:when> 
     478                <xsl:otherwise> 
     479                  <a href="{$bwCacheHostUrl}/v1.0/genFeedPeriod/day/{$date}/grid-html/all/all"> 
     480                  <xsl:value-of select="name"/>, <xsl:value-of select="longdate"/> 
     481                    </a> 
     482                </xsl:otherwise> 
     483               </xsl:choose> 
     484 
    485485                </td> 
    486486              </tr> 
    487487            </xsl:if> 
    488488            <xsl:for-each select="event"> 
    489                        
     489 
    490490              <xsl:variable name="id" select="id"/> 
    491491              <xsl:variable name="calPath" select="calendar/encodedPath"/> 
     
    542542                    </td> 
    543543                    <td class="{$dateRangeStyle} center"> 
    544                          <a href="{$bwCacheHostUrl}/v1.0/event/list-html/{$recurrenceId}/{$guid}"></a> 
     544                    <a href="{$bwCacheHostUrl}/v1.0/event/list-html/{$recurrenceId}/{$guid}"></a> 
    545545                      <!-- <a href="{$eventView}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}">-</a> --> 
    546546                    </td> 
    547547                    <td class="{$dateRangeStyle} left"> 
    548                          <a href="{$bwCacheHostUrl}/v1.0/event/list-html/{$recurrenceId}/{$guid}"> 
     548                    <a href="{$bwCacheHostUrl}/v1.0/event/list-html/{$recurrenceId}/{$guid}"> 
    549549                      <!-- <a href="{$eventView}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}"> --> 
    550550                      <xsl:choose> 
     
    585585                  <xsl:choose> 
    586586                    <xsl:when test="/bedework/appvar[key='summaryMode']/value='details'"> 
    587                          <a href="{$bwCacheHostUrl}/v1.0/event/list-html/{$recurrenceId}/{$guid}"> 
     587                    <a href="{$bwCacheHostUrl}/v1.0/event/list-html/{$recurrenceId}/{$guid}"> 
    588588                      <!-- ><a href="{$eventView}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}"> --> 
    589589                        <strong> 
     
    623623                    <xsl:otherwise> 
    624624                      <!-- ><a href="{$eventView}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}"> --> 
    625                          <a href="{$bwCacheHostUrl}/v1.0/event/list-html/{$recurrenceId}/{$guid}"> 
     625                    <a href="{$bwCacheHostUrl}/v1.0/event/list-html/{$recurrenceId}/{$guid}"> 
    626626                        <xsl:value-of select="summary"/> 
    627627                        <xsl:if test="location/address != ''">, <xsl:value-of select="location/address"/></xsl:if> 
     
    672672              <option> 
    673673                <xsl:attribute name="value"><xsl:value-of select="id"/></xsl:attribute> 
    674                 <xsl:value-of select="keyword"/> 
     674                <xsl:value-of select="value"/> 
    675675              </option> 
    676676            </xsl:for-each> 
     
    766766                    <xsl:copy-of select="$bwStr-LsEv-Categories"/> 
    767767                    <xsl:for-each select="categories/category"> 
    768                       <xsl:value-of select="word"/><xsl:if test="position() != last()">, </xsl:if> 
     768                      <xsl:value-of select="value"/><xsl:if test="position() != last()">, </xsl:if> 
    769769                    </xsl:for-each> 
    770770                  </xsl:if> 
     
    828828              <xsl:variable name="dayDate" select="date"/> 
    829829              <!-- ><a href="{$setViewPeriod}&amp;viewType=dayView&amp;date={$dayDate}" class="dayLink">  --> 
    830                    <a href="{$bwCacheHostUrl}/v1.0/genFeedPeriod/day/{$dayDate}/grid-html/all/all" class="dayLink"> 
     830              <a href="{$bwCacheHostUrl}/v1.0/genFeedPeriod/day/{$dayDate}/grid-html/all/all" class="dayLink"> 
    831831                <xsl:value-of select="value"/> 
    832832              </a> 
    833833              <xsl:if test="event"> 
    834834                <ul> 
    835                      <xsl:choose> 
    836                                    <xsl:when test="/bedework/appvar/key = 'filter'"> 
    837                                      <xsl:variable name="filterName" select="substring-before(/bedework/appvar[key='filter']/value,':')"/> 
    838                                      <xsl:variable name="filterVal" select="substring-after(/bedework/appvar[key='filter']/value,':')"/> 
    839                                      <!-- Define filters here: --> 
    840                                      <xsl:choose> 
    841                                        <xsl:when test="$filterName = 'grpAndCats'"> 
    842                                              <xsl:call-template name="processGrpAndCats"> 
    843                                                <xsl:with-param name="list" select="$filterVal"/> 
    844                                                <xsl:with-param name="dayPos" select="$dayPos"/> 
    845                                              </xsl:call-template> 
    846                                        </xsl:when> 
    847                                        <xsl:otherwise> 
    848                                          <!-- Filter name not defined? Turn off filtering. --> 
    849                                          <xsl:apply-templates select="event" mode="calendarLayout"> 
    850                                                <xsl:with-param name="dayPos" select="$dayPos"/> 
    851                                          </xsl:apply-templates> 
    852                                        </xsl:otherwise> 
    853                                      </xsl:choose> 
    854                                    </xsl:when> 
    855                                    <xsl:otherwise> 
    856                                      <xsl:apply-templates select="event" mode="calendarLayout"> 
    857                                            <xsl:with-param name="dayPos" select="$dayPos"/> 
    858                                      </xsl:apply-templates> 
    859                                    </xsl:otherwise> 
    860                              </xsl:choose> 
     835                <xsl:choose> 
     836                  <xsl:when test="/bedework/appvar/key = 'filter'"> 
     837                      <xsl:variable name="filterName" select="substring-before(/bedework/appvar[key='filter']/value,':')"/> 
     838                    <xsl:variable name="filterVal" select="substring-after(/bedework/appvar[key='filter']/value,':')"/> 
     839                    <!-- Define filters here: --> 
     840                    <xsl:choose> 
     841                      <xsl:when test="$filterName = 'grpAndCats'"> 
     842                        <xsl:call-template name="processGrpAndCats"> 
     843                        <xsl:with-param name="list" select="$filterVal"/> 
     844                        <xsl:with-param name="dayPos" select="$dayPos"/> 
     845                      </xsl:call-template> 
     846                      </xsl:when> 
     847                      <xsl:otherwise> 
     848                        <!-- Filter name not defined? Turn off filtering. --> 
     849                        <xsl:apply-templates select="event" mode="calendarLayout"> 
     850                        <xsl:with-param name="dayPos" select="$dayPos"/> 
     851                        </xsl:apply-templates> 
     852                        </xsl:otherwise> 
     853                    </xsl:choose> 
     854                  </xsl:when> 
     855                  <xsl:otherwise> 
     856                    <xsl:apply-templates select="event" mode="calendarLayout"> 
     857                    <xsl:with-param name="dayPos" select="$dayPos"/> 
     858                    </xsl:apply-templates> 
     859                  </xsl:otherwise> 
     860            </xsl:choose> 
    861861                </ul> 
    862862              </xsl:if> 
     
    891891                  <xsl:variable name="dayDate" select="date"/> 
    892892                  <xsl:choose> 
    893                                    <xsl:when test="/bedework/appvar/key = 'filter'"> 
    894                              <xsl:variable name="filterName" select="substring-before(/bedework/appvar[key='filter']/value,':')"/> 
    895                              <xsl:variable name="filterVal" select="substring-after(/bedework/appvar[key='filter']/value,':')"/> 
    896                              <!-- Define filters here: --> 
    897                              <xsl:choose> 
    898                                <xsl:when test="$filterName = 'grpAndCats'"> 
    899                                       <xsl:variable name="group" select="substring-before($filterVal, '~')" />  
    900                                              <xsl:variable name="cats" select="substring-after($filterVal, '~')" /> 
    901                                                  <a href="{$bwCacheHostUrl}/v1.0/genFeedPeriod/day/{$dayDate}/grid-html/{$group}/{$cats}"> 
    902                                        <xsl:value-of select="value"/> 
    903                                      </a> 
    904                                </xsl:when> 
    905                                <xsl:otherwise> 
    906                                  <!-- Filter name not defined? Turn off filtering. --> 
    907                                  <a href="{$bwCacheHostUrl}/v1.0/genFeedPeriod/day/{$dayDate}/grid-html/all/all"> 
    908                                        <xsl:value-of select="value"/> 
    909                                      </a> 
    910                                </xsl:otherwise> 
    911                              </xsl:choose> 
    912                            </xsl:when> 
    913                            <xsl:otherwise> 
    914                              <a href="{$bwCacheHostUrl}/v1.0/genFeedPeriod/day/{$dayDate}/grid-html/all/all"> 
    915                                    <xsl:value-of select="value"/> 
    916                          </a> 
    917                            </xsl:otherwise> 
    918                          </xsl:choose> 
     893            <xsl:when test="/bedework/appvar/key = 'filter'"> 
     894                  <xsl:variable name="filterName" select="substring-before(/bedework/appvar[key='filter']/value,':')"/> 
     895                  <xsl:variable name="filterVal" select="substring-after(/bedework/appvar[key='filter']/value,':')"/> 
     896                  <!-- Define filters here: --> 
     897                  <xsl:choose> 
     898                    <xsl:when test="$filterName = 'grpAndCats'"> 
     899                    <xsl:variable name="group" select="substring-before($filterVal, '~')" /> 
     900                <xsl:variable name="cats" select="substring-after($filterVal, '~')" /> 
     901              <a href="{$bwCacheHostUrl}/v1.0/genFeedPeriod/day/{$dayDate}/grid-html/{$group}/{$cats}"> 
     902                      <xsl:value-of select="value"/> 
     903                    </a> 
     904                    </xsl:when> 
     905                    <xsl:otherwise> 
     906                      <!-- Filter name not defined? Turn off filtering. --> 
     907                      <a href="{$bwCacheHostUrl}/v1.0/genFeedPeriod/day/{$dayDate}/grid-html/all/all"> 
     908                      <xsl:value-of select="value"/> 
     909                    </a> 
     910                      </xsl:otherwise> 
     911                  </xsl:choose> 
     912                </xsl:when> 
     913                <xsl:otherwise> 
     914                  <a href="{$bwCacheHostUrl}/v1.0/genFeedPeriod/day/{$dayDate}/grid-html/all/all"> 
     915                  <xsl:value-of select="value"/> 
     916                    </a> 
     917                </xsl:otherwise> 
     918              </xsl:choose> 
    919919                  <xsl:if test="event"> 
    920920                    <ul> 
    921                          <xsl:choose> 
    922                                    <xsl:when test="/bedework/appvar/key = 'filter'"> 
    923                                      <xsl:variable name="filterName" select="substring-before(/bedework/appvar[key='filter']/value,':')"/> 
    924                                      <xsl:variable name="filterVal" select="substring-after(/bedework/appvar[key='filter']/value,':')"/> 
    925                                      <!-- Define filters here: --> 
    926                                      <xsl:choose> 
    927                                        <xsl:when test="$filterName = 'grpAndCats'"> 
    928                                              <xsl:call-template name="processGrpAndCats"> 
    929                                                <xsl:with-param name="list" select="$filterVal"/> 
    930                                                <xsl:with-param name="dayPos" select="$dayPos"/> 
    931                                              </xsl:call-template> 
    932                                        </xsl:when> 
    933                                        <xsl:otherwise> 
    934                                          <!-- Filter name not defined? Turn off filtering. --> 
    935                                          <xsl:apply-templates select="event" mode="calendarLayout"> 
    936                                                <xsl:with-param name="dayPos" select="$dayPos"/> 
    937                                          </xsl:apply-templates> 
    938                                        </xsl:otherwise> 
    939                                      </xsl:choose> 
    940                                    </xsl:when> 
    941                                    <xsl:otherwise> 
    942                                      <xsl:apply-templates select="event" mode="calendarLayout"> 
    943                                            <xsl:with-param name="dayPos" select="$dayPos"/> 
    944                                      </xsl:apply-templates> 
    945                                    </xsl:otherwise> 
    946                                  </xsl:choose> 
     921                    <xsl:choose> 
     922                  <xsl:when test="/bedework/appvar/key = 'filter'"> 
     923                      <xsl:variable name="filterName" select="substring-before(/bedework/appvar[key='filter']/value,':')"/> 
     924                    <xsl:variable name="filterVal" select="substring-after(/bedework/appvar[key='filter']/value,':')"/> 
     925                    <!-- Define filters here: --> 
     926                    <xsl:choose> 
     927                      <xsl:when test="$filterName = 'grpAndCats'"> 
     928                        <xsl:call-template name="processGrpAndCats"> 
     929                        <xsl:with-param name="list" select="$filterVal"/> 
     930                        <xsl:with-param name="dayPos" select="$dayPos"/> 
     931                      </xsl:call-template> 
     932                      </xsl:when> 
     933                      <xsl:otherwise> 
     934                        <!-- Filter name not defined? Turn off filtering. --> 
     935                        <xsl:apply-templates select="event" mode="calendarLayout"> 
     936                        <xsl:with-param name="dayPos" select="$dayPos"/> 
     937                        </xsl:apply-templates> 
     938                        </xsl:otherwise> 
     939                    </xsl:choose> 
     940                  </xsl:when> 
     941                  <xsl:otherwise> 
     942                    <xsl:apply-templates select="event" mode="calendarLayout"> 
     943                    <xsl:with-param name="dayPos" select="$dayPos"/> 
     944                    </xsl:apply-templates> 
     945                  </xsl:otherwise> 
     946                </xsl:choose> 
    947947                    </ul> 
    948948                  </xsl:if> 
     
    983983    <li> 
    984984      <!-- <a href="{$eventView}&amp;calPath={$calPath}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}" class="{$eventClass} {$subscriptionClass}"> --> 
    985          <a href="{$bwCacheHostUrl}/v1.0/event/list-html/{$recurrenceId}/{$guid}" class="{$eventClass} {$subscriptionClass}"> 
     985    <a href="{$bwCacheHostUrl}/v1.0/event/list-html/{$recurrenceId}/{$guid}" class="{$eventClass} {$subscriptionClass}"> 
    986986      <xsl:if test="status='CANCELLED'"><xsl:copy-of select="$bwStr-EvCG-CanceledColon"/><xsl:text> </xsl:text></xsl:if> 
    987987      <xsl:choose> 
     
    10001000        <xsl:choose> 
    10011001          <xsl:when test="$dayPos &gt; 5"> 
    1002                eventTipReverse 
    1003              </xsl:when> 
     1002          eventTipReverse 
     1003        </xsl:when> 
    10041004          <xsl:otherwise> 
    1005                eventTip 
    1006              </xsl:otherwise> 
     1005          eventTip 
     1006        </xsl:otherwise> 
    10071007        </xsl:choose> 
    10081008      </xsl:variable> 
     
    11371137  </xsl:template> 
    11381138 
    1139   <!--==== CALENDARS ====-->   
     1139  <!--==== CALENDARS ====--> 
    11401140 
    11411141  <!-- calendar export page --> 
     
    11831183 
    11841184  <xsl:template name="processGrpAndCats"> 
    1185     <xsl:param name="list" />  
     1185    <xsl:param name="list" /> 
    11861186    <xsl:param name="dayPos" /> 
    1187     <xsl:variable name="group" select="substring-before($list, '~')" />  
     1187    <xsl:variable name="group" select="substring-before($list, '~')" /> 
    11881188    <xsl:variable name="remaining" select="substring-after($list, '~')" /> 
    11891189    <xsl:call-template name="processCategories"> 
    1190          <xsl:with-param name="group" select="$group" /> 
    1191       <xsl:with-param name="list" select="$remaining" />  
    1192       <xsl:with-param name="dayPos" select="$dayPos" />  
     1190    <xsl:with-param name="group" select="$group" /> 
     1191      <xsl:with-param name="list" select="$remaining" /> 
     1192      <xsl:with-param name="dayPos" select="$dayPos" /> 
    11931193    </xsl:call-template> 
    11941194  </xsl:template> 
    11951195 
    11961196  <xsl:template name="processCategories"> 
    1197        <xsl:param name="group" /> 
    1198     <xsl:param name="list" />  
     1197  <xsl:param name="group" /> 
     1198    <xsl:param name="list" /> 
    11991199    <xsl:param name="dayPos" /> 
    12001200    <xsl:choose> 
    1201          <xsl:when test="contains($list, '~')"> 
    1202                <!-- Grab the first off the list and process --> 
    1203                 <xsl:variable name="catid" select="substring-before($list, '~')" />  
    1204            <xsl:variable name="remaining" select="substring-after($list, '~')" /> 
    1205            <xsl:choose> 
    1206                  <xsl:when test="$group = 'all'"> 
    1207 >               <xsl:apply-templates select="event[categories/category/id = $catid]" mode="calendarLayout">   
    1208                  <xsl:with-param name="dayPos" select="$dayPos"/> 
    1209                 </xsl:apply-templates>  
    1210              </xsl:when> 
    1211              <xsl:otherwise> 
    1212                <xsl:apply-templates select="event[categories/category/id = $catid]" mode="calendarLayout"> 
    1213                  <xsl:with-param name="dayPos" select="$dayPos"/> 
    1214                </xsl:apply-templates> 
    1215              </xsl:otherwise> 
    1216            </xsl:choose> 
    1217  
    1218                <!-- now use recursion to process the remaining categories --> 
    1219            <xsl:call-template name="processCategories"> 
    1220               <xsl:with-param name="group" select="$group" />              
    1221               <xsl:with-param name="list" select="$remaining" />  
    1222              <xsl:with-param name="dayPos" select="$dayPos" /> 
    1223            </xsl:call-template> 
    1224          </xsl:when> 
    1225          <xsl:otherwise> 
    1226            <!-- No more tildes, so this is the last category.  Process it --> 
    1227                <xsl:choose> 
    1228                  <xsl:when test="$group = 'all'"> 
    1229                        <xsl:choose> 
    1230                          <xsl:when test="$list = 'all'"> 
    1231                    <xsl:apply-templates select="event" mode="calendarLayout"> 
    1232                          <xsl:with-param name="dayPos" select="$dayPos"/> 
    1233                        </xsl:apply-templates> 
    1234                  </xsl:when> 
    1235                  <xsl:otherwise> 
    1236                        <xsl:apply-templates select="event[categories/category/id = $list]" mode="calendarLayout"> 
    1237                              <xsl:with-param name="dayPos" select="$dayPos"/> 
    1238                        </xsl:apply-templates> 
    1239                      </xsl:otherwise> 
    1240                </xsl:choose> 
    1241              </xsl:when> 
    1242              <xsl:otherwise> 
    1243                    <xsl:choose> 
    1244                          <xsl:when test="$list = 'all'"> 
    1245                    <xsl:apply-templates select="event[creator = $group]" /> 
    1246                  </xsl:when> 
    1247                  <xsl:otherwise> 
    1248                        <xsl:choose> 
    1249                          <xsl:when test="event/creator = $group"> 
    1250                                <xsl:apply-templates select="event[categories/category/id = $list]" mode="calendarLayout"> 
    1251                                      <xsl:with-param name="dayPos" select="$dayPos"/> 
    1252                                </xsl:apply-templates> 
    1253                          </xsl:when> 
    1254                        </xsl:choose> 
    1255                      </xsl:otherwise> 
    1256                        </xsl:choose> 
    1257              </xsl:otherwise> 
    1258            </xsl:choose> 
    1259          </xsl:otherwise> 
    1260        </xsl:choose> 
     1201    <xsl:when test="contains($list, '~')"> 
     1202    <!-- Grab the first off the list and process --> 
     1203      <xsl:variable name="catid" select="substring-before($list, '~')" /> 
     1204      <xsl:variable name="remaining" select="substring-after($list, '~')" /> 
     1205      <xsl:choose> 
     1206      <xsl:when test="$group = 'all'"> 
     1207>               <xsl:apply-templates select="event[categories/category/id = $catid]" mode="calendarLayout"> 
     1208            <xsl:with-param name="dayPos" select="$dayPos"/> 
     1209          </xsl:apply-templates> 
     1210        </xsl:when> 
     1211        <xsl:otherwise> 
     1212          <xsl:apply-templates select="event[categories/category/id = $catid]" mode="calendarLayout"> 
     1213            <xsl:with-param name="dayPos" select="$dayPos"/> 
     1214          </xsl:apply-templates> 
     1215        </xsl:otherwise> 
     1216      </xsl:choose> 
     1217 
     1218    <!-- now use recursion to process the remaining categories --> 
     1219      <xsl:call-template name="processCategories"> 
     1220        <xsl:with-param name="group" select="$group" /> 
     1221        <xsl:with-param name="list" select="$remaining" /> 
     1222        <xsl:with-param name="dayPos" select="$dayPos" /> 
     1223      </xsl:call-template> 
     1224    </xsl:when> 
     1225    <xsl:otherwise> 
     1226      <!-- No more tildes, so this is the last category.  Process it --> 
     1227    <xsl:choose> 
     1228      <xsl:when test="$group = 'all'"> 
     1229      <xsl:choose> 
     1230        <xsl:when test="$list = 'all'"> 
     1231              <xsl:apply-templates select="event" mode="calendarLayout"> 
     1232              <xsl:with-param name="dayPos" select="$dayPos"/> 
     1233            </xsl:apply-templates> 
     1234            </xsl:when> 
     1235            <xsl:otherwise> 
     1236            <xsl:apply-templates select="event[categories/category/id = $list]" mode="calendarLayout"> 
     1237            <xsl:with-param name="dayPos" select="$dayPos"/> 
     1238            </xsl:apply-templates> 
     1239          </xsl:otherwise> 
     1240          </xsl:choose> 
     1241        </xsl:when> 
     1242        <xsl:otherwise> 
     1243        <xsl:choose> 
     1244        <xsl:when test="$list = 'all'"> 
     1245              <xsl:apply-templates select="event[creator = $group]" /> 
     1246            </xsl:when> 
     1247            <xsl:otherwise> 
     1248            <xsl:choose> 
     1249              <xsl:when test="event/creator = $group"> 
     1250              <xsl:apply-templates select="event[categories/category/id = $list]" mode="calendarLayout"> 
     1251              <xsl:with-param name="dayPos" select="$dayPos"/> 
     1252              </xsl:apply-templates> 
     1253              </xsl:when> 
     1254            </xsl:choose> 
     1255          </xsl:otherwise> 
     1256      </xsl:choose> 
     1257        </xsl:otherwise> 
     1258      </xsl:choose> 
     1259    </xsl:otherwise> 
     1260  </xsl:choose> 
    12611261  </xsl:template> 
    12621262 
  • trunk/deployment/feeder/webapp/resources/demoskins/MainCampus/default/default/grid-json.xsl

    r2472 r2520  
    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    
     4 
    55  <!-- ********************************************************************** 
    66    Copyright 2009 Rensselaer Polytechnic Institute. All worldwide rights reserved. 
     
    2626    Institute, nor the authors of the software are liable for any indirect, 
    2727    special, consequential, or incidental damages related to the software, 
    28     to the maximum extent the law permits.  
     28    to the maximum extent the law permits. 
    2929  --> 
    3030 
    3131  <!-- DEFINE INCLUDES --> 
    3232  <!-- util.xsl belongs in bedework-common on your application server for use 
    33        by all stylesheets:  
     33       by all stylesheets: 
    3434  --> 
    3535  <xsl:include href="../../../bedework-common/default/default/util.xsl"/> 
    3636  <xsl:variable name="urlprefix" select="/bedework/urlprefix"/> 
    3737  <xsl:variable name="eventView" select="/bedework/urlPrefixes/event/eventView"/> 
    38    
     38 
    3939  <xsl:template match='/'> 
    4040    <xsl:choose> 
     
    4848        "year": { 
    4949          "value": "<xsl:value-of select='/bedework/eventscalendar/year/value'/>", 
    50               <xsl:apply-templates select="/bedework/eventscalendar/year/month" /> 
    51            } 
     50         <xsl:apply-templates select="/bedework/eventscalendar/year/month" /> 
     51      } 
    5252      }} 
    5353  </xsl:template> 
    5454 
    5555  <xsl:template name="processGrpAndCats"> 
    56     <xsl:param name="list" />  
    57     <xsl:variable name="group" select="substring-before($list, '~')" />  
     56    <xsl:param name="list" /> 
     57    <xsl:variable name="group" select="substring-before($list, '~')" /> 
    5858    <xsl:variable name="remaining" select="substring-after($list, '~')" /> 
    5959    <xsl:call-template name="processCategories"> 
    60          <xsl:with-param name="group" select="$group" /> 
    61       <xsl:with-param name="list" select="$remaining" />  
     60    <xsl:with-param name="group" select="$group" /> 
     61      <xsl:with-param name="list" select="$remaining" /> 
    6262    </xsl:call-template> 
    6363  </xsl:template> 
    6464 
    6565  <xsl:template name="processCategories"> 
    66        <xsl:param name="group" /> 
    67     <xsl:param name="list" />  
     66  <xsl:param name="group" /> 
     67    <xsl:param name="list" /> 
    6868    <xsl:choose> 
    69          <xsl:when test="contains($list, '~')"> 
    70                <!-- Grab the first off the list and process --> 
    71                 <xsl:variable name="catid" select="substring-before($list, '~')" />  
    72            <xsl:variable name="remaining" select="substring-after($list, '~')" /> 
    73            <xsl:choose> 
    74                  <xsl:when test="$group = 'all'"> 
    75                <xsl:apply-templates select="event[categories/category/id = $catid]" /> 
    76              </xsl:when> 
    77              <xsl:otherwise> 
    78                <xsl:apply-templates select="event[categories/category/id = $catid]" /> 
    79              </xsl:otherwise> 
    80            </xsl:choose> 
    81          
    82                <!-- now use recursion to process the remaining categories --> 
    83            <xsl:call-template name="processCategories"> 
    84               <xsl:with-param name="list" select="$remaining" />  
    85            </xsl:call-template> 
    86          </xsl:when> 
    87          <xsl:otherwise> 
    88            <!-- No more tildes, so this is the last category.  Process it --> 
    89                <xsl:choose> 
    90                  <xsl:when test="$group = 'all'"> 
    91                        <xsl:choose> 
    92                          <xsl:when test="$list = 'all'"> 
    93                    <xsl:apply-templates select="event" /> 
    94                  </xsl:when> 
    95                  <xsl:otherwise> 
    96                        <xsl:apply-templates select="event[categories/category/id = $list]" /> 
    97                      </xsl:otherwise> 
    98                </xsl:choose> 
    99              </xsl:when> 
    100              <xsl:otherwise> 
    101                    <xsl:choose> 
    102                          <xsl:when test="$list = 'all'"> 
    103                    <xsl:apply-templates select="event[creator = $group]" /> 
    104                  </xsl:when> 
    105                  <xsl:otherwise> 
    106                        <xsl:choose> 
    107                          <xsl:when test="event/creator = $group"> 
    108                            <xsl:apply-templates select="event[categories/category/id = $list]" /> 
    109                          </xsl:when> 
    110                        </xsl:choose> 
    111                      </xsl:otherwise> 
    112                        </xsl:choose> 
    113              </xsl:otherwise> 
    114            </xsl:choose> 
    115          </xsl:otherwise> 
    116        </xsl:choose> 
     69    <xsl:when test="contains($list, '~')"> 
     70    <!-- Grab the first off the list and process --> 
     71      <xsl:variable name="catid" select="substring-before($list, '~')" /> 
     72      <xsl:variable name="remaining" select="substring-after($list, '~')" /> 
     73      <xsl:choose> 
     74      <xsl:when test="$group = 'all'"> 
     75          <xsl:apply-templates select="event[categories/category/id = $catid]" /> 
     76        </xsl:when> 
     77        <xsl:otherwise> 
     78          <xsl:apply-templates select="event[categories/category/id = $catid]" /> 
     79        </xsl:otherwise> 
     80      </xsl:choose> 
     81 
     82    <!-- now use recursion to process the remaining categories --> 
     83      <xsl:call-template name="processCategories"> 
     84        <xsl:with-param name="list" select="$remaining" /> 
     85      </xsl:call-template> 
     86    </xsl:when> 
     87    <xsl:otherwise> 
     88      <!-- No more tildes, so this is the last category.  Process it --> 
     89    <xsl:choose> 
     90      <xsl:when test="$group = 'all'"> 
     91      <xsl:choose> 
     92        <xsl:when test="$list = 'all'"> 
     93              <xsl:apply-templates select="event" /> 
     94            </xsl:when> 
     95            <xsl:otherwise> 
     96            <xsl:apply-templates select="event[categories/category/id = $list]" /> 
     97          </xsl:otherwise> 
     98          </xsl:choose> 
     99        </xsl:when> 
     100        <xsl:otherwise> 
     101        <xsl:choose> 
     102        <xsl:when test="$list = 'all'"> 
     103              <xsl:apply-templates select="event[creator = $group]" /> 
     104            </xsl:when> 
     105            <xsl:otherwise> 
     106            <xsl:choose> 
     107              <xsl:when test="event/creator = $group"> 
     108                <xsl:apply-templates select="event[categories/category/id = $list]" /> 
     109              </xsl:when> 
     110            </xsl:choose> 
     111          </xsl:otherwise> 
     112      </xsl:choose> 
     113        </xsl:otherwise> 
     114      </xsl:choose> 
     115    </xsl:otherwise> 
     116  </xsl:choose> 
    117117  </xsl:template> 
    118118 
    119119  <xsl:template match="month"> 
    120            "month": { 
    121              "value" : "<xsl:value-of select='value'/>", 
    122              "longname" : "<xsl:value-of select='longname'/>", 
    123              "shortname" : "<xsl:value-of select='shortname'/>", 
    124              "weeks" : [ 
     120      "month": { 
     121        "value" : "<xsl:value-of select='value'/>", 
     122        "longname" : "<xsl:value-of select='longname'/>", 
     123        "shortname" : "<xsl:value-of select='shortname'/>", 
     124        "weeks" : [ 
    125125          <xsl:apply-templates select="week" /> 
    126126          ] 
     
    129129 
    130130  <xsl:template match="week"> 
    131              { 
    132                "value" : "<xsl:value-of select='value'/>", 
    133                "days" : [ 
    134                   <xsl:apply-templates select="day" /> 
    135                ] 
    136              }<xsl:if test="position() != last()">,</xsl:if> 
    137   </xsl:template> 
    138    
     131        { 
     132          "value" : "<xsl:value-of select='value'/>", 
     133          "days" : [ 
     134             <xsl:apply-templates select="day" /> 
     135          ] 
     136        }<xsl:if test="position() != last()">,</xsl:if> 
     137  </xsl:template> 
     138 
    139139  <xsl:template match="day"> 
    140                { 
    141                  <xsl:choose> 
    142                        <xsl:when test="filler = 'true'"> 
    143                          "filler" : "<xsl:value-of select='filler'/>" 
    144                        </xsl:when> 
    145                        <xsl:otherwise> 
    146                          "filler" : "<xsl:value-of select='filler'/>", 
    147                  "value" : "<xsl:value-of select='value'/>", 
    148                  "name" : "<xsl:value-of select='name'/>", 
    149                  "date" : "<xsl:value-of select='date'/>", 
    150                  "longdate" : "<xsl:value-of select='longdate'/>", 
    151                  "shortdate" : "<xsl:value-of select='shortdate'/>", 
    152                  "events" : [ 
    153                      <xsl:choose> 
    154                            <xsl:when test="/bedework/appvar/key = 'filter'"> 
    155                              <xsl:variable name="filterName" select="substring-before(/bedework/appvar[key='filter']/value,':')"/> 
    156                              <xsl:variable name="filterVal" select="substring-after(/bedework/appvar[key='filter']/value,':')"/> 
    157                              <!-- Define filters here: --> 
    158                              <xsl:choose> 
    159                                <xsl:when test="$filterName = 'grpAndCats'"> 
    160                                      <xsl:call-template name="processGrpAndCats"><xsl:with-param name="list" select="$filterVal"/></xsl:call-template> 
    161                                </xsl:when> 
    162                                <xsl:otherwise> 
    163                                  <!-- Filter name not defined? Turn off filtering. --> 
    164                                  <xsl:apply-templates select="event"/> 
    165                                </xsl:otherwise> 
    166                              </xsl:choose> 
    167                            </xsl:when> 
    168                            <xsl:otherwise> 
    169                              <xsl:apply-templates select="event"/> 
    170                            </xsl:otherwise> 
    171                          </xsl:choose> 
    172                          ] 
    173                        </xsl:otherwise> 
    174                      </xsl:choose> 
    175                    }<xsl:if test="position() != last()">,</xsl:if> 
    176   </xsl:template>       
     140          { 
     141            <xsl:choose> 
     142            <xsl:when test="filler = 'true'"> 
     143        "filler" : "<xsl:value-of select='filler'/>" 
     144            </xsl:when> 
     145            <xsl:otherwise> 
     146        "filler" : "<xsl:value-of select='filler'/>", 
     147            "value" : "<xsl:value-of select='value'/>", 
     148            "name" : "<xsl:value-of select='name'/>", 
     149            "date" : "<xsl:value-of select='date'/>", 
     150            "longdate" : "<xsl:value-of select='longdate'/>", 
     151            "shortdate" : "<xsl:value-of select='shortdate'/>", 
     152            "events" : [ 
     153                <xsl:choose> 
     154                <xsl:when test="/bedework/appvar/key = 'filter'"> 
     155                    <xsl:variable name="filterName" select="substring-before(/bedework/appvar[key='filter']/value,':')"/> 
     156                  <xsl:variable name="filterVal" select="substring-after(/bedework/appvar[key='filter']/value,':')"/> 
     157                  <!-- Define filters here: --> 
     158                  <xsl:choose> 
     159                    <xsl:when test="$filterName = 'grpAndCats'"> 
     160                      <xsl:call-template name="processGrpAndCats"><xsl:with-param name="list" select="$filterVal"/></xsl:call-template> 
     161                    </xsl:when> 
     162                    <xsl:otherwise> 
     163                      <!-- Filter name not defined? Turn off filtering. --> 
     164                      <xsl:apply-templates select="event"/> 
     165                      </xsl:otherwise> 
     166                  </xsl:choose> 
     167                </xsl:when> 
     168                <xsl:otherwise> 
     169                  <xsl:apply-templates select="event"/> 
     170                </xsl:otherwise> 
     171              </xsl:choose> 
     172              ] 
     173            </xsl:otherwise> 
     174          </xsl:choose> 
     175        }<xsl:if test="position() != last()">,</xsl:if> 
     176  </xsl:template> 
    177177 
    178178  <xsl:template match="event"> 
     
    243243                    }, 
    244244                    "categories" : [ 
    245                       <xsl:for-each select='categories/category'>"<xsl:value-of select='word'/>"<xsl:if test='position() != last()'>,</xsl:if></xsl:for-each> 
     245                      <xsl:for-each select='categories/category'>"<xsl:value-of select='value'/>"<xsl:if test='position() != last()'>,</xsl:if></xsl:for-each> 
    246246                    ], 
    247247                    "description" : "<xsl:value-of select='$strippedDescription'/>", 
     
    257257                        } 
    258258                      }<xsl:if test='position() != last()'>,</xsl:if></xsl:for-each> 
    259                        
     259 
    260260                    ] 
    261261                 }<xsl:if test="position() != last()">,</xsl:if> 
  • trunk/deployment/feeder/webapp/resources/demoskins/MainCampus/default/default/list-html.xsl

    r2502 r2520  
    3838    special, consequential, or incidental damages related to the software, 
    3939    to the maximum extent the law permits. --> 
    40   
    41   <!-- Bring in settings -->  
     40 
     41  <!-- Bring in settings --> 
    4242  <xsl:include href="./config.xsl"/> 
    4343 
     
    377377          <td class="fieldval"> 
    378378            <xsl:for-each select="categories/category"> 
    379               <xsl:value-of select="word"/><xsl:if test="position() != last()">, </xsl:if> 
     379              <xsl:value-of select="value"/><xsl:if test="position() != last()">, </xsl:if> 
    380380            </xsl:for-each> 
    381381          </td> 
     
    477477                    <xsl:copy-of select="$bwStr-LsEv-Categories"/> 
    478478                    <xsl:for-each select="categories/category"> 
    479                       <xsl:value-of select="word"/><xsl:if test="position() != last()">, </xsl:if> 
     479                      <xsl:value-of select="value"/><xsl:if test="position() != last()">, </xsl:if> 
    480480                    </xsl:for-each> 
    481481                  </xsl:if> 
  • trunk/deployment/feeder/webapp/resources/demoskins/MainCampus/default/default/list-json.xsl

    r2422 r2520  
    5353    Institute, nor the authors of the software are liable for any indirect, 
    5454    special, consequential, or incidental damages related to the software, 
    55     to the maximum extent the law permits.  
     55    to the maximum extent the law permits. 
    5656  --> 
    5757 
    5858  <!-- DEFINE INCLUDES --> 
    5959  <!-- util.xsl belongs in bedework-common on your application server for use 
    60        by all stylesheets:  
     60       by all stylesheets: 
    6161  --> 
    6262  <xsl:include href="../../../bedework-common/default/default/util.xsl"/> 
    6363  <xsl:variable name="urlprefix" select="/bedework/urlprefix"/> 
    6464  <xsl:variable name="eventView" select="/bedework/urlPrefixes/event/eventView"/> 
    65    
     65 
    6666  <xsl:template match='/'> 
    6767    <xsl:choose> 
     
    7979  </xsl:template> 
    8080 
    81    
     81 
    8282  <xsl:template match="event"> 
    8383    <!-- first, escape apostrophes --> 
     
    147147                }, 
    148148                'categories' : [ 
    149                     <xsl:for-each select='categories/category'>'<xsl:value-of select='word'/>'<xsl:if test='position() != last()'>,</xsl:if></xsl:for-each> 
     149                    <xsl:for-each select='categories/category'>'<xsl:value-of select='value'/>'<xsl:if test='position() != last()'>,</xsl:if></xsl:for-each> 
    150150                ], 
    151151                'description' : '<xsl:value-of select='$strippedDescription'/>', 
  • trunk/deployment/feeder/webapp/resources/demoskins/MainCampus/default/default/tofreshen/json-list-src.xsl

    r2448 r2520  
    168168                }, 
    169169                'categories' : [ 
    170                     <xsl:for-each select='categories/category'>'<xsl:value-of select='word'/>'<xsl:if test='position() != last()'>,</xsl:if></xsl:for-each> 
     170                    <xsl:for-each select='categories/category'>'<xsl:value-of select='value'/>'<xsl:if test='position() != last()'>,</xsl:if></xsl:for-each> 
    171171                ], 
    172172                'description' : '<xsl:value-of select='$strippedDescription'/>', 
  • trunk/deployment/feeder/webapp/resources/demoskins/MainCampus/default/default/tofreshen/list-json-obj.xsl

    r2448 r2520  
    168168                }, 
    169169                'categories' : [ 
    170                     <xsl:for-each select='categories/category'>'<xsl:value-of select='word'/>'<xsl:if test='position() != last()'>,</xsl:if></xsl:for-each> 
     170                    <xsl:for-each select='categories/category'>'<xsl:value-of select='value'/>'<xsl:if test='position() != last()'>,</xsl:if></xsl:for-each> 
    171171                ], 
    172172                'description' : '<xsl:value-of select='$strippedDescription'/>', 
  • trunk/deployment/feeder/webapp/resources/demoskins/MainCampus/default/default/widget-json-cats.xsl

    r2416 r2520  
    4343 
    4444  <xsl:template match='/'> 
    45          
    46        <xsl:choose> 
     45 
     46  <xsl:choose> 
    4747      <xsl:when test="/bedework/appvar/key = 'objName'"> 
    4848    var <xsl:value-of select="/bedework/appvar[key='objName']/value"/> = {"bwCategories": { 
     
    5151    {"bwCategories": { 
    5252      </xsl:otherwise> 
    53     </xsl:choose>       
     53    </xsl:choose> 
    5454        "categories": [ 
    5555            <xsl:apply-templates select="/bedework/categories/category"/> 
     
    6262    <xsl:variable name="aposStrippedKeyword"> 
    6363      <xsl:call-template name="replace"> 
    64         <xsl:with-param name="string" select="keyword"/> 
     64        <xsl:with-param name="string" select="value"/> 
    6565        <xsl:with-param name="pattern" select='"&apos;"'/> 
    6666        <xsl:with-param name="replacement" select='"\&apos;"'/> 
     
    7171    <!-- finally, produce the JSON output --> 
    7272            { 
    73                 "keyword" : "<xsl:value-of select="$strippedKeyword"/>", 
     73                "value" : "<xsl:value-of select="$strippedKeyword"/>", 
    7474                "id" : "<xsl:value-of select="id"/>", 
     75                "uid" : "<xsl:value-of select="uid"/>", 
    7576                "creator" : "<xsl:value-of select="creator"/>" 
    7677            }<xsl:if test="position() != last()">,</xsl:if> 
  • trunk/deployment/webadmin/webapp/resources/default/default/default.xsl

    r2518 r2520  
    986986                <xsl:attribute name="selected">selected</xsl:attribute> 
    987987              </xsl:if> 
    988               <xsl:value-of select="keyword"/> 
     988              <xsl:value-of select="value"/> 
    989989            </option> 
    990990          </xsl:for-each> 
     
    11431143        <td class="calcat"> 
    11441144          <xsl:for-each select="categories/category"> 
    1145             <xsl:value-of select="keyword"/><br/> 
     1145            <xsl:value-of select="value"/><br/> 
    11461146          </xsl:for-each> 
    11471147        </td> 
     
    26162616                    <td> 
    26172617                      <xsl:for-each select="form/categories/preferred/category[position() &lt;= ceiling($catCount div 2)]"> 
    2618                         <xsl:sort select="keyword" order="ascending"/> 
     2618                        <xsl:sort select="value" order="ascending"/> 
    26192619                        <input type="checkbox" name="catUid"> 
    26202620                          <xsl:attribute name="value"><xsl:value-of select="uid"/></xsl:attribute> 
     
    26252625                            <xsl:attribute name="disabled">disabled</xsl:attribute> 
    26262626                          </xsl:if> 
    2627                           <xsl:value-of select="keyword"/> 
     2627                          <xsl:value-of select="value"/> 
    26282628                        </input><br/> 
    26292629                      </xsl:for-each> 
     
    26312631                    <td> 
    26322632                      <xsl:for-each select="form/categories/preferred/category[position() &gt; ceiling($catCount div 2)]"> 
    2633                         <xsl:sort select="keyword" order="ascending"/> 
     2633                        <xsl:sort select="value" order="ascending"/> 
    26342634                        <input type="checkbox" name="catUid"> 
    26352635                          <xsl:attribute name="value"><xsl:value-of select="uid"/></xsl:attribute> 
     
    26402640                            <xsl:attribute name="disabled">disabled</xsl:attribute> 
    26412641                          </xsl:if> 
    2642                           <xsl:value-of select="keyword"/> 
     2642                          <xsl:value-of select="value"/> 
    26432643                        </input><br/> 
    26442644                      </xsl:for-each> 
     
    26672667                          </xsl:if> 
    26682668                        </xsl:if> 
    2669                         <xsl:value-of select="keyword"/> 
     2669                        <xsl:value-of select="value"/> 
    26702670                      </input><br/> 
    26712671                    </xsl:for-each> 
     
    26852685                          </xsl:if> 
    26862686                        </xsl:if> 
    2687                         <xsl:value-of select="keyword"/> 
     2687                        <xsl:value-of select="value"/> 
    26882688                      </input><br/> 
    26892689                    </xsl:for-each> 
     
    36263626          <td> 
    36273627            <a href="{$category-fetchForUpdate}&amp;catUid={$catUid}"> 
    3628               <xsl:value-of select="keyword"/> 
     3628              <xsl:value-of select="value"/> 
    36293629            </a> 
    36303630          </td> 
     
    36773677              </td> 
    36783678              <td> 
    3679                 <xsl:variable name="keyword" select="normalize-space(/bedework/currentCategory/category/keyword)"/> 
    3680                 <input type="text" name="categoryWord.value" value="{$keyword}" size="40"/> 
     3679                <input type="text" name="categoryWord.value" value="" size="40"> 
     3680                  <xsl:attribute name="value"><xsl:value-of select="normalize-space(/bedework/currentCategory/category/value)"/></xsl:attribute> 
     3681                </input> 
    36813682              </td> 
    36823683            </tr> 
     
    37183719        </td> 
    37193720        <td> 
    3720           <xsl:value-of select="/bedework/currentCategory/category/keyword"/> 
     3721          <xsl:value-of select="/bedework/currentCategory/category/value"/> 
    37213722        </td> 
    37223723      </tr> 
     
    37423743    <ul class="catlist"> 
    37433744      <xsl:for-each select="/bedework/categories/current/category"> 
    3744         <xsl:sort select="keyword" order="ascending"/> 
     3745        <xsl:sort select="value" order="ascending"/> 
    37453746        <li> 
    37463747          <input type="checkbox" name="catUid" checked="checked"> 
    37473748            <xsl:attribute name="value"><xsl:value-of select="uid"/></xsl:attribute> 
    37483749          </input> 
    3749           <xsl:value-of select="keyword"/> 
     3750          <xsl:value-of select="value"/> 
    37503751        </li> 
    37513752      </xsl:for-each> 
     
    37573758      <ul class="catlist"> 
    37583759        <xsl:for-each select="/bedework/categories/all/category"> 
    3759           <xsl:sort select="keyword" order="ascending"/> 
     3760          <xsl:sort select="value" order="ascending"/> 
    37603761          <!-- don't duplicate the selected categories --> 
    37613762          <xsl:if test="not(uid = ../../current//category/uid)"> 
     
    37643765                <xsl:attribute name="value"><xsl:value-of select="uid"/></xsl:attribute> 
    37653766              </input> 
    3766               <xsl:value-of select="keyword"/> 
     3767              <xsl:value-of select="value"/> 
    37673768            </li> 
    37683769          </xsl:if> 
     
    39994000              <ul class="catlist"> 
    40004001                <xsl:for-each select="/bedework/categories/all/category"> 
    4001                   <xsl:sort select="keyword" order="ascending"/> 
     4002                  <xsl:sort select="value" order="ascending"/> 
    40024003                  <li> 
    40034004                    <input type="checkbox" name="filterCatUid"> 
    40044005                      <xsl:attribute name="value"><xsl:value-of select="uid"/></xsl:attribute> 
    4005                       <xsl:value-of select="keyword"/> 
     4006                      <xsl:value-of select="value"/> 
    40064007                    </input> 
    40074008                  </li> 
     
    40204021              <ul class="catlist"> 
    40214022                <xsl:for-each select="/bedework/categories/all/category"> 
    4022                   <xsl:sort select="keyword" order="ascending"/> 
     4023                  <xsl:sort select="value" order="ascending"/> 
    40234024                  <li> 
    40244025                    <input type="checkbox" name="catUid"> 
     
    40284029                        <xsl:attribute name="disabled">disabled</xsl:attribute> 
    40294030                      </xsl:if> 
    4030                       <xsl:value-of select="keyword"/> 
     4031                      <xsl:value-of select="value"/> 
    40314032                    </input> 
    40324033                  </li> 
     
    42264227              <ul class="catlist"> 
    42274228                <xsl:for-each select="/bedework/categories/all/category"> 
    4228                   <xsl:sort select="keyword" order="ascending"/> 
     4229                  <xsl:sort select="value" order="ascending"/> 
    42294230                  <xsl:if test="contains($filterUids,uid)"> 
    42304231                    <li> 
    42314232                      <input type="checkbox" name="filterCatUid" checked="checked"> 
    42324233                        <xsl:attribute name="value"><xsl:value-of select="uid"/></xsl:attribute> 
    4233                         <xsl:value-of select="keyword"/> 
     4234                        <xsl:value-of select="value"/> 
    42344235                      </input> 
    42354236                    </li> 
     
    42494250              <ul class="catlist"> 
    42504251                <xsl:for-each select="/bedework/categories/all/category"> 
    4251                   <xsl:sort select="keyword" order="ascending"/> 
     4252                  <xsl:sort select="value" order="ascending"/> 
    42524253                  <!-- don't duplicate the selected filters --> 
    42534254                  <xsl:if test="not(contains($filterUids,uid))"> 
     
    42554256                      <input type="checkbox" name="filterCatUid"> 
    42564257                        <xsl:attribute name="value"><xsl:value-of select="uid"/></xsl:attribute> 
    4257                         <xsl:value-of select="keyword"/> 
     4258                        <xsl:value-of select="value"/> 
    42584259                      </input> 
    42594260                    </li> 
     
    42704271            <ul class="catlist"> 
    42714272              <xsl:for-each select="/bedework/categories/current/category"> 
    4272                 <xsl:sort select="keyword" order="ascending"/> 
     4273                <xsl:sort select="value" order="ascending"/> 
    42734274                <li> 
    42744275                  <input type="checkbox" name="catUid" checked="checked"> 
     
    42774278                      <xsl:attribute name="disabled">disabled</xsl:attribute> 
    42784279                    </xsl:if> 
    4279                     <xsl:value-of select="keyword"/> 
     4280                    <xsl:value-of select="value"/> 
    42804281                  </input> 
    42814282                </li> 
     
    42884289              <ul class="catlist"> 
    42894290                <xsl:for-each select="/bedework/categories/all/category"> 
    4290                   <xsl:sort select="keyword" order="ascending"/> 
     4291                  <xsl:sort select="value" order="ascending"/> 
    42914292                  <!-- don't duplicate the selected categories --> 
    42924293                  <xsl:if test="not(uid = ../../current//category/uid)"> 
     
    42954296                        <xsl:attribute name="value"><xsl:value-of select="uid"/></xsl:attribute> 
    42964297                      </input> 
    4297                       <xsl:value-of select="keyword"/> 
     4298                      <xsl:value-of select="value"/> 
    42984299                    </li> 
    42994300                  </xsl:if> 
     
    49784979              <ul class="catlist"> 
    49794980                <xsl:for-each select="/bedework/categories/all/category"> 
    4980                   <xsl:sort select="keyword" order="ascending"/> 
     4981                  <xsl:sort select="value" order="ascending"/> 
    49814982                  <li> 
    49824983                    <input type="checkbox" name="filterCatUid"> 
    49834984                      <xsl:attribute name="value"><xsl:value-of select="uid"/></xsl:attribute> 
    4984                       <xsl:value-of select="keyword"/> 
     4985                      <xsl:value-of select="value"/> 
    49854986                    </input> 
    49864987                  </li> 
     
    49995000              <ul class="catlist"> 
    50005001                <xsl:for-each select="/bedework/categories/all/category"> 
    5001                   <xsl:sort select="keyword" order="ascending"/> 
     5002                  <xsl:sort select="value" order="ascending"/> 
    50025003                  <li> 
    50035004                    <input type="checkbox" name="catUid"> 
     
    50075008                        <xsl:attribute name="disabled">disabled</xsl:attribute> 
    50085009                      </xsl:if> 
    5009                       <xsl:value-of select="keyword"/> 
     5010                      <xsl:value-of select="value"/> 
    50105011                    </input> 
    50115012                  </li> 
     
    60036004            <ul class="catlist"> 
    60046005              <xsl:for-each select="/bedework/categories/current/category"> 
    6005                 <xsl:sort select="keyword" order="ascending"/> 
     6006                <xsl:sort select="value" order="ascending"/> 
    60066007                <li> 
    60076008                  <input type="checkbox" name="defaultCategory" checked="checked"> 
    60086009                    <xsl:attribute name="value"><xsl:value-of select="uid"/></xsl:attribute> 
    6009                     <xsl:value-of select="keyword"/> 
     6010                    <xsl:value-of select="value"/> 
    60106011                  </input> 
    60116012                </li> 
     
    60186019              <ul class="catlist"> 
    60196020                <xsl:for-each select="/bedework/categories/all/category"> 
    6020                   <xsl:sort select="keyword" order="ascending"/> 
     6021                  <xsl:sort select="value" order="ascending"/> 
    60216022                  <!-- don't duplicate the selected categories --> 
    60226023                  <xsl:if test="not(uid = ../../current//category/uid)"> 
     
    60246025                      <input type="checkbox" name="defaultCategory"> 
    60256026                        <xsl:attribute name="value"><xsl:value-of select="uid"/></xsl:attribute> 
    6026                         <xsl:value-of select="keyword"/> 
     6027                        <xsl:value-of select="value"/> 
    60276028                      </input> 
    60286029                    </li> 
  • trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/themes/bedeworkTheme/search.xsl

    r2511 r2520  
    212212                <ul> 
    213213                  <xsl:for-each 
    214                     select="/bedework/categories/category[(position() &lt;= ceiling($catCount div 2)) and (keyword != 'Local') and (creator != 'agrp_public-user') and (keyword != 'Main') and (keyword != 'Student') and (keyword != 'calCrossPublish')]"> 
     214                    select="/bedework/categories/category[(position() &lt;= ceiling($catCount div 2)) and (value != 'Local') and (creator != 'agrp_public-user') and (value != 'Main') and (value != 'Student') and (value != 'calCrossPublish')]"> 
    215215                    <xsl:variable name="currId" 
    216                       select="keyword" /> 
     216                      select="value" /> 
    217217                    <li> 
    218218                      <p> 
     
    220220                          name="categoryKey" value="{$currId}" /> 
    221221                        <xsl:value-of 
    222                           select="keyword" /> 
     222                          select="value" /> 
    223223                      </p> 
    224224                    </li> 
     
    229229                <ul> 
    230230                  <xsl:for-each 
    231                     select="/bedework/categories/category[(position() &gt; ceiling($catCount div 2)) and (keyword != 'Local') and (creator != 'agrp_public-user') and (keyword != 'Main') and (keyword != 'Student') and (keyword != 'calCrossPublish')]"> 
     231                    select="/bedework/categories/category[(position() &gt; ceiling($catCount div 2)) and (value != 'Local') and (creator != 'agrp_public-user') and (value != 'Main') and (value != 'Student') and (value != 'calCrossPublish')]"> 
    232232                    <xsl:variable name="currId2" 
    233                       select="keyword" /> 
     233                      select="value" /> 
    234234                    <li> 
    235235                      <p> 
     
    237237                          name="categoryKey" value="{$currId2}" /> 
    238238                        <xsl:value-of 
    239                           select="keyword" /> 
     239                          select="value" /> 
    240240                      </p> 
    241241                    </li> 
  • trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/themes/bwclassicTheme/bwclassic.xsl

    r2517 r2520  
    776776              <option> 
    777777                <xsl:attribute name="value"><xsl:value-of select="id"/></xsl:attribute> 
    778                 <xsl:value-of select="keyword"/> 
     778                <xsl:value-of select="value"/> 
    779779              </option> 
    780780            </xsl:for-each> 
  • trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/themes/iphone/default.xsl

    r2505 r2520  
    465465          <td class="fieldval"> 
    466466            <xsl:for-each select="categories/category"> 
    467               <xsl:value-of select="word"/><xsl:if test="position() != last()">, </xsl:if> 
     467              <xsl:value-of select="value"/><xsl:if test="position() != last()">, </xsl:if> 
    468468            </xsl:for-each> 
    469469          </td> 
  • trunk/deployment/webpublic/webapp/resources/demoskins/SoEDepartmental/default/default/default.xsl

    r2448 r2520  
    853853          <td class="fieldval"> 
    854854            <xsl:for-each select="categories/category"> 
    855               <xsl:value-of select="word"/><xsl:if test="position() != last()">, </xsl:if> 
     855              <xsl:value-of select="value"/><xsl:if test="position() != last()">, </xsl:if> 
    856856            </xsl:for-each> 
    857857          </td> 
     
    11521152                    <xsl:copy-of select="$bwStr-LsEv-Categories"/> 
    11531153                    <xsl:for-each select="categories/category"> 
    1154                       <xsl:value-of select="word"/><xsl:if test="position() != last()">, </xsl:if> 
     1154                      <xsl:value-of select="value"/><xsl:if test="position() != last()">, </xsl:if> 
    11551155                    </xsl:for-each> 
    11561156                  </xsl:if> 
  • trunk/deployment/websubmit/webapp/resources/demoskins/default/default/default.xsl

    r2358 r2520  
    10851085                      <xsl:attribute name="value"><xsl:value-of select="uid"/></xsl:attribute> 
    10861086                      <xsl:if test="uid = ../../current//category/uid"><xsl:attribute name="checked">checked</xsl:attribute></xsl:if> 
    1087                       <xsl:value-of select="keyword"/> 
     1087                      <xsl:value-of select="value"/> 
    10881088                    </input><br/> 
    10891089                  </xsl:for-each> 
     
    10941094                      <xsl:attribute name="value"><xsl:value-of select="uid"/></xsl:attribute> 
    10951095                      <xsl:if test="uid = ../../current//category/uid"><xsl:attribute name="checked">checked</xsl:attribute></xsl:if> 
    1096                       <xsl:value-of select="keyword"/> 
     1096                      <xsl:value-of select="value"/> 
    10971097                    </input><br/> 
    10981098                  </xsl:for-each> 
  • trunk/deployment/webuser/webapp/resources/demoskins/default/default/default.xsl

    r2494 r2520  
    31373137                          <xsl:attribute name="value"><xsl:value-of select="uid"/></xsl:attribute> 
    31383138                          <xsl:if test="uid = form/categories/current//category/uid"><xsl:attribute name="checked">checked</xsl:attribute></xsl:if> 
    3139                           <xsl:value-of select="keyword"/> 
     3139                          <xsl:value-of select="value"/> 
    31403140                        <br/> 
    31413141                      </xsl:for-each> 
     
    31463146                          <xsl:attribute name="value"><xsl:value-of select="uid"/></xsl:attribute> 
    31473147                          <xsl:if test="uid = form/categories/current//category/uid"><xsl:attribute name="checked">checked</xsl:attribute></xsl:if> 
    3148                           <xsl:value-of select="keyword"/> 
     3148                          <xsl:value-of select="value"/> 
    31493149                        <br/> 
    31503150                      </xsl:for-each> 
     
    45714571                  <li> 
    45724572                    <a href="{$category-fetchForUpdate}&amp;catUid={$catUid}"> 
    4573                       <xsl:value-of select="keyword"/> 
     4573                      <xsl:value-of select="value"/> 
    45744574                    </a> 
    45754575                  </li> 
     
    46494649              </td> 
    46504650              <td> 
    4651                 <xsl:variable name="keyword" select="normalize-space(/bedework/currentCategory/category/keyword)"/> 
    4652                 <input type="text" name="categoryWord.value" value="{$keyword}" size="40"/> 
     4651                <input type="text" name="categoryWord.value" value="" size="40"> 
     4652                  <xsl:attribute name="value"><xsl:value-of select="normalize-space(/bedework/currentCategory/category/value)"/></xsl:attribute> 
     4653                </input> 
    46534654              </td> 
    46544655            </tr> 
     
    46984699        </td> 
    46994700        <td> 
    4700           <xsl:value-of select="/bedework/currentCategory/category/keyword"/> 
     4701          <xsl:value-of select="/bedework/currentCategory/category/value"/> 
    47014702        </td> 
    47024703      </tr>