Changeset 25064 in main


Ignore:
Timestamp:
04/14/22 19:00:34 (5 weeks ago)
Author:
GarthBraithwaite_STG
Message:

view - Cleared NM Page.communityNames selections back to dims that have a community flag.

Location:
trunk/ibisph-view/src/main/webapp/xslt
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ibisph-view/src/main/webapp/xslt/html/community/Page.xslt

    r24330 r25064  
    7272        />
    7373
    74         <!-- GARTH TODO: discuss with Lois/CoP
    75                 Implemented as a simple list so that adopters can override
     74        <!--
     75                Parameter to control which communities show up in the selection list.
     76                This is needed for NM because IBIS and EPHT share the same dimensions
     77                of which EPHT only wants to use a few. 
     78                To implement an override / specify which dim names set the parameter
     79                with a simple CSV list as shown below (or collection of NAME elements):
     80
     81                xsl:param name="Page.communityNames" select="'GeoCnty', 'GeoRegion',
     82                'GeoSarea', 'GeoSchDist', 'RacEthDOH', 'Sex', 'SexualOrientation',
     83                'Income5Grps'"
     84
    7685                -or-
    77                 adopters can simply deselect the COMMUNITY_FLAG in the db for those
    78                 dimensions they don't want to be considered a community.
    79                 xsl:param name="Page.communityNames" select="$Page.dimensions/DIMENSION[exists(COMMUNITY_FLAG)]/NAME"
     86                The preferred way is for adopters to only set the COMMUNITY_FLAG (admin
     87                app) for those dimensions they want to be treated as a community.
    8088        -->
    81         <xsl:param name="Page.communityNames" select="'GeoCnty', 'GeoRegion',
    82                 'GeoSarea', 'GeoSchDist', 'RacEthDOH', 'Sex', 'SexualOrientation',
    83                 'Income5Grps'
    84         "/>
     89        <xsl:param name="Page.communityNames" select="$Page.dimensions/DIMENSION[COMMUNITY_FLAG = 'x']/NAME"/>
    8590
    8691        <xsl:param name="DimensionName"/>
     
    246251
    247252                        <table class="ListTable">
    248 
    249253                                <xsl:if test="(1 lt count($Page.communityNames)) and ('facts' != $communityReportType)">
    250254                                <tr>
  • trunk/ibisph-view/src/main/webapp/xslt/json/xml-to-json.xslt

    r18604 r25064  
    11<?xml version="1.0" encoding="utf-8"?>
    2 <xsl:stylesheet version="2.0"
     2<xsl:stylesheet version="3.0"
    33  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    44  xmlns:xs="http://www.w3.org/2001/XMLSchema"
Note: See TracChangeset for help on using the changeset viewer.