Ticket #65 (closed Defect: fixed)

Opened 1 year ago

Last modified 5 months ago

Related indicators not showing up in CH Report

Reported by: lois Assigned to: Garth
Priority: High Milestone:
Component: View Webapp Version: 2.0
Severity: Keywords:
Cc:

Description (Last modified by lois)

If there are related indicators in the indicator.xml file, the Community Health Highlights (CHH) report will show the "Related Indicators" heading, but does not display any content underneath the heading (see attached RelatedIndCHH.PNG).

If there are NO related indicators in the indicator.xml file, the heading/text does NOT show up (which is correct). But when there are related indicators, the "Related Indicators" section heading shows up with no content underneath it.

If I generate a Printer Friendly version, I get the section heading and the relations headings, along with the appropriate number of bullet symbols, but no links and no message about "clicking on...". (See the attached RelatedIndCHH-PF.PNG). It is fine to omit the message about "clicking on" in the printer friendly version. But the related indicator titles should display.

To debug a little bit, I made sure that the indicator.xml file had related indicators elements and tested the indicator main page and the community health highlights report page. I hand-modified my Diabetes Deaths indicator profile XML file as follows (All references to related indicators are indicators that are published and available on my NM View2 application):

<RELATIONS>
	<RELATION name="PopChar">
	<NAME>PopChar</NAME>
	<TITLE>Relevant Population Characteristics</TITLE>
	<TEXT>Diabetes is the sixth leading cause of death both nationally and in New Mexico. 
	People who are of minority race or ethnicity (particularly African American, Hispanic/
	Latino, or Native American) have an increased risk of dying from diabetes. Rates of death 
	for diabetes tend to be higher for females than for males.</TEXT>
		<RELATED_INDICATORS>
			<RELATED_INDICATOR name="NMPopDemoAge65">
				<INDICATOR_NAME>NMPopDemoAge65</INDICATOR_NAME>
				<INDICATOR_TITLE>New Mexico Population Demographics: Percentage of the Population Age 65+</INDICATOR_TITLE>
			</RELATED_INDICATOR>
				<RELATED_INDICATOR name="NMPopDemoRacEth">
				<INDICATOR_NAME>NMPopDemoRacEth</INDICATOR_NAME>
				<INDICATOR_TITLE>New Mexico Population Demographics: Race/Ethnicity</INDICATOR_TITLE>
			</RELATED_INDICATOR>
		</RELATED_INDICATORS>
	</RELATION>
	<RELATION name="SystemFactors">
		<NAME>SystemFactors</NAME>
		<TITLE>Lois modified xml: Healthcare Systems Factors Title</TITLE>
		<TEXT>Lois modified xml: Healthcare Systems Factors Text</TEXT>
		<RELATED_INDICATORS>
			<RELATED_INDICATOR name="HlthInsurCover">
				<INDICATOR_NAME>HlthInsurCover</INDICATOR_NAME>
				<INDICATOR_TITLE>Health Insurance Coverage in New Mexico</INDICATOR_TITLE>
			</RELATED_INDICATOR>
		</RELATED_INDICATORS>
	</RELATION>
	<RELATION name="RiskFactors">
		<NAME>RiskFactors</NAME>
		<TITLE>Lois modified xml: Risk Factors Title</TITLE>
		<TEXT>Lois modified xml: Risk Factors Text</TEXT>
		<RELATED_INDICATORS>
			<RELATED_INDICATOR name="ObesityAdult">
				<INDICATOR_NAME>ObesityAdult</INDICATOR_NAME>
				<INDICATOR_TITLE>Obesity: Adult Prevalence</INDICATOR_TITLE>
			</RELATED_INDICATOR>
			<RELATED_INDICATOR name="NMPopDemoAge65">
				<INDICATOR_NAME>NMPopDemoAge65</INDICATOR_NAME>
				<INDICATOR_TITLE>New Mexico Population Demographics: Percentage of the Population Age 65+</INDICATOR_TITLE>
			</RELATED_INDICATOR>
				<RELATED_INDICATOR name="NMPopDemoRacEth">
				<INDICATOR_NAME>NMPopDemoRacEth</INDICATOR_NAME>
				<INDICATOR_TITLE>New Mexico Population Demographics: Race/Ethnicity</INDICATOR_TITLE>
			</RELATED_INDICATOR>
		</RELATED_INDICATORS>
	</RELATION>
	<RELATION name="HealthStatus">
		<NAME>HealthStatus</NAME>
		<TITLE>Lois modified xml: Health Status Outcomes Title</TITLE>
		<TEXT>Lois modified xml: Health Status Outcomes Text</TEXT>
		<RELATED_INDICATORS>
			<RELATED_INDICATOR name="CardioVasDiseaseHeartDeath">
				<INDICATOR_NAME>CardioVasDiseaseHeartDeath</INDICATOR_NAME>
				<INDICATOR_TITLE>Cardiovascular Disease: Diseases of the Heart Deaths</INDICATOR_TITLE>
			</RELATED_INDICATOR>
			<RELATED_INDICATOR name="DthRateLdgCause">
				<INDICATOR_NAME>DthRateLdgCause</INDICATOR_NAME>
				<INDICATOR_TITLE>Death Rates from Leading Causes of Death</INDICATOR_TITLE>
			</RELATED_INDICATOR>
		</RELATED_INDICATORS>
	</RELATION>
</RELATIONS>

The Indicator Profile Report page performed almost as desired. See Ticket #89.

The Community Health Highlights Report page continued to have the problem reported above. The Diabetes Deaths page displayed the "Related Indicators" section heading text with no content underneath it.

I believe the offending code is in the xslt\html\community\highlight\Highlight.xslt file:

<ul>
	<xsl:for-each select="current()/RELATED_INDICATORS/RELATED_INDICATOR[INDICATOR_NAME = $publishedIndicators//NAME]">
		<li>
			<a href="{$ibis.urlPrefix}indicator/view/{$publishedIndicators/INDICATOR[NAME=current()/NAME]/INDICATOR_VIEW/NAME}.html">
				<xsl:value-of select="TITLE"/>
			</a>
		</li>
	</xsl:for-each>
</ul>

11/12/2010 - Lois tested. This was fixed in the view2/webapp updates that Garth made on 11/09/2010. Ticket Closed.

Attachments

RelatedIndCHH.PNG (133.4 kB) - added by lois on 10/18/10 13:01:24.
RelatedIndCHH-PF.PNG (6.6 kB) - added by lois on 10/18/10 15:29:57.

Change History

08/30/10 15:39:33 changed by lois

  • description changed.

08/30/10 15:40:55 changed by lois

  • description changed.

09/06/10 12:30:27 changed by lois

  • description changed.

09/06/10 12:35:56 changed by lois

  • description changed.

09/06/10 12:37:12 changed by lois

  • description changed.

09/06/10 12:45:28 changed by lois

  • description changed.

09/06/10 13:35:15 changed by lois

  • description changed.

09/06/10 16:13:25 changed by lois

  • description changed.

09/06/10 17:25:15 changed by lois

  • priority changed from major to critical.

09/16/10 11:30:57 changed by lois

  • summary changed from Related indicators not showing up on Community Highlights report pages to Related indicators not showing up in CH Report.

10/18/10 13:01:24 changed by lois

  • attachment RelatedIndCHH.PNG added.

10/18/10 13:18:13 changed by lois

  • description changed.

10/18/10 13:23:29 changed by lois

  • description changed.

10/18/10 15:19:18 changed by lois

  • description changed.

10/18/10 15:29:57 changed by lois

  • attachment RelatedIndCHH-PF.PNG added.

10/18/10 15:31:18 changed by lois

  • description changed.

11/09/10 15:43:07 changed by garth

Fixed 2304.

11/12/10 15:04:42 changed by lois

  • status changed from new to closed.
  • resolution set to fixed.
  • description changed.

09/14/11 11:32:37 changed by

  • milestone deleted.

Milestone IBIS-PH View-2 deleted