Changeset 2559
- Timestamp:
- 12/26/09 12:09:58
- Files:
-
- trunk/deployment/feeder/webapp/resources/demoskins/MainCampus/default/default/grid-json.xsl (modified) (1 diff)
- trunk/deployment/feeder/webapp/resources/demoskins/MainCampus/default/default/list-json.xsl (modified) (1 diff)
- trunk/deployment/feeder/webapp/resources/demoskins/MainCampus/default/default/list-rss.xsl (modified) (4 diffs)
- trunk/deployment/feeder/webapp/resources/demoskins/MainCampus/default/default/xsl/categoryFiltering.xsl (added)
- trunk/deployment/feeder/webapp/resources/demoskins/MainCampus/default/default/xsl/jsonCategoryFiltering.xsl (deleted)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/deployment/feeder/webapp/resources/demoskins/MainCampus/default/default/grid-json.xsl
r2557 r2559 34 34 <xsl:include href="./xsl/jsonEvent.xsl"/> 35 35 <!-- Provides category filter templates --> 36 <xsl:include href="./xsl/ jsonCategoryFiltering.xsl"/>36 <xsl:include href="./xsl/categoryFiltering.xsl"/> 37 37 38 38 <!-- global variables --> trunk/deployment/feeder/webapp/resources/demoskins/MainCampus/default/default/list-json.xsl
r2557 r2559 40 40 <xsl:include href="./xsl/jsonEvent.xsl"/> 41 41 <!-- Provides category filter templates --> 42 <xsl:include href="./xsl/ jsonCategoryFiltering.xsl"/>42 <xsl:include href="./xsl/categoryFiltering.xsl"/> 43 43 44 44 <!-- global variables --> trunk/deployment/feeder/webapp/resources/demoskins/MainCampus/default/default/list-rss.xsl
r2549 r2559 1 1 <?xml version="1.0" encoding="UTF-8"?> 2 2 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> 3 <xsl:output 4 method="xml" 5 omit-xml-declaration="no" 6 indent="yes" 3 <xsl:output method="xml" omit-xml-declaration="no" indent="yes" 7 4 doctype-public="'-//Netscape Communications//DTD RSS 0.91//EN' 'http://my.netscape.com/public/formats/rss-0.91.dtd'" 8 media-type="text/xml" 9 encoding="UTF-8" 10 /> 5 media-type="text/xml" encoding="UTF-8" /> 11 6 <!-- ========================================================= 12 7 … … 22 17 Optional parameters that may be added to the query string: 23 18 24 days=n return n days from today into the future. 25 Example: http://localhost:8080/feeder/main/listEvents.do?setappvar=summaryMode(details)&skinName=list-rss&days=5 26 19 days=n To return n days from today into the future add this to the paramater list: &days=5 27 20 28 21 =============================================================== --> … … 52 45 to the maximum extent the law permits. --> 53 46 47 <!-- Provides category filter templates --> 48 <xsl:include href="./xsl/categoryFiltering.xsl"/> 49 54 50 <xsl:template match="/"> 55 51 <rss version="2.0"> … … 75 71 <xsl:apply-templates select="/bedework/searchResults/searchResult"/> 76 72 </xsl:when> 77 <xsl:otherwise> 78 <xsl:apply-templates select="/bedework/events/event"/> 73 <xsl:otherwise> 74 <xsl:choose> 75 <xsl:when test="/bedework/appvar/key = 'filter'"> 76 <xsl:variable name="filterName" select="substring-before(/bedework/appvar[key='filter']/value,':')"/> 77 <xsl:variable name="filterVal" select="substring-after(/bedework/appvar[key='filter']/value,':')"/> 78 <!-- Define filters here: --> 79 <xsl:choose> 80 <xsl:when test="$filterName = 'grpAndCats'"> 81 <xsl:call-template name="preprocessCats"> 82 <xsl:with-param name="allCats" select="$filterVal"/> 83 </xsl:call-template> 84 </xsl:when> 85 <xsl:otherwise> 86 <!-- Filter name not defined? Turn off filtering. --> 87 <xsl:apply-templates select="event"/> 88 </xsl:otherwise> 89 </xsl:choose> 90 </xsl:when> 91 <xsl:otherwise> 92 <xsl:apply-templates select="event"/> 93 </xsl:otherwise> 94 </xsl:choose> 79 95 </xsl:otherwise> 80 96 </xsl:choose>
