Changeset 2520
- Timestamp:
- 12/19/09 23:12:55
- Files:
-
- trunk/deployment/feeder/webapp/resources/demoskins/MainCampus/default/default/grid-html.xsl (modified) (16 diffs)
- trunk/deployment/feeder/webapp/resources/demoskins/MainCampus/default/default/grid-json.xsl (modified) (6 diffs)
- trunk/deployment/feeder/webapp/resources/demoskins/MainCampus/default/default/list-html.xsl (modified) (3 diffs)
- trunk/deployment/feeder/webapp/resources/demoskins/MainCampus/default/default/list-json.xsl (modified) (3 diffs)
- trunk/deployment/feeder/webapp/resources/demoskins/MainCampus/default/default/tofreshen/json-list-src.xsl (modified) (1 diff)
- trunk/deployment/feeder/webapp/resources/demoskins/MainCampus/default/default/tofreshen/list-json-obj.xsl (modified) (1 diff)
- trunk/deployment/feeder/webapp/resources/demoskins/MainCampus/default/default/widget-json-cats.xsl (modified) (4 diffs)
- trunk/deployment/webadmin/webapp/resources/default/default/default.xsl (modified) (30 diffs)
- trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/themes/bedeworkTheme/search.xsl (modified) (4 diffs)
- trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/themes/bwclassicTheme/bwclassic.xsl (modified) (1 diff)
- trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/themes/iphone/default.xsl (modified) (1 diff)
- trunk/deployment/webpublic/webapp/resources/demoskins/SoEDepartmental/default/default/default.xsl (modified) (2 diffs)
- trunk/deployment/websubmit/webapp/resources/demoskins/default/default/default.xsl (modified) (2 diffs)
- trunk/deployment/webuser/webapp/resources/demoskins/default/default/default.xsl (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/deployment/feeder/webapp/resources/demoskins/MainCampus/default/default/grid-html.xsl
r2502 r2520 30 30 to the maximum extent the law permits. --> 31 31 32 <!-- Bring in settings --> 32 <!-- Bring in settings --> 33 33 <xsl:include href="./config.xsl"/> 34 34 … … 52 52 <html lang="en"> 53 53 <head> 54 <title><xsl:copy-of select="$bwStr-Root-PageTitle"/></title> 54 <title><xsl:copy-of select="$bwStr-Root-PageTitle"/></title> 55 55 <meta content="text/html;charset=utf-8" http-equiv="Content-Type" /> 56 56 <!-- load css --> … … 127 127 </html> 128 128 </xsl:template> 129 129 130 130 <!--==== SINGLE EVENT ====--> 131 131 <xsl:template match="event"> … … 417 417 <td class="fieldval"> 418 418 <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> 420 420 </xsl:for-each> 421 421 </td> … … 454 454 <xsl:variable name="date" select="date"/> 455 455 <!-- <a href="{$listEvents}&startDate={$date}&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 485 485 </td> 486 486 </tr> 487 487 </xsl:if> 488 488 <xsl:for-each select="event"> 489 489 490 490 <xsl:variable name="id" select="id"/> 491 491 <xsl:variable name="calPath" select="calendar/encodedPath"/> … … 542 542 </td> 543 543 <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> 545 545 <!-- <a href="{$eventView}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}">-</a> --> 546 546 </td> 547 547 <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}"> 549 549 <!-- <a href="{$eventView}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}"> --> 550 550 <xsl:choose> … … 585 585 <xsl:choose> 586 586 <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}"> 588 588 <!-- ><a href="{$eventView}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}"> --> 589 589 <strong> … … 623 623 <xsl:otherwise> 624 624 <!-- ><a href="{$eventView}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}"> --> 625 <a href="{$bwCacheHostUrl}/v1.0/event/list-html/{$recurrenceId}/{$guid}">625 <a href="{$bwCacheHostUrl}/v1.0/event/list-html/{$recurrenceId}/{$guid}"> 626 626 <xsl:value-of select="summary"/> 627 627 <xsl:if test="location/address != ''">, <xsl:value-of select="location/address"/></xsl:if> … … 672 672 <option> 673 673 <xsl:attribute name="value"><xsl:value-of select="id"/></xsl:attribute> 674 <xsl:value-of select=" keyword"/>674 <xsl:value-of select="value"/> 675 675 </option> 676 676 </xsl:for-each> … … 766 766 <xsl:copy-of select="$bwStr-LsEv-Categories"/> 767 767 <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> 769 769 </xsl:for-each> 770 770 </xsl:if> … … 828 828 <xsl:variable name="dayDate" select="date"/> 829 829 <!-- ><a href="{$setViewPeriod}&viewType=dayView&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"> 831 831 <xsl:value-of select="value"/> 832 832 </a> 833 833 <xsl:if test="event"> 834 834 <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> 861 861 </ul> 862 862 </xsl:if> … … 891 891 <xsl:variable name="dayDate" select="date"/> 892 892 <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> 919 919 <xsl:if test="event"> 920 920 <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> 947 947 </ul> 948 948 </xsl:if> … … 983 983 <li> 984 984 <!-- <a href="{$eventView}&calPath={$calPath}&guid={$guid}&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}"> 986 986 <xsl:if test="status='CANCELLED'"><xsl:copy-of select="$bwStr-EvCG-CanceledColon"/><xsl:text> </xsl:text></xsl:if> 987 987 <xsl:choose> … … 1000 1000 <xsl:choose> 1001 1001 <xsl:when test="$dayPos > 5"> 1002 eventTipReverse1003 </xsl:when>1002 eventTipReverse 1003 </xsl:when> 1004 1004 <xsl:otherwise> 1005 eventTip1006 </xsl:otherwise>1005 eventTip 1006 </xsl:otherwise> 1007 1007 </xsl:choose> 1008 1008 </xsl:variable> … … 1137 1137 </xsl:template> 1138 1138 1139 <!--==== CALENDARS ====--> 1139 <!--==== CALENDARS ====--> 1140 1140 1141 1141 <!-- calendar export page --> … … 1183 1183 1184 1184 <xsl:template name="processGrpAndCats"> 1185 <xsl:param name="list" /> 1185 <xsl:param name="list" /> 1186 1186 <xsl:param name="dayPos" /> 1187 <xsl:variable name="group" select="substring-before($list, '~')" /> 1187 <xsl:variable name="group" select="substring-before($list, '~')" /> 1188 1188 <xsl:variable name="remaining" select="substring-after($list, '~')" /> 1189 1189 <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" /> 1193 1193 </xsl:call-template> 1194 1194 </xsl:template> 1195 1195 1196 1196 <xsl:template name="processCategories"> 1197 <xsl:param name="group" />1198 <xsl:param name="list" /> 1197 <xsl:param name="group" /> 1198 <xsl:param name="list" /> 1199 1199 <xsl:param name="dayPos" /> 1200 1200 <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> 1261 1261 </xsl:template> 1262 1262 trunk/deployment/feeder/webapp/resources/demoskins/MainCampus/default/default/grid-json.xsl
r2472 r2520 2 2 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> 3 3 <xsl:output method="html" omit-xml-declaration="yes" indent="no" media-type="text/javascript" standalone="yes"/> 4 4 5 5 <!-- ********************************************************************** 6 6 Copyright 2009 Rensselaer Polytechnic Institute. All worldwide rights reserved. … … 26 26 Institute, nor the authors of the software are liable for any indirect, 27 27 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. 29 29 --> 30 30 31 31 <!-- DEFINE INCLUDES --> 32 32 <!-- util.xsl belongs in bedework-common on your application server for use 33 by all stylesheets: 33 by all stylesheets: 34 34 --> 35 35 <xsl:include href="../../../bedework-common/default/default/util.xsl"/> 36 36 <xsl:variable name="urlprefix" select="/bedework/urlprefix"/> 37 37 <xsl:variable name="eventView" select="/bedework/urlPrefixes/event/eventView"/> 38 38 39 39 <xsl:template match='/'> 40 40 <xsl:choose> … … 48 48 "year": { 49 49 "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 } 52 52 }} 53 53 </xsl:template> 54 54 55 55 <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, '~')" /> 58 58 <xsl:variable name="remaining" select="substring-after($list, '~')" /> 59 59 <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" /> 62 62 </xsl:call-template> 63 63 </xsl:template> 64 64 65 65 <xsl:template name="processCategories"> 66 <xsl:param name="group" />67 <xsl:param name="list" /> 66 <xsl:param name="group" /> 67 <xsl:param name="list" /> 68 68 <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> 117 117 </xsl:template> 118 118 119 119 <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" : [ 125 125 <xsl:apply-templates select="week" /> 126 126 ] … … 129 129 130 130 <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 139 139 <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> 177 177 178 178 <xsl:template match="event"> … … 243 243 }, 244 244 "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> 246 246 ], 247 247 "description" : "<xsl:value-of select='$strippedDescription'/>", … … 257 257 } 258 258 }<xsl:if test='position() != last()'>,</xsl:if></xsl:for-each> 259 259 260 260 ] 261 261 }<xsl:if test="position() != last()">,</xsl:if> trunk/deployment/feeder/webapp/resources/demoskins/MainCampus/default/default/list-html.xsl
r2502 r2520 38 38 special, consequential, or incidental damages related to the software, 39 39 to the maximum extent the law permits. --> 40 41 <!-- Bring in settings --> 40 41 <!-- Bring in settings --> 42 42 <xsl:include href="./config.xsl"/> 43 43 … … 377 377 <td class="fieldval"> 378 378 <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> 380 380 </xsl:for-each> 381 381 </td> … … 477 477 <xsl:copy-of select="$bwStr-LsEv-Categories"/> 478 478 <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> 480 480 </xsl:for-each> 481 481 </xsl:if> trunk/deployment/feeder/webapp/resources/demoskins/MainCampus/default/default/list-json.xsl
r2422 r2520 53 53 Institute, nor the authors of the software are liable for any indirect, 54 54 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. 56 56 --> 57 57 58 58 <!-- DEFINE INCLUDES --> 59 59 <!-- util.xsl belongs in bedework-common on your application server for use 60 by all stylesheets: 60 by all stylesheets: 61 61 --> 62 62 <xsl:include href="../../../bedework-common/default/default/util.xsl"/> 63 63 <xsl:variable name="urlprefix" select="/bedework/urlprefix"/> 64 64 <xsl:variable name="eventView" select="/bedework/urlPrefixes/event/eventView"/> 65 65 66 66 <xsl:template match='/'> 67 67 <xsl:choose> … … 79 79 </xsl:template> 80 80 81 81 82 82 <xsl:template match="event"> 83 83 <!-- first, escape apostrophes --> … … 147 147 }, 148 148 '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> 150 150 ], 151 151 'description' : '<xsl:value-of select='$strippedDescription'/>', trunk/deployment/feeder/webapp/resources/demoskins/MainCampus/default/default/tofreshen/json-list-src.xsl
r2448 r2520 168 168 }, 169 169 '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> 171 171 ], 172 172 'description' : '<xsl:value-of select='$strippedDescription'/>', trunk/deployment/feeder/webapp/resources/demoskins/MainCampus/default/default/tofreshen/list-json-obj.xsl
r2448 r2520 168 168 }, 169 169 '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> 171 171 ], 172 172 'description' : '<xsl:value-of select='$strippedDescription'/>', trunk/deployment/feeder/webapp/resources/demoskins/MainCampus/default/default/widget-json-cats.xsl
r2416 r2520 43 43 44 44 <xsl:template match='/'> 45 46 <xsl:choose>45 46 <xsl:choose> 47 47 <xsl:when test="/bedework/appvar/key = 'objName'"> 48 48 var <xsl:value-of select="/bedework/appvar[key='objName']/value"/> = {"bwCategories": { … … 51 51 {"bwCategories": { 52 52 </xsl:otherwise> 53 </xsl:choose> 53 </xsl:choose> 54 54 "categories": [ 55 55 <xsl:apply-templates select="/bedework/categories/category"/> … … 62 62 <xsl:variable name="aposStrippedKeyword"> 63 63 <xsl:call-template name="replace"> 64 <xsl:with-param name="string" select=" keyword"/>64 <xsl:with-param name="string" select="value"/> 65 65 <xsl:with-param name="pattern" select='"'"'/> 66 66 <xsl:with-param name="replacement" select='"\'"'/> … … 71 71 <!-- finally, produce the JSON output --> 72 72 { 73 " keyword" : "<xsl:value-of select="$strippedKeyword"/>",73 "value" : "<xsl:value-of select="$strippedKeyword"/>", 74 74 "id" : "<xsl:value-of select="id"/>", 75 "uid" : "<xsl:value-of select="uid"/>", 75 76 "creator" : "<xsl:value-of select="creator"/>" 76 77 }<xsl:if test="position() != last()">,</xsl:if> trunk/deployment/webadmin/webapp/resources/default/default/default.xsl
r2518 r2520 986 986 <xsl:attribute name="selected">selected</xsl:attribute> 987 987 </xsl:if> 988 <xsl:value-of select=" keyword"/>988 <xsl:value-of select="value"/> 989 989 </option> 990 990 </xsl:for-each> … … 1143 1143 <td class="calcat"> 1144 1144 <xsl:for-each select="categories/category"> 1145 <xsl:value-of select=" keyword"/><br/>1145 <xsl:value-of select="value"/><br/> 1146 1146 </xsl:for-each> 1147 1147 </td> … … 2616 2616 <td> 2617 2617 <xsl:for-each select="form/categories/preferred/category[position() <= ceiling($catCount div 2)]"> 2618 <xsl:sort select=" keyword" order="ascending"/>2618 <xsl:sort select="value" order="ascending"/> 2619 2619 <input type="checkbox" name="catUid"> 2620 2620 <xsl:attribute name="value"><xsl:value-of select="uid"/></xsl:attribute> … … 2625 2625 <xsl:attribute name="disabled">disabled</xsl:attribute> 2626 2626 </xsl:if> 2627 <xsl:value-of select=" keyword"/>2627 <xsl:value-of select="value"/> 2628 2628 </input><br/> 2629 2629 </xsl:for-each> … … 2631 2631 <td> 2632 2632 <xsl:for-each select="form/categories/preferred/category[position() > ceiling($catCount div 2)]"> 2633 <xsl:sort select=" keyword" order="ascending"/>2633 <xsl:sort select="value" order="ascending"/> 2634 2634 <input type="checkbox" name="catUid"> 2635 2635 <xsl:attribute name="value"><xsl:value-of select="uid"/></xsl:attribute> … … 2640 2640 <xsl:attribute name="disabled">disabled</xsl:attribute> 2641 2641 </xsl:if> 2642 <xsl:value-of select=" keyword"/>2642 <xsl:value-of select="value"/> 2643 2643 </input><br/> 2644 2644 </xsl:for-each> … … 2667 2667 </xsl:if> 2668 2668 </xsl:if> 2669 <xsl:value-of select=" keyword"/>2669 <xsl:value-of select="value"/> 2670 2670 </input><br/> 2671 2671 </xsl:for-each> … … 2685 2685 </xsl:if> 2686 2686 </xsl:if> 2687 <xsl:value-of select=" keyword"/>2687 <xsl:value-of select="value"/> 2688 2688 </input><br/> 2689 2689 </xsl:for-each> … … 3626 3626 <td> 3627 3627 <a href="{$category-fetchForUpdate}&catUid={$catUid}"> 3628 <xsl:value-of select=" keyword"/>3628 <xsl:value-of select="value"/> 3629 3629 </a> 3630 3630 </td> … … 3677 3677 </td> 3678 3678 <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> 3681 3682 </td> 3682 3683 </tr> … … 3718 3719 </td> 3719 3720 <td> 3720 <xsl:value-of select="/bedework/currentCategory/category/ keyword"/>3721 <xsl:value-of select="/bedework/currentCategory/category/value"/> 3721 3722 </td> 3722 3723 </tr> … … 3742 3743 <ul class="catlist"> 3743 3744 <xsl:for-each select="/bedework/categories/current/category"> 3744 <xsl:sort select=" keyword" order="ascending"/>3745 <xsl:sort select="value" order="ascending"/> 3745 3746 <li> 3746 3747 <input type="checkbox" name="catUid" checked="checked"> 3747 3748 <xsl:attribute name="value"><xsl:value-of select="uid"/></xsl:attribute> 3748 3749 </input> 3749 <xsl:value-of select=" keyword"/>3750 <xsl:value-of select="value"/> 3750 3751 </li> 3751 3752 </xsl:for-each> … … 3757 3758 <ul class="catlist"> 3758 3759 <xsl:for-each select="/bedework/categories/all/category"> 3759 <xsl:sort select=" keyword" order="ascending"/>3760 <xsl:sort select="value" order="ascending"/> 3760 3761 <!-- don't duplicate the selected categories --> 3761 3762 <xsl:if test="not(uid = ../../current//category/uid)"> … … 3764 3765 <xsl:attribute name="value"><xsl:value-of select="uid"/></xsl:attribute> 3765 3766 </input> 3766 <xsl:value-of select=" keyword"/>3767 <xsl:value-of select="value"/> 3767 3768 </li> 3768 3769 </xsl:if> … … 3999 4000 <ul class="catlist"> 4000 4001 <xsl:for-each select="/bedework/categories/all/category"> 4001 <xsl:sort select=" keyword" order="ascending"/>4002 <xsl:sort select="value" order="ascending"/> 4002 4003 <li> 4003 4004 <input type="checkbox" name="filterCatUid"> 4004 4005 <xsl:attribute name="value"><xsl:value-of select="uid"/></xsl:attribute> 4005 <xsl:value-of select=" keyword"/>4006 <xsl:value-of select="value"/> 4006 4007 </input> 4007 4008 </li> … … 4020 4021 <ul class="catlist"> 4021 4022 <xsl:for-each select="/bedework/categories/all/category"> 4022 <xsl:sort select=" keyword" order="ascending"/>4023 <xsl:sort select="value" order="ascending"/> 4023 4024 <li> 4024 4025 <input type="checkbox" name="catUid"> … … 4028 4029 <xsl:attribute name="disabled">disabled</xsl:attribute> 4029 4030 </xsl:if> 4030 <xsl:value-of select=" keyword"/>4031 <xsl:value-of select="value"/> 4031 4032 </input> 4032 4033 </li> … … 4226 4227 <ul class="catlist"> 4227 4228 <xsl:for-each select="/bedework/categories/all/category"> 4228 <xsl:sort select=" keyword" order="ascending"/>4229 <xsl:sort select="value" order="ascending"/> 4229 4230 <xsl:if test="contains($filterUids,uid)"> 4230 4231 <li> 4231 4232 <input type="checkbox" name="filterCatUid" checked="checked"> 4232 4233 <xsl:attribute name="value"><xsl:value-of select="uid"/></xsl:attribute> 4233 <xsl:value-of select=" keyword"/>4234 <xsl:value-of select="value"/> 4234 4235 </input> 4235 4236 </li> … … 4249 4250 <ul class="catlist"> 4250 4251 <xsl:for-each select="/bedework/categories/all/category"> 4251 <xsl:sort select=" keyword" order="ascending"/>4252 <xsl:sort select="value" order="ascending"/> 4252 4253 <!-- don't duplicate the selected filters --> 4253 4254 <xsl:if test="not(contains($filterUids,uid))"> … … 4255 4256 <input type="checkbox" name="filterCatUid"> 4256 4257 <xsl:attribute name="value"><xsl:value-of select="uid"/></xsl:attribute> 4257 <xsl:value-of select=" keyword"/>4258 <xsl:value-of select="value"/> 4258 4259 </input> 4259 4260 </li> … … 4270 4271 <ul class="catlist"> 4271 4272 <xsl:for-each select="/bedework/categories/current/category"> 4272 <xsl:sort select=" keyword" order="ascending"/>4273 <xsl:sort select="value" order="ascending"/> 4273 4274 <li> 4274 4275 <input type="checkbox" name="catUid" checked="checked"> … … 4277 4278 <xsl:attribute name="disabled">disabled</xsl:attribute> 4278 4279 </xsl:if> 4279 <xsl:value-of select=" keyword"/>4280 <xsl:value-of select="value"/> 4280 4281 </input> 4281 4282 </li> … … 4288 4289 <ul class="catlist"> 4289 4290 <xsl:for-each select="/bedework/categories/all/category"> 4290 <xsl:sort select=" keyword" order="ascending"/>4291 <xsl:sort select="value" order="ascending"/> 4291 4292 <!-- don't duplicate the selected categories --> 4292 4293 <xsl:if test="not(uid = ../../current//category/uid)"> … … 4295 4296 <xsl:attribute name="value"><xsl:value-of select="uid"/></xsl:attribute> 4296 4297 </input> 4297 <xsl:value-of select=" keyword"/>4298 <xsl:value-of select="value"/> 4298 4299 </li> 4299 4300 </xsl:if> … … 4978 4979 <ul class="catlist"> 4979 4980 <xsl:for-each select="/bedework/categories/all/category"> 4980 <xsl:sort select=" keyword" order="ascending"/>4981 <xsl:sort select="value" order="ascending"/> 4981 4982 <li> 4982 4983 <input type="checkbox" name="filterCatUid"> 4983 4984 <xsl:attribute name="value"><xsl:value-of select="uid"/></xsl:attribute> 4984 <xsl:value-of select=" keyword"/>4985 <xsl:value-of select="value"/> 4985 4986 </input> 4986 4987 </li> … … 4999 5000 <ul class="catlist"> 5000 5001 <xsl:for-each select="/bedework/categories/all/category"> 5001 <xsl:sort select=" keyword" order="ascending"/>5002 <xsl:sort select="value" order="ascending"/> 5002 5003 <li> 5003 5004 <input type="checkbox" name="catUid"> … … 5007 5008 <xsl:attribute name="disabled">disabled</xsl:attribute> 5008 5009 </xsl:if> 5009 <xsl:value-of select=" keyword"/>5010 <xsl:value-of select="value"/> 5010 5011 </input> 5011 5012 </li> … … 6003 6004 <ul class="catlist"> 6004 6005 <xsl:for-each select="/bedework/categories/current/category"> 6005 <xsl:sort select=" keyword" order="ascending"/>6006 <xsl:sort select="value" order="ascending"/> 6006 6007 <li> 6007 6008 <input type="checkbox" name="defaultCategory" checked="checked"> 6008 6009 <xsl:attribute name="value"><xsl:value-of select="uid"/></xsl:attribute> 6009 <xsl:value-of select=" keyword"/>6010 <xsl:value-of select="value"/> 6010 6011 </input> 6011 6012 </li> … … 6018 6019 <ul class="catlist"> 6019 6020 <xsl:for-each select="/bedework/categories/all/category"> 6020 <xsl:sort select=" keyword" order="ascending"/>6021 <xsl:sort select="value" order="ascending"/> 6021 6022 <!-- don't duplicate the selected categories --> 6022 6023 <xsl:if test="not(uid = ../../current//category/uid)"> … … 6024 6025 <input type="checkbox" name="defaultCategory"> 6025 6026 <xsl:attribute name="value"><xsl:value-of select="uid"/></xsl:attribute> 6026 <xsl:value-of select=" keyword"/>6027 <xsl:value-of select="value"/> 6027 6028 </input> 6028 6029 </li> trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/themes/bedeworkTheme/search.xsl
r2511 r2520 212 212 <ul> 213 213 <xsl:for-each 214 select="/bedework/categories/category[(position() <= ceiling($catCount div 2)) and ( keyword != 'Local') and (creator != 'agrp_public-user') and (keyword != 'Main') and (keyword != 'Student') and (keyword!= 'calCrossPublish')]">214 select="/bedework/categories/category[(position() <= ceiling($catCount div 2)) and (value != 'Local') and (creator != 'agrp_public-user') and (value != 'Main') and (value != 'Student') and (value != 'calCrossPublish')]"> 215 215 <xsl:variable name="currId" 216 select=" keyword" />216 select="value" /> 217 217 <li> 218 218 <p> … … 220 220 name="categoryKey" value="{$currId}" /> 221 221 <xsl:value-of 222 select=" keyword" />222 select="value" /> 223 223 </p> 224 224 </li> … … 229 229 <ul> 230 230 <xsl:for-each 231 select="/bedework/categories/category[(position() > ceiling($catCount div 2)) and ( keyword != 'Local') and (creator != 'agrp_public-user') and (keyword != 'Main') and (keyword != 'Student') and (keyword!= 'calCrossPublish')]">231 select="/bedework/categories/category[(position() > ceiling($catCount div 2)) and (value != 'Local') and (creator != 'agrp_public-user') and (value != 'Main') and (value != 'Student') and (value != 'calCrossPublish')]"> 232 232 <xsl:variable name="currId2" 233 select=" keyword" />233 select="value" /> 234 234 <li> 235 235 <p> … … 237 237 name="categoryKey" value="{$currId2}" /> 238 238 <xsl:value-of 239 select=" keyword" />239 select="value" /> 240 240 </p> 241 241 </li> trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/themes/bwclassicTheme/bwclassic.xsl
r2517 r2520 776 776 <option> 777 777 <xsl:attribute name="value"><xsl:value-of select="id"/></xsl:attribute> 778 <xsl:value-of select=" keyword"/>778 <xsl:value-of select="value"/> 779 779 </option> 780 780 </xsl:for-each> trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/themes/iphone/default.xsl
r2505 r2520 465 465 <td class="fieldval"> 466 466 <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> 468 468 </xsl:for-each> 469 469 </td> trunk/deployment/webpublic/webapp/resources/demoskins/SoEDepartmental/default/default/default.xsl
r2448 r2520 853 853 <td class="fieldval"> 854 854 <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> 856 856 </xsl:for-each> 857 857 </td> … … 1152 1152 <xsl:copy-of select="$bwStr-LsEv-Categories"/> 1153 1153 <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> 1155 1155 </xsl:for-each> 1156 1156 </xsl:if> trunk/deployment/websubmit/webapp/resources/demoskins/default/default/default.xsl
r2358 r2520 1085 1085 <xsl:attribute name="value"><xsl:value-of select="uid"/></xsl:attribute> 1086 1086 <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"/> 1088 1088 </input><br/> 1089 1089 </xsl:for-each> … … 1094 1094 <xsl:attribute name="value"><xsl:value-of select="uid"/></xsl:attribute> 1095 1095 <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"/> 1097 1097 </input><br/> 1098 1098 </xsl:for-each> trunk/deployment/webuser/webapp/resources/demoskins/default/default/default.xsl
r2494 r2520 3137 3137 <xsl:attribute name="value"><xsl:value-of select="uid"/></xsl:attribute> 3138 3138 <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"/> 3140 3140 <br/> 3141 3141 </xsl:for-each> … … 3146 3146 <xsl:attribute name="value"><xsl:value-of select="uid"/></xsl:attribute> 3147 3147 <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"/> 3149 3149 <br/> 3150 3150 </xsl:for-each> … … 4571 4571 <li> 4572 4572 <a href="{$category-fetchForUpdate}&catUid={$catUid}"> 4573 <xsl:value-of select=" keyword"/>4573 <xsl:value-of select="value"/> 4574 4574 </a> 4575 4575 </li> … … 4649 4649 </td> 4650 4650 <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> 4653 4654 </td> 4654 4655 </tr> … … 4698 4699 </td> 4699 4700 <td> 4700 <xsl:value-of select="/bedework/currentCategory/category/ keyword"/>4701 <xsl:value-of select="/bedework/currentCategory/category/value"/> 4701 4702 </td> 4702 4703 </tr>
