Opened 9 years ago

Closed 9 years ago

Last modified 8 years ago

#65 closed Defect (Fixed)

Related indicators not showing up in CH Report

Reported by: Lois Haggard Owned by: Garth Braithwaite
Priority: *High Milestone:
Component: View-App Version: 2.0
Severity: Keywords:
Cc:

Description (last modified by Lois Haggard)

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 (2)

RelatedIndCHH.PNG (133.4 KB) - added by Lois Haggard 9 years ago.
RelatedIndCHH-PF.PNG (6.6 KB) - added by Lois Haggard 9 years ago.

Download all attachments as: .zip

Change History (19)

comment:1 Changed 9 years ago by Lois Haggard

Description: modified (diff)

comment:2 Changed 9 years ago by Lois Haggard

Description: modified (diff)

comment:3 Changed 9 years ago by Lois Haggard

Description: modified (diff)

comment:4 Changed 9 years ago by Lois Haggard

Description: modified (diff)

comment:5 Changed 9 years ago by Lois Haggard

Description: modified (diff)

comment:6 Changed 9 years ago by Lois Haggard

Description: modified (diff)

comment:7 Changed 9 years ago by Lois Haggard

Description: modified (diff)

comment:8 Changed 9 years ago by Lois Haggard

Description: modified (diff)

comment:9 Changed 9 years ago by Lois Haggard

Priority: majorcritical

comment:10 Changed 9 years ago by Lois Haggard

Summary: Related indicators not showing up on Community Highlights report pagesRelated indicators not showing up in CH Report

Changed 9 years ago by Lois Haggard

Attachment: RelatedIndCHH.PNG added

comment:11 Changed 9 years ago by Lois Haggard

Description: modified (diff)

comment:12 Changed 9 years ago by Lois Haggard

Description: modified (diff)

comment:13 Changed 9 years ago by Lois Haggard

Description: modified (diff)

Changed 9 years ago by Lois Haggard

Attachment: RelatedIndCHH-PF.PNG added

comment:14 Changed 9 years ago by Lois Haggard

Description: modified (diff)

comment:15 Changed 9 years ago by Garth Braithwaite

Fixed 2304.

comment:16 Changed 9 years ago by Lois Haggard

Description: modified (diff)
Resolution: fixed
Status: newclosed

comment:17 Changed 8 years ago by (none)

Milestone: IBIS-PH View-2

Milestone IBIS-PH View-2 deleted

Note: See TracTickets for help on using tickets.