1 | <?xml version="1.0" encoding="ISO-8859-1"?> |
---|
2 | |
---|
3 | <xsl:stylesheet version="3.0" |
---|
4 | xmlns:xsl ="http://www.w3.org/1999/XSL/Transform" |
---|
5 | xmlns:ibis="http://www.ibisph.org" |
---|
6 | |
---|
7 | exclude-result-prefixes="ibis" |
---|
8 | > |
---|
9 | <!-- garth todo: remove? |
---|
10 | <xsl:import href="../../../json/Dataset.xslt"/> |
---|
11 | <xsl:import href="../../../json/Kendo.xslt"/> |
---|
12 | --> |
---|
13 | <xsl:import href="../../indicator/profile/Indicator.xslt"/> |
---|
14 | <xsl:import href="../Page.xslt"/> |
---|
15 | |
---|
16 | |
---|
17 | <ibis:doc> |
---|
18 | <name>html/community/indicator/Page</name> |
---|
19 | <summary>Default core code that produces the Community Indicator Profile view</summary> |
---|
20 | <description> |
---|
21 | Provides overridden Page API templates for the community profile Indicator report. |
---|
22 | </description> |
---|
23 | </ibis:doc> |
---|
24 | |
---|
25 | |
---|
26 | <xsl:param name="Page.pageTitle" ibis:doc="Page's browser title text." |
---|
27 | select="concat( |
---|
28 | $Page.communityDimensionValue/TITLE, |
---|
29 | ' ', |
---|
30 | ibis:getDimensionTitle($Page.communityDimension), |
---|
31 | ' - ', |
---|
32 | $indicator/TITLE, |
---|
33 | ' Community Health Indicator Report' |
---|
34 | )" |
---|
35 | /> |
---|
36 | <xsl:param name="Page.contentTitle" ibis:doc="Page's content title text = page.PageTitle value." |
---|
37 | select="concat( |
---|
38 | 'Community Health Indicator Report for ', |
---|
39 | $Page.communityDimensionValue/TITLE, |
---|
40 | ' ', |
---|
41 | ibis:getDimensionTitle($Page.communityDimension), |
---|
42 | ', ', |
---|
43 | $indicator/TITLE |
---|
44 | )" |
---|
45 | /> |
---|
46 | |
---|
47 | <xsl:param name="Page.stateTitle" select="$ibis.adopterTitle"/> |
---|
48 | |
---|
49 | <xsl:param name="Page.histoBarWidth" select="200" |
---|
50 | ibis:doc="Currently this is the percent multiplier. The style usage is |
---|
51 | coded with a '%'. This can be changed to actual pixels with the assoc |
---|
52 | style needing to be updated to 'px'. The change was made to '%' so |
---|
53 | that the css could be allowed to grow with wider pages. Time was spent |
---|
54 | without any success to make response - leaving % as the default for |
---|
55 | now as it works and it needed can readdress. |
---|
56 | " |
---|
57 | /> |
---|
58 | |
---|
59 | <xsl:param name="indicator" select="document(concat($Page.indicatorProfileXMLFilePath, '/', $IndicatorName, '.xml'), /)/INDICATOR"/> |
---|
60 | |
---|
61 | |
---|
62 | |
---|
63 | <xsl:template name="Page.contentBody" |
---|
64 | ibis:doc="Main page content template which pretty much calls the |
---|
65 | core indicator profile view element field templates (very similar |
---|
66 | to the indicator profile view)." |
---|
67 | > |
---|
68 | <xsl:variable name="indicatorComparisonValues"> |
---|
69 | <xsl:call-template name="ComparisonValues.getIndicatorStateUSComparisonValues"> |
---|
70 | <xsl:with-param name="indicator" select="$indicator"/> |
---|
71 | <xsl:with-param name="dimensions" select="$Page.dimensions"/> |
---|
72 | <xsl:with-param name="measures" select="$Page.measures"/> |
---|
73 | <xsl:with-param name="valueTypes" select="$Page.valueTypes"/> |
---|
74 | <xsl:with-param name="communityDimensionName" select="$Page.dimensionName"/> |
---|
75 | <xsl:with-param name="communityDimensionValue" select="$Page.dimensionValue"/> |
---|
76 | </xsl:call-template> |
---|
77 | </xsl:variable> |
---|
78 | |
---|
79 | <xsl:if test="0 != count($indicatorComparisonValues/*)"> |
---|
80 | <div class="GraphicColumn"> |
---|
81 | <ul class="ComparisonContainer"> |
---|
82 | |
---|
83 | <li class="ComparisonTable"><div> |
---|
84 | <xsl:call-template name="Page.communityStateUSComparisonTable"> |
---|
85 | <xsl:with-param name="communityTitle" |
---|
86 | select="concat($Page.communityDimensionValue/TITLE, ' - ', ibis:getDimensionTitle($Page.communityDimension))" |
---|
87 | /> |
---|
88 | <xsl:with-param name="indicatorComparisonValues" select="$indicatorComparisonValues"/> |
---|
89 | </xsl:call-template> |
---|
90 | <!-- |
---|
91 | <xsl:if test=" |
---|
92 | (string($value) = 'DNA') |
---|
93 | or (string($lowerLimitValue) = 'DNA') |
---|
94 | or (string($upperLimitValue) = 'DNA') |
---|
95 | or (string($stateComparativeValue)= 'DNA') |
---|
96 | or (string($usComparativeValue) = 'DNA') |
---|
97 | "> |
---|
98 | <xsl:call-template name="Indicator.dnaFootnote"/> |
---|
99 | </xsl:if> |
---|
100 | |
---|
101 | <xsl:if test="string($value) = '**'"> |
---|
102 | <xsl:call-template name="Indicator.insufficientDataFootnote"/> |
---|
103 | </xsl:if> |
---|
104 | --> |
---|
105 | </div></li> |
---|
106 | |
---|
107 | <li class="GaugeContainer"><div> |
---|
108 | <h4><xsl:value-of select="$Page.communityDimensionValue/TITLE"/> |
---|
109 | Compared to State |
---|
110 | (<xsl:value-of select="$indicatorComparisonValues/STATE/VALUE/TITLE"/>) |
---|
111 | </h4> |
---|
112 | |
---|
113 | <!-- |
---|
114 | GAUGE LOGIC DEBUG TABLE - displays a small table of values above the gauge image |
---|
115 | <table border="1px" cellspacing="0" cellpadding="0" class="Info" width="42%"> |
---|
116 | <tr><th scope="col">Target (low -1, high 1)</th><td><xsl:value-of select="$indicatorView/TARGET_VALUE"/></td></tr> |
---|
117 | <tr><th scope="col">indicatorViewValue</th><td><xsl:value-of select="$indicatorViewValue"/></td></tr> |
---|
118 | <tr><th scope="col">LCL - UCL</th><td>(<xsl:value-of select="$lowerLimitValue"/> - <xsl:value-of select="$upperLimitValue"/>)</td></tr> |
---|
119 | <tr><th scope="col">stateComparativeValue</th><td><xsl:value-of select="$stateComparativeValue"/></td></tr> |
---|
120 | <tr><th scope="col">gaugeValue</th><td><xsl:value-of select="$gaugeValue"/></td></tr> |
---|
121 | </table> |
---|
122 | <xsl:message select="$indicatorComparisonValues/STATE"/> |
---|
123 | --> |
---|
124 | <img src="{$ibis.contextPath}image/gauge/{$indicatorComparisonValues/STATE/VALUE/COMPARISON/GAUGE_NAME}.png" alt="comparison gauge value"/> |
---|
125 | <span class="GaugeFootnote Popup"> |
---|
126 | Description of Dashboard Gauge |
---|
127 | <div class="Container"> |
---|
128 | <div class="Content"> |
---|
129 | <xsl:copy-of select="$Page.gauge4HelpContent"/> |
---|
130 | </div> |
---|
131 | </div> |
---|
132 | </span> |
---|
133 | </div></li> |
---|
134 | |
---|
135 | <li class="GaugeContainer"><div> |
---|
136 | <h4><xsl:value-of select="$Page.communityDimensionValue/TITLE"/> |
---|
137 | Compared to U.S. |
---|
138 | (<xsl:value-of select="$indicatorComparisonValues/US/VALUE/TITLE"/>) |
---|
139 | </h4> |
---|
140 | |
---|
141 | <!-- |
---|
142 | <xsl:choose> |
---|
143 | <xsl:when test="$percentState = 0">DNA</xsl:when> |
---|
144 | <xsl:otherwise> |
---|
145 | <div style="width: {$Page.histoBarWidth * $percentState}px;"><xsl:value-of select="$indicatorComparisonValues/STATE/VALUE/TITLE"/></div> |
---|
146 | </xsl:otherwise> |
---|
147 | </xsl:choose> |
---|
148 | |
---|
149 | GAUGE LOGIC DEBUG TABLE - displays a small table of values above the gauge image |
---|
150 | <table border="1px" cellspacing="0" cellpadding="0" class="Info" width="42%"> |
---|
151 | <tr><th scope="col">Target (low -1, high 1)</th><td><xsl:value-of select="$indicatorView/TARGET_VALUE"/></td></tr> |
---|
152 | <tr><th scope="col">indicatorViewValue</th><td><xsl:value-of select="$indicatorViewValue"/></td></tr> |
---|
153 | <tr><th scope="col">LCL - UCL</th><td>(<xsl:value-of select="$lowerLimitValue"/> - <xsl:value-of select="$upperLimitValue"/>)</td></tr> |
---|
154 | <tr><th scope="col">stateComparativeValue</th><td><xsl:value-of select="$stateComparativeValue"/></td></tr> |
---|
155 | <tr><th scope="col">gaugeValue</th><td><xsl:value-of select="$gaugeValue"/></td></tr> |
---|
156 | </table> |
---|
157 | <xsl:message select="$indicatorComparisonValues/STATE"/> |
---|
158 | --> |
---|
159 | <img src="{$ibis.contextPath}image/gauge/{$indicatorComparisonValues/US/VALUE/COMPARISON/GAUGE_NAME}.png" alt="comparison gauge value"/> |
---|
160 | </div></li> |
---|
161 | </ul> |
---|
162 | |
---|
163 | |
---|
164 | |
---|
165 | |
---|
166 | |
---|
167 | |
---|
168 | |
---|
169 | |
---|
170 | |
---|
171 | <!-- |
---|
172 | |
---|
173 | <xsl:for-each select="$indicator/INDICATOR_VIEWS/INDICATOR_VIEW/NAME"> |
---|
174 | <xsl:variable name="indicatorView" select="document(concat(current(), '.xml'), /)/INDICATOR_VIEW"/> |
---|
175 | <xsl:variable name="measure" select="if($Indicator.useExternalXML) then $Measures/MEASURES/MEASURE[NAME=$indicatorView/MEASURE_NAME] else $indicator/MEASURES/MEASURE[NAME=$indicatorView/MEASURE_NAME]"/> |
---|
176 | |
---|
177 | <xsl:variable name="showMap" ibis:doc="Exposed so that SS can access." |
---|
178 | select="ibis:Graphic.showMap( |
---|
179 | $indicatorView/MAP_NAME, |
---|
180 | $indicatorView/DIMENSION_USAGES/DIMENSION_USAGE[USAGE='category']/NAME, |
---|
181 | $indicatorView/DIMENSION_USAGES/DIMENSION_USAGE[USAGE='series']/NAME, |
---|
182 | $Indicator.dimensions |
---|
183 | )" |
---|
184 | /> |
---|
185 | <xsl:variable name="showChart" select="ibis:Graphic.showChart($indicatorView/CHART_NAME)"/> |
---|
186 | |
---|
187 | <xsl:variable name="recordDimensionFields"> |
---|
188 | <xsl:call-template name="Interactive.getRecordDimensionFields"> |
---|
189 | <xsl:with-param name="dimensions" select="$Indicator.dimensions"/> |
---|
190 | <xsl:with-param name="dimensionUsages" select="$indicatorView/DIMENSION_USAGES"/> |
---|
191 | </xsl:call-template> |
---|
192 | </xsl:variable> |
---|
193 | <xsl:variable name="datasetRecords" select="$indicator/DATASETS/DATASET[NAME = $indicatorView/DATASET_NAMES/DATASET_NAME]/RECORDS"/> |
---|
194 | <xsl:variable name="indicatorViewDatasetRecords"> |
---|
195 | <xsl:call-template name="Interactive.getIndicatorViewDatasetRecords"> |
---|
196 | <xsl:with-param name="datasetRecords" select="$datasetRecords"/> |
---|
197 | <xsl:with-param name="dimensionUsages" select="$indicatorView/DIMENSION_USAGES"/> |
---|
198 | <xsl:with-param name="recordDimensionFields" select="$recordDimensionFields"/> |
---|
199 | </xsl:call-template> |
---|
200 | </xsl:variable> |
---|
201 | <xsl:variable name="valueAttributeNames" select="distinct-values($indicatorViewDatasetRecords//VALUE_ATTRIBUTE_NAME)"/> |
---|
202 | |
---|
203 | |
---|
204 | <xsl:if test="$showMap"> |
---|
205 | <xsl:call-template name="Graphic.mapContainer"> |
---|
206 | <xsl:with-param name="containerID" select="concat('map', position())"/> |
---|
207 | <xsl:with-param name="title" select="ibis:getIndicatorViewMapTitle($indicator, $indicatorView, $Indicator.dimensions)"/> |
---|
208 | <xsl:with-param name="footerContent" select="$indicatorView/MAP_NARRATIVE"/> |
---|
209 | </xsl:call-template> |
---|
210 | </xsl:if> |
---|
211 | |
---|
212 | <xsl:if test="$showChart"> |
---|
213 | <xsl:call-template name="Graphic.chartContainer"> |
---|
214 | <xsl:with-param name="containerID" select="concat('chart', position())"/> |
---|
215 | <xsl:with-param name="footerContent" select="$indicatorView/CHART_NARRATIVE/text()"/> |
---|
216 | </xsl:call-template> |
---|
217 | </xsl:if> |
---|
218 | |
---|
219 | <xsl:call-template name="Indicator.externalDataViz"> |
---|
220 | <xsl:with-param name="indicatorView" select="$indicatorView"/> |
---|
221 | </xsl:call-template> |
---|
222 | |
---|
223 | <xsl:call-template name="Indicator.dataNotes"> |
---|
224 | <xsl:with-param name="title" select="''"/> |
---|
225 | <xsl:with-param name="measure" select="$measure"/> |
---|
226 | <xsl:with-param name="indicatorView" select="$indicatorView"/> |
---|
227 | </xsl:call-template> |
---|
228 | |
---|
229 | |
---|
230 | <a href="{$ibis.contextPath}indicator/view/{$indicatorView/NAME}.html"><xsl:value-of select="$indicatorView/TITLE"/> Details</a><br/><br/> |
---|
231 | |
---|
232 | <xsl:variable name="ancillaryValueNames" select="distinct-values($indicator/DATASETS/DATASET[NAME = $indicatorView/DATASET_NAMES/DATASET_NAME]/ANCILLARY_VALUE_USAGES/ANCILLARY_VALUE_USAGE/NAME)"/> |
---|
233 | <xsl:variable name="measureValueFormatPattern" select="($Indicator.valueTypes/VALUE_TYPE[NAME = $measure/VALUE_TYPE_NAME]/XSLT_FORMAT_PATTERN)[1]"/> |
---|
234 | <xsl:call-template name="Graphic.leafletKendoScript"> |
---|
235 | <xsl:with-param name="scriptContainerID" select="concat('script', position())"/> |
---|
236 | <xsl:with-param name="dimensions" select="$Indicator.dimensions"/> |
---|
237 | <xsl:with-param name="datasetRecords" select="$indicatorViewDatasetRecords"/> |
---|
238 | <xsl:with-param name="recordDimensionFields" select="$recordDimensionFields"/> |
---|
239 | <xsl:with-param name="recordAncillaryValueFields"> |
---|
240 | <xsl:call-template name="Interactive.getIndicatorRecordAncillaryValueFields"> |
---|
241 | <xsl:with-param name="indicator" select="$indicator"/> |
---|
242 | <xsl:with-param name="indicatorView" select="$indicatorView"/> |
---|
243 | <xsl:with-param name="ancillaryValueNames" select="$ancillaryValueNames"/> |
---|
244 | <xsl:with-param name="ancillaryValues" select="$Indicator.ancillaryValues"/> |
---|
245 | <xsl:with-param name="valueTypes" select="$Indicator.valueTypes"/> |
---|
246 | <xsl:with-param name="measureValueFormatPattern" select="$measureValueFormatPattern"/> |
---|
247 | </xsl:call-template> |
---|
248 | </xsl:with-param> |
---|
249 | |
---|
250 | <xsl:with-param name="recordsJavascriptVariableName" select="concat('records', position())"/> |
---|
251 | <xsl:with-param name="leafletMapJavascriptVariableName" select="concat('map', position())"/> |
---|
252 | <xsl:with-param name="kendoDataSourceJavascriptVariableName" select="concat('dataSource', position())"/> |
---|
253 | <xsl:with-param name="kendoGridJavascriptVariableName" select="concat('grid', position())"/> |
---|
254 | <xsl:with-param name="kendoChartJavascriptVariableName" select="concat('chart', position())"/> |
---|
255 | |
---|
256 | <xsl:with-param name="measure" select="$measure"/> |
---|
257 | <xsl:with-param name="measureValueFormatPattern" select="$measureValueFormatPattern"/> |
---|
258 | |
---|
259 | <xsl:with-param name="showMap" select="$showMap"/> |
---|
260 | |
---|
261 | <xsl:with-param name="mapName" select="$indicatorView/MAP_NAME"/> |
---|
262 | <xsl:with-param name="mapContainerID" select="concat('map', position())"/> |
---|
263 | <xsl:with-param name="geoJSONName" select="$indicatorView/MAP_DIMENSION_NAME"/> |
---|
264 | <xsl:with-param name="geoIDFieldName" select="$recordDimensionFields/RECORD_DIMENSION_FIELD[DIMENSION_NAMES/DIMENSION_NAME = $indicatorView/MAP_DIMENSION_NAME]/NAME"/> |
---|
265 | <xsl:with-param name="geoIDFieldValuePrefixToRemove" select="concat($indicatorView/MAP_DIMENSION_NAME, '.')"/> |
---|
266 | <xsl:with-param name="geoTypeTitle" select="ibis:getDimensionTitle($indicator//DIMENSIONS/DIMENSION[NAME = $indicatorView/MAP_DIMENSION_NAME])"/> |
---|
267 | <xsl:with-param name="mapComparisonValue" select="$indicatorViewDatasetRecords/RECORD[ DIMENSIONS[ (2 = count(DIMENSION)) and DIMENSION[(NAME = $comparisonDimensionName) and (VALUE = $comparisonDimensionValue)]]]/MEASURE/VALUE"/> |
---|
268 | |
---|
269 | <xsl:with-param name="showChart" select="$showChart"/> |
---|
270 | <xsl:with-param name="chartContainerID" select="concat('chart', position())"/> |
---|
271 | <xsl:with-param name="chartName" select="$indicatorView/CHART_NAME"/> |
---|
272 | <xsl:with-param name="chartTitle" select="ibis:getIndicatorViewChartTitle($indicator, $indicatorView, $Indicator.dimensions)"/> |
---|
273 | |
---|
274 | <xsl:with-param name="showGrid" select="false()"/> |
---|
275 | </xsl:call-template> |
---|
276 | |
---|
277 | |
---|
278 | <xsl:if test="position() != last()"><br/><br/></xsl:if> |
---|
279 | </xsl:for-each> |
---|
280 | |
---|
281 | |
---|
282 | |
---|
283 | --> |
---|
284 | |
---|
285 | |
---|
286 | |
---|
287 | |
---|
288 | |
---|
289 | |
---|
290 | |
---|
291 | |
---|
292 | |
---|
293 | |
---|
294 | |
---|
295 | |
---|
296 | |
---|
297 | |
---|
298 | </div> |
---|
299 | </xsl:if> |
---|
300 | |
---|
301 | |
---|
302 | <div class="TextColumn"> |
---|
303 | <xsl:call-template name="Indicator.whyImportant"> |
---|
304 | <xsl:with-param name="indicator" select="$indicator"/> |
---|
305 | </xsl:call-template> |
---|
306 | |
---|
307 | <xsl:call-template name="Indicator.riskFactors"> |
---|
308 | <xsl:with-param name="indicator" select="$indicator"/> |
---|
309 | </xsl:call-template> |
---|
310 | |
---|
311 | <xsl:call-template name="Indicator.howDoing"> |
---|
312 | <xsl:with-param name="indicator" select="$indicator"/> |
---|
313 | </xsl:call-template> |
---|
314 | |
---|
315 | <xsl:call-template name="Indicator.whatDoing"> |
---|
316 | <xsl:with-param name="indicator" select="$indicator"/> |
---|
317 | </xsl:call-template> |
---|
318 | |
---|
319 | <xsl:call-template name="Indicator.evidenceBasedPractices"> |
---|
320 | <xsl:with-param name="indicator" select="$indicator"/> |
---|
321 | </xsl:call-template> |
---|
322 | <!-- |
---|
323 | <xsl:call-template name="Indicator.initiatives"> |
---|
324 | <xsl:with-param name="indicator" select="$indicator"/> |
---|
325 | <xsl:with-param name="title" select="'Health Objectives and Targets'"/> |
---|
326 | </xsl:call-template> |
---|
327 | <xsl:call-template name="Indicator.relatedIndicators"> |
---|
328 | <xsl:with-param name="indicator" select="$indicator"/> |
---|
329 | </xsl:call-template> |
---|
330 | |
---|
331 | <xsl:call-template name="Indicator.dataNotes"> |
---|
332 | <xsl:with-param name="indicator" select="$indicator"/> |
---|
333 | </xsl:call-template> |
---|
334 | |
---|
335 | <div class="CommunityFootnote"> |
---|
336 | <xsl:call-template name="Indicator.dataSources"> |
---|
337 | <xsl:with-param name="indicator" select="$indicator"/> |
---|
338 | </xsl:call-template> |
---|
339 | </div> |
---|
340 | --> |
---|
341 | |
---|
342 | <xsl:call-template name="Page.measureMetaData"> |
---|
343 | <xsl:with-param name="indicator" select="$indicator"/> |
---|
344 | </xsl:call-template> |
---|
345 | |
---|
346 | <xsl:call-template name="Page.indicatorProfileLink"> |
---|
347 | <xsl:with-param name="indicator" select="$indicator"/> |
---|
348 | </xsl:call-template> |
---|
349 | |
---|
350 | <xsl:call-template name="Indicator.dataSourceDate"> |
---|
351 | <xsl:with-param name="indicator" select="$indicator"/> |
---|
352 | </xsl:call-template> |
---|
353 | </div> |
---|
354 | </xsl:template> |
---|
355 | |
---|
356 | |
---|
357 | <!-- |
---|
358 | <xsl:template match="OVERVIEWS"> |
---|
359 | <xsl:call-template name="ContentContainer.contentBlockWithDelimitedTitleTextsNodesets"> |
---|
360 | <xsl:with-param name="title" select="'Overview'"/> |
---|
361 | <xsl:with-param name="contentBlockType" select="'expandable'"/> |
---|
362 | <xsl:with-param name="expandableContentShow" select="true()"/> |
---|
363 | <xsl:with-param name="addWikiAttribute" select="true()"/> |
---|
364 | <xsl:with-param name="titleAndTextsNodeset" select="OVERVIEW"/> |
---|
365 | </xsl:call-template> |
---|
366 | </xsl:template> |
---|
367 | --> |
---|
368 | |
---|
369 | |
---|
370 | <xsl:template name="Page.contentFooter" |
---|
371 | ibis:doc="Override the default with nothing since org unit is included |
---|
372 | as part of the page already." |
---|
373 | /> |
---|
374 | |
---|
375 | |
---|
376 | <xsl:template name="Page.communityStateUSComparisonTable"> |
---|
377 | <xsl:param name="indicatorComparisonValues"/> |
---|
378 | <xsl:param name="communityTitle"/> |
---|
379 | |
---|
380 | <xsl:param name="communityValue" select="$indicatorComparisonValues/COMMUNITY/VALUE/text()"/> |
---|
381 | <xsl:param name="stateValue" select="$indicatorComparisonValues/STATE/VALUE/text()"/> |
---|
382 | <xsl:param name="usValue" select="$indicatorComparisonValues/US/VALUE/text()"/> |
---|
383 | |
---|
384 | |
---|
385 | <xsl:variable name="histoValue" select="if(number($communityValue))then $communityValue else 0"/> |
---|
386 | <xsl:variable name="histoState" select="if(number($stateValue))then $stateValue else 0"/> |
---|
387 | <xsl:variable name="histoUS" select="if(number($usValue))then $usValue else 0"/> |
---|
388 | <xsl:variable name="maxHistoValue" select="max( ($histoValue, $histoState, $histoUS, 0.01) )"/> |
---|
389 | |
---|
390 | <xsl:variable name="percentValue" select="$histoValue div $maxHistoValue"/> |
---|
391 | <xsl:variable name="percentState" select="$histoState div $maxHistoValue"/> |
---|
392 | <xsl:variable name="percentUS" select="$histoUS div $maxHistoValue"/> |
---|
393 | |
---|
394 | <table border="0" cellspacing="0" cellpadding="0" class="Info" |
---|
395 | summary="Data table that lists the community profile comparison data." |
---|
396 | caption="Community profile comparison data." |
---|
397 | > |
---|
398 | <tr class="Section Community"> |
---|
399 | <th scope="row" class="Row"> |
---|
400 | <xsl:value-of select="$communityTitle"/> |
---|
401 | </th> |
---|
402 | <td title="{$communityTitle}: {$indicatorComparisonValues/COMMUNITY/VALUE/TITLE}"> |
---|
403 | <div style="width: {$Page.histoBarWidth * $percentValue}px;"><xsl:value-of select="$indicatorComparisonValues/COMMUNITY/VALUE/TITLE"/></div> |
---|
404 | </td> |
---|
405 | </tr> |
---|
406 | <tr class="Section Community Extra"> |
---|
407 | <th scope="row" class="SubValue">95% Confidence Interval</th> |
---|
408 | <td class="SubValue"> |
---|
409 | <div class="Help Popup Right"> |
---|
410 | <div class="Container"> |
---|
411 | <div class="Content"> |
---|
412 | <xsl:copy-of select="$Page.confidenceIntervalHelpContent"/> |
---|
413 | </div> |
---|
414 | </div> |
---|
415 | </div> |
---|
416 | |
---|
417 | <xsl:choose> |
---|
418 | <xsl:when test="($indicatorComparisonValues/COMMUNITY/LOWER_LIMIT/TITLE = 'DNA') or ($indicatorComparisonValues/COMMUNITY/UPPER_LIMIT/TITLE = 'DNA')"> |
---|
419 | DNA |
---|
420 | </xsl:when> |
---|
421 | <xsl:otherwise> |
---|
422 | (<xsl:value-of select="$indicatorComparisonValues/COMMUNITY/LOWER_LIMIT/TITLE"/> |
---|
423 | - <xsl:value-of select="$indicatorComparisonValues/COMMUNITY/UPPER_LIMIT/TITLE "/>) |
---|
424 | </xsl:otherwise> |
---|
425 | </xsl:choose> |
---|
426 | </td> |
---|
427 | </tr> |
---|
428 | <tr class="Section Community Extra"> |
---|
429 | <th scope="row">Statistical Stability</th> |
---|
430 | <td> |
---|
431 | <div class="Help Popup Right"> |
---|
432 | <div class="Container"> |
---|
433 | <div class="Content"> |
---|
434 | <xsl:copy-of select="$Page.statisticalStabilityHelpContent"/> |
---|
435 | </div> |
---|
436 | </div> |
---|
437 | </div> |
---|
438 | <xsl:value-of select="$indicatorComparisonValues/COMMUNITY/RELIABILITY"/> |
---|
439 | </td> |
---|
440 | </tr> |
---|
441 | |
---|
442 | <tr class="Section State" title="State value"> |
---|
443 | <th scope="row"> |
---|
444 | <xsl:value-of select="$Page.stateTitle"/> |
---|
445 | </th> |
---|
446 | <td title="{$Page.stateTitle}: {$indicatorComparisonValues/STATE/VALUE/TITLE}"> |
---|
447 | <xsl:choose> |
---|
448 | <xsl:when test="$percentState = 0">DNA</xsl:when> |
---|
449 | <xsl:otherwise> |
---|
450 | <div style="width: {$Page.histoBarWidth * $percentState}px;"><xsl:value-of select="$indicatorComparisonValues/STATE/VALUE/TITLE"/></div> |
---|
451 | </xsl:otherwise> |
---|
452 | </xsl:choose> |
---|
453 | </td> |
---|
454 | </tr> |
---|
455 | <tr class="Section US" title="U.S. comparative value"> |
---|
456 | <th scope="row">U.S.</th> |
---|
457 | <td title="U.S.: {$indicatorComparisonValues/US/VALUE/TITLE}"> |
---|
458 | <xsl:choose> |
---|
459 | <xsl:when test="$percentUS = 0">DNA</xsl:when> |
---|
460 | <xsl:otherwise> |
---|
461 | <div style="width: {$Page.histoBarWidth * $percentUS}px;"><xsl:value-of select="$indicatorComparisonValues/US/VALUE/TITLE"/></div> |
---|
462 | </xsl:otherwise> |
---|
463 | </xsl:choose> |
---|
464 | </td> |
---|
465 | </tr> |
---|
466 | </table> |
---|
467 | </xsl:template> |
---|
468 | |
---|
469 | |
---|
470 | <xsl:template name="Page.measureMetaData"> |
---|
471 | <xsl:param name="indicator"/> |
---|
472 | <h3>Measure Description for <xsl:value-of select="$indicator/TITLE"/></h3> |
---|
473 | <div class="BottomHalfLineSpace">Definition: <xsl:value-of select="$indicator/DEFINITION"/></div> |
---|
474 | <div class="BottomHalfLineSpace">Numerator: <xsl:value-of select="$indicator/NUMERATOR"/></div> |
---|
475 | <div class="BottomHalfLineSpace">Denominator: <xsl:value-of select="$indicator/DENOMINATOR"/></div> |
---|
476 | </xsl:template> |
---|
477 | |
---|
478 | |
---|
479 | <xsl:template name="Page.indicatorProfileLink"> |
---|
480 | <xsl:param name="indicator"/> |
---|
481 | |
---|
482 | <h3>Health Indicator Profile Report</h3> |
---|
483 | <a href="{concat($ibis.contextPath, 'indicator/summary/', $indicator/NAME, '.html')}" |
---|
484 | title="Jump to the indicator profile report" |
---|
485 | > |
---|
486 | <xsl:value-of select="$indicator/TITLE"/> |
---|
487 | </a> |
---|
488 | </xsl:template> |
---|
489 | |
---|
490 | <xsl:template name="Page.communityFooter"> |
---|
491 | <xsl:param name="indicator"/> |
---|
492 | <h3>Date Content Last Updated</h3> |
---|
493 | <xsl:value-of select="$indicator/DATA_AS_OF_DATE"/><br/> |
---|
494 | </xsl:template> |
---|
495 | </xsl:stylesheet> |
---|
496 | <!-- ============================= End of File ============================= --> |
---|
497 | |
---|