Changeset 6563 in main
- Timestamp:
- 06/22/14 19:01:32 (8 years ago)
- Location:
- adopters/nm/trunk/src/main/webapps/ibisph-view/xslt/html/phom/profile
- Files:
-
- 4 deleted
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
adopters/nm/trunk/src/main/webapps/ibisph-view/xslt/html/phom/profile/Graphic.xslt
r5477 r6563 113 113 114 114 <xsl:if test="string-length($indicatorView/SUPPLEMENTAL_IMAGE_URL) != 0"> 115 < xsl:if test="string-length($indicatorView/SUPPLEMENTAL_IMAGE_TITLE) != 0">115 <!--<xsl:if test="string-length($indicatorView/SUPPLEMENTAL_IMAGE_TITLE) != 0"> 116 116 <h2><xsl:value-of select="$indicatorView/SUPPLEMENTAL_IMAGE_TITLE"/></h2> 117 </xsl:if> 117 </xsl:if>--> 118 118 <img width="590" src="{$indicatorView/SUPPLEMENTAL_IMAGE_URL}"/> 119 119 <br/> -
adopters/nm/trunk/src/main/webapps/ibisph-view/xslt/html/phom/profile/SAEpi1/Page.xslt
r6214 r6563 16 16 <ibis:doc> 17 17 <name>html/phom/profile/expanded/Page</name> 18 <summary> Default core code that produces the PHOM exanded profile view</summary>18 <summary>Code for New Mexico Substance Abuse Epi report used with Mortality data</summary> 19 19 <description> 20 20 Provides overridden HTML API templates, the imports so that … … 36 36 Substance Abuse Epidemiology Profile for <xsl:value-of select="$indicator/TITLE"/> 37 37 </xsl:param> 38 39 <xsl:param name="Page.frequencyTitle" ibis:doc="Table 2 counts header based on data type.">Deaths</xsl:param> 40 <xsl:param name="Page.rateTitle" ibis:doc="Table 2 rates header based on data type.">Rates</xsl:param> 38 41 39 42 <xsl:template name="Indicator.whyImportant" … … 54 57 <!--Selects the indicator_view.xml document for the default indicator view, and then goes to the INDICATOR_VIEW element. --> 55 58 <!-- URL from TOC gives the indicator name - according to Lois --> 56 <xsl:variable name="defaultIndicatorView" select="document(concat(/INDICATOR/DEFAULT_INDICATOR_VIEW_NAME, '.xml'), /)/INDICATOR_VIEW"/>57 <xsl:variable name="ageSexRaceIndicatorView" select="document(concat(/INDICATOR/NAME, '.Age.SexRacEth', '.xml'), /)/INDICATOR_VIEW"/>58 <xsl:variable name="cntyRaceIndicatorView" select="document(concat(/INDICATOR/NAME, '.Cnty.Race', '.xml'), /)/INDICATOR_VIEW"/>59 <xsl:variable name="cntyIndicatorView" select="document(concat(/INDICATOR/NAME, '.Cnty', '.xml'), /)/INDICATOR_VIEW"/>59 <xsl:variable name="defaultIndicatorView" select="document(concat(/INDICATOR/DEFAULT_INDICATOR_VIEW_NAME, '.xml'), /)/INDICATOR_VIEW"/> 60 <xsl:variable name="ageSexRaceIndicatorView" select="document(concat(/INDICATOR/NAME, '.Age.SexRacEth', '.xml'), /)/INDICATOR_VIEW"/> 61 <xsl:variable name="cntyRaceIndicatorView" select="document(concat(/INDICATOR/NAME, '.Cnty.RacEth', '.xml'), /)/INDICATOR_VIEW"/> 62 <xsl:variable name="cntyIndicatorView" select="document(concat(/INDICATOR/NAME, '.Cnty', '.xml'), /)/INDICATOR_VIEW"/> 60 63 <xsl:variable name="defaultIndicatorViewName" select="document(concat(current(), '.xml'), /)/DEFAULT_INDICATOR_VIEW_NAME"/> 61 <xsl:variable name="sareaIndicatorView" select="document(concat(/INDICATOR/NAME, '.Sarea', '.xml'), /)/INDICATOR_VIEW"/> 62 64 <xsl:variable name="sareaIndicatorView" select="document(concat(/INDICATOR/NAME, '.Sarea', '.xml'), /)/INDICATOR_VIEW"/> 63 65 64 66 <!-- debug … … 158 160 </xsl:call-template> 159 161 160 <!--LMH Data Table for Cnty.Rac eView -->162 <!--LMH Data Table for Cnty.RacEth View --> 161 163 <h2 class="ColoredBlock"> 162 164 Table 2. <xsl:value-of select="concat($indicatorView/TITLE, ' ', $indicatorView/SUB_TITLE, ' ', $indicatorView/PERIOD_TITLE)"/> … … 221 223 222 224 <!--LMH Supplemental image for County Indicator View, .cnty indicator view, supplemental image--> 223 <h2 class="ColoredBlock"> 224 Chart 3. <xsl:value-of select="concat($indicatorView/TITLE, ' ', $indicatorView/SUB_TITLE, ' ', $indicatorView/PERIOD_TITLE)"/> 225 </h2> 226 <xsl:call-template name="Graphic.supplementalImage"> 227 <xsl:with-param name="indicatorView" select="$indicatorView"/> 228 </xsl:call-template> 229 230 <!-- Data Notes --> 231 <xsl:call-template name="Indicator.dataNotes"> 232 <xsl:with-param name="indicatorDataNote" select="$indicator/DATA_NOTE"/> 233 <xsl:with-param name="indicatorViewDataNote" select="$indicatorView/DATA_NOTE"/> 234 </xsl:call-template> 235 236 <!-- Data Sources --> 237 <xsl:call-template name="Indicator.dataSources"> 238 <xsl:with-param name="indicatorDataSources" select="$indicator/DATA_SOURCES"/> 239 <xsl:with-param name="indicatorViewDataSources" select="$indicatorView/DATA_SOURCES"/> 240 </xsl:call-template> 225 <xsl:if test="string-length($indicatorView/SUPPLEMENTAL_IMAGE_URL) != 0"> 226 <h2 class="ColoredBlock"> 227 Chart 3. <xsl:value-of select="concat($indicatorView/TITLE, ' ', $indicatorView/SUB_TITLE, ' ', $indicatorView/PERIOD_TITLE)"/> 228 </h2> 229 <xsl:call-template name="Graphic.supplementalImage"> 230 <xsl:with-param name="indicatorView" select="$indicatorView"/> 231 </xsl:call-template> 232 233 <!-- Data Notes --> 234 <xsl:call-template name="Indicator.dataNotes"> 235 <xsl:with-param name="indicatorDataNote" select="$indicator/DATA_NOTE"/> 236 <xsl:with-param name="indicatorViewDataNote" select="$indicatorView/DATA_NOTE"/> 237 </xsl:call-template> 238 239 <!-- Data Sources --> 240 <xsl:call-template name="Indicator.dataSources"> 241 <xsl:with-param name="indicatorDataSources" select="$indicator/DATA_SOURCES"/> 242 <xsl:with-param name="indicatorViewDataSources" select="$indicatorView/DATA_SOURCES"/> 243 </xsl:call-template> 244 </xsl:if> 241 245 242 246 <!--LMH - Changing indicator view for next table or chart --> -
adopters/nm/trunk/src/main/webapps/ibisph-view/xslt/html/phom/profile/SAEpi2/Page.xslt
r6214 r6563 16 16 <ibis:doc> 17 17 <name>html/phom/profile/expanded/Page</name> 18 <summary> Default core code that produces the PHOM exanded profile view</summary>18 <summary>Code for New Mexico Substance Abuse Epi report used with BRFSS data</summary> 19 19 <description> 20 20 Provides overridden HTML API templates, the imports so that … … 36 36 Substance Abuse Epidemiology Profile for <xsl:value-of select="$indicator/TITLE"/> 37 37 </xsl:param> 38 39 <xsl:param name="Page.frequencyTitle" ibis:doc="Table 2 counts header based on data type.">Unweighted Survey Counts</xsl:param> 40 <xsl:param name="Page.rateTitle" ibis:doc="Table 2 rates header based on data type.">Percentages</xsl:param> 38 41 39 42 <xsl:template name="Indicator.whyImportant" … … 56 59 <xsl:variable name="defaultIndicatorView" select="document(concat(/INDICATOR/DEFAULT_INDICATOR_VIEW_NAME, '.xml'), /)/INDICATOR_VIEW"/> 57 60 <xsl:variable name="ageSexRaceIndicatorView" select="document(concat(/INDICATOR/NAME, '.Age.SexRacEth', '.xml'), /)/INDICATOR_VIEW"/> 58 <xsl:variable name="cntyRaceIndicatorView" select="document(concat(/INDICATOR/NAME, '.Cnty.Rac e', '.xml'), /)/INDICATOR_VIEW"/>61 <xsl:variable name="cntyRaceIndicatorView" select="document(concat(/INDICATOR/NAME, '.Cnty.RacEth', '.xml'), /)/INDICATOR_VIEW"/> 59 62 <xsl:variable name="cntyIndicatorView" select="document(concat(/INDICATOR/NAME, '.Cnty', '.xml'), /)/INDICATOR_VIEW"/> 60 63 <xsl:variable name="defaultIndicatorViewName" select="document(concat(current(), '.xml'), /)/DEFAULT_INDICATOR_VIEW_NAME"/> … … 122 125 <xsl:variable name="indicatorView" select="$ageSexRaceIndicatorView"/> 123 126 124 <!--LMH Data Table for Age.Sex.Rac eView-->127 <!--LMH Data Table for Age.Sex.RacEth View--> 125 128 <h2 class="ColoredBlock"> 126 129 Table 1. <xsl:value-of select="concat($indicatorView/TITLE, ' ', $indicatorView/SUB_TITLE, ' ', $indicatorView/PERIOD_TITLE)"/> … … 158 161 </xsl:call-template> 159 162 160 <!--LMH Data Table for Cnty.Rac eView -->163 <!--LMH Data Table for Cnty.RacRth View --> 161 164 <h2 class="ColoredBlock"> 162 165 Table 2. <xsl:value-of select="concat($indicatorView/TITLE, ' ', $indicatorView/SUB_TITLE, ' ', $indicatorView/PERIOD_TITLE)"/> … … 221 224 222 225 <!--LMH Supplemental image for County Indicator View, .cnty indicator view, supplemental image--> 223 <h2 class="ColoredBlock"> 224 Chart 3. <xsl:value-of select="concat($indicatorView/TITLE, ' ', $indicatorView/SUB_TITLE, ' ', $indicatorView/PERIOD_TITLE)"/> 225 </h2> 226 <xsl:call-template name="Graphic.supplementalImage"> 227 <xsl:with-param name="indicatorView" select="$indicatorView"/> 228 </xsl:call-template> 229 230 <!-- Data Notes --> 231 <xsl:call-template name="Indicator.dataNotes"> 232 <xsl:with-param name="indicatorDataNote" select="$indicator/DATA_NOTE"/> 233 <xsl:with-param name="indicatorViewDataNote" select="$indicatorView/DATA_NOTE"/> 234 </xsl:call-template> 235 236 <!-- Data Sources --> 237 <xsl:call-template name="Indicator.dataSources"> 238 <xsl:with-param name="indicatorDataSources" select="$indicator/DATA_SOURCES"/> 239 <xsl:with-param name="indicatorViewDataSources" select="$indicatorView/DATA_SOURCES"/> 240 </xsl:call-template> 226 <xsl:if test="string-length($indicatorView/SUPPLEMENTAL_IMAGE_URL) != 0"> 227 <h2 class="ColoredBlock"> 228 Chart 3. <xsl:value-of select="concat($indicatorView/TITLE, ' ', $indicatorView/SUB_TITLE, ' ', $indicatorView/PERIOD_TITLE)"/> 229 </h2> 230 <xsl:call-template name="Graphic.supplementalImage"> 231 <xsl:with-param name="indicatorView" select="$indicatorView"/> 232 </xsl:call-template> 233 234 <!-- Data Notes --> 235 <xsl:call-template name="Indicator.dataNotes"> 236 <xsl:with-param name="indicatorDataNote" select="$indicator/DATA_NOTE"/> 237 <xsl:with-param name="indicatorViewDataNote" select="$indicatorView/DATA_NOTE"/> 238 </xsl:call-template> 239 240 <!-- Data Sources --> 241 <xsl:call-template name="Indicator.dataSources"> 242 <xsl:with-param name="indicatorDataSources" select="$indicator/DATA_SOURCES"/> 243 <xsl:with-param name="indicatorViewDataSources" select="$indicatorView/DATA_SOURCES"/> 244 </xsl:call-template> 245 </xsl:if> 241 246 242 247 <!-- different from SAEpiPage.xslt - there is no small area graph/chart --> -
adopters/nm/trunk/src/main/webapps/ibisph-view/xslt/html/phom/profile/SAEpi3/Page.xslt
r6214 r6563 16 16 <ibis:doc> 17 17 <name>html/phom/profile/expanded/Page</name> 18 <summary> Default core code that produces the PHOM exanded profile view</summary>18 <summary>Code for New Mexico Substance Abuse Epi report used with YRRS data</summary> 19 19 <description> 20 20 Provides overridden HTML API templates, the imports so that … … 36 36 Substance Abuse Epidemiology Profile for <xsl:value-of select="$indicator/TITLE"/> 37 37 </xsl:param> 38 39 <xsl:param name="Page.frequencyTitle" ibis:doc="Table 2 counts header based on data type.">Unweighted Survey Counts</xsl:param> 40 <xsl:param name="Page.rateTitle" ibis:doc="Table 2 rates header based on data type.">Percentages</xsl:param> 38 41 39 42 <xsl:template name="Indicator.whyImportant" … … 56 59 <xsl:variable name="defaultIndicatorView" select="document(concat(/INDICATOR/DEFAULT_INDICATOR_VIEW_NAME, '.xml'), /)/INDICATOR_VIEW"/> 57 60 <xsl:variable name="gradeSexRaceIndicatorView" select="document(concat(/INDICATOR/NAME, '.Grade.SexRacEth', '.xml'), /)/INDICATOR_VIEW"/> 58 <xsl:variable name="cntyRaceIndicatorView" select="document(concat(/INDICATOR/NAME, '.Cnty.Rac e', '.xml'), /)/INDICATOR_VIEW"/>61 <xsl:variable name="cntyRaceIndicatorView" select="document(concat(/INDICATOR/NAME, '.Cnty.RacEth', '.xml'), /)/INDICATOR_VIEW"/> 59 62 <xsl:variable name="cntyIndicatorView" select="document(concat(/INDICATOR/NAME, '.Cnty', '.xml'), /)/INDICATOR_VIEW"/> 60 63 <xsl:variable name="defaultIndicatorViewName" select="document(concat(current(), '.xml'), /)/DEFAULT_INDICATOR_VIEW_NAME"/> … … 222 225 223 226 <!--LMH Supplemental image for County Indicator View, .cnty indicator view, supplemental image--> 224 <h2 class="ColoredBlock"> 225 Chart 3. <xsl:value-of select="concat($indicatorView/TITLE, ' ', $indicatorView/SUB_TITLE, ' ', $indicatorView/PERIOD_TITLE)"/> 226 </h2> 227 <xsl:call-template name="Graphic.supplementalImage"> 228 <xsl:with-param name="indicatorView" select="$indicatorView"/> 229 </xsl:call-template> 230 231 <!-- Data Notes --> 232 <xsl:call-template name="Indicator.dataNotes"> 233 <xsl:with-param name="indicatorDataNote" select="$indicator/DATA_NOTE"/> 234 <xsl:with-param name="indicatorViewDataNote" select="$indicatorView/DATA_NOTE"/> 235 </xsl:call-template> 236 237 <!-- Data Sources --> 238 <xsl:call-template name="Indicator.dataSources"> 239 <xsl:with-param name="indicatorDataSources" select="$indicator/DATA_SOURCES"/> 240 <xsl:with-param name="indicatorViewDataSources" select="$indicatorView/DATA_SOURCES"/> 241 </xsl:call-template> 227 <xsl:if test="string-length($indicatorView/SUPPLEMENTAL_IMAGE_URL) != 0"> 228 <h2 class="ColoredBlock"> 229 Chart 3. <xsl:value-of select="concat($indicatorView/TITLE, ' ', $indicatorView/SUB_TITLE, ' ', $indicatorView/PERIOD_TITLE)"/> 230 </h2> 231 <xsl:call-template name="Graphic.supplementalImage"> 232 <xsl:with-param name="indicatorView" select="$indicatorView"/> 233 </xsl:call-template> 234 235 <!-- Data Notes --> 236 <xsl:call-template name="Indicator.dataNotes"> 237 <xsl:with-param name="indicatorDataNote" select="$indicator/DATA_NOTE"/> 238 <xsl:with-param name="indicatorViewDataNote" select="$indicatorView/DATA_NOTE"/> 239 </xsl:call-template> 240 241 <!-- Data Sources --> 242 <xsl:call-template name="Indicator.dataSources"> 243 <xsl:with-param name="indicatorDataSources" select="$indicator/DATA_SOURCES"/> 244 <xsl:with-param name="indicatorViewDataSources" select="$indicatorView/DATA_SOURCES"/> 245 </xsl:call-template> 246 </xsl:if> 242 247 243 248 <!-- different from SAEpiPage.xslt - there is no small area graph/chart --> -
adopters/nm/trunk/src/main/webapps/ibisph-view/xslt/html/phom/profile/Values_AgeSexRace.xslt
r6263 r6563 32 32 33 33 34 <!-- Will this cause an error? -->35 34 <xsl:param name="ListCategoryFirst" ibis:doc="Controls which series/ 36 35 category column is presented first in the data list table. If it exists … … 56 55 <xsl:param name="numeratorCount"/> 57 56 <xsl:param name="valueFormatPattern"/> 57 <xsl:param name="Page.frequencyTitle" select="($Page.frequencyTitle)" /> 58 <xsl:param name="Page.rateTitle" select="($Page.rateTitle)" /> 58 59 59 60 <xsl:if test="count($ageSexRaceIndicatorView/INDICATOR_VIEW_VALUES/INDICATOR_VIEW_VALUE) != 0"> … … 73 74 <tr class="Title"> 74 75 <td></td> 75 <th colspan="4" class="Columns"> Deaths</th> <!--THESE NEED TO BE CENTERED-->76 <th colspan="4" class="Columns"> Rates*</th>76 <th colspan="4" class="Columns"><xsl:value-of select="($Page.frequencyTitle)"/></th> <!--THESE NEED TO BE CENTERED--> 77 <th colspan="4" class="Columns"><xsl:value-of select="($Page.rateTitle)"/>*</th> 77 78 </tr> 78 79 <tr class="Title"> -
adopters/nm/trunk/src/main/webapps/ibisph-view/xslt/html/phom/profile/Values_Cnty.xslt
r6263 r6563 73 73 <tr class="Title"> 74 74 <td></td> 75 <th colspan="1" class="Columns"> Deaths</th>76 <th colspan="1" class="Columns"> Rates*</th>75 <th colspan="1" class="Columns"><xsl:value-of select="($Page.frequencyTitle)"/></th> 76 <th colspan="1" class="Columns"><xsl:value-of select="($Page.rateTitle)"/>*</th> 77 77 </tr> 78 78 <tr class="Title"> -
adopters/nm/trunk/src/main/webapps/ibisph-view/xslt/html/phom/profile/Values_CntyRace.xslt
r6263 r6563 32 32 33 33 34 <!-- Will this cause an error? -->35 34 <xsl:param name="ListCategoryFirst" ibis:doc="Controls which series/ 36 35 category column is presented first in the data list table. If it exists … … 38 37 the series column is displayed first." 39 38 /> 40 41 39 42 40 <xsl:template name="Values_CntyRace.indicatorViewDataList" … … 49 47 exists for these fields." 50 48 > 51 52 49 <xsl:param name="cntyRaceIndicatorView" ibis:doc="indicator view element 53 50 that contains all the SERIES, CATEGORY, VALUE elements to be displayed." … … 56 53 <xsl:param name="numeratorCount"/> 57 54 <xsl:param name="valueFormatPattern"/> 55 <xsl:param name="Page.frequencyTitle" select="($Page.frequencyTitle)" /> 56 <xsl:param name="Page.rateTitle" select="($Page.rateTitle)" /> 57 58 58 59 59 <xsl:if test="count($cntyRaceIndicatorView/INDICATOR_VIEW_VALUES/INDICATOR_VIEW_VALUE) != 0"> … … 64 64 <xsl:variable name="denominatorCount" select="count($cntyRaceIndicatorView/INDICATOR_VIEW_VALUES/INDICATOR_VIEW_VALUE[string-length(DENOMINATOR) != 0])"/> 65 65 <xsl:variable name="valueFormatPattern" select="$cntyRaceIndicatorView/VALUE_TYPE/XSLT_FORMAT_PATTERN/text()"/> 66 <xsl:variable name="seriesTitle" select="if($cntyRaceIndicatorView/DATASET_SERIES/NAME != 'None') then $cntyRaceIndicatorView/DATASET_SERIES/TITLE else ''"/>67 <xsl:variable name="listCategoryFirst" select="ibis:isFirstLetter_T_or_Y_or_X($ListCategoryFirst) and (string-length($seriesTitle) != 0)"/>66 <xsl:variable name="seriesTitle" select="if($cntyRaceIndicatorView/DATASET_SERIES/NAME != 'None') then $cntyRaceIndicatorView/DATASET_SERIES/TITLE else ''"/> 67 <xsl:variable name="listCategoryFirst" select="ibis:isFirstLetter_T_or_Y_or_X($ListCategoryFirst) and (string-length($seriesTitle) != 0)"/> 68 68 69 69 <table class="Info" … … 73 73 <tr class="Title"> 74 74 <td></td> 75 <th colspan="6" class="Columns"> Deaths</th>76 <th colspan="6" class="Columns"> Rates*</th>75 <th colspan="6" class="Columns"><xsl:value-of select="($Page.frequencyTitle)"/></th> 76 <th colspan="6" class="Columns"><xsl:value-of select="($Page.rateTitle)"/></th> 77 77 </tr> 78 78 <tr class="Title"> … … 91 91 <th>All Races</th> 92 92 </tr> 93 93 <!--For each row of the table = for each county = for each value of the dataset category--> 94 94 <xsl:for-each select="$cntyRaceIndicatorView/DATASET_CATEGORY/DATASET_CATEGORY_VALUES/DATASET_CATEGORY_VALUE/VALUE"> 95 95 <xsl:sort select="SORT_ODRER" order="ascending" data-type="number"/> -
adopters/nm/trunk/src/main/webapps/ibisph-view/xslt/html/phom/profile/Values_GradeSexRace.xslt
r6263 r6563 56 56 <xsl:param name="numeratorCount"/> 57 57 <xsl:param name="valueFormatPattern"/> 58 <xsl:param name="Page.frequencyTitle" select="($Page.frequencyTitle)" /> 59 <xsl:param name="Page.rateTitle" select="($Page.rateTitle)" /> 58 60 59 61 <xsl:if test="count($gradeSexRaceIndicatorView/INDICATOR_VIEW_VALUES/INDICATOR_VIEW_VALUE) != 0"> … … 73 75 <tr class="Title"> 74 76 <td></td> 75 <th colspan="5" class="Columns"> Deaths</th> <!--THESE NEED TO BE CENTERED-->76 <th colspan="5" class="Columns"> Rates*</th>77 <th colspan="5" class="Columns"><xsl:value-of select="($Page.frequencyTitle)"/></th> 78 <th colspan="5" class="Columns"><xsl:value-of select="($Page.rateTitle)"/>*</th> 77 79 </tr> 78 80 <tr class="Title">
Note: See TracChangeset
for help on using the changeset viewer.