1 | <?xml version="1.0" encoding="ISO-8859-1"?> |
---|
2 | |
---|
3 | <xsl:stylesheet version="2.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 | <xsl:import href="../SiteSpecific.xslt"/> |
---|
10 | |
---|
11 | |
---|
12 | <ibis:doc> |
---|
13 | <name>html/indicator/profile/SiteSpecific</name> |
---|
14 | <summary>Provides adopter 'indicator/profile' site specific template overrides</summary> |
---|
15 | <description> |
---|
16 | Provides '_site_specific' and 'html' API template overrides |
---|
17 | to implement the specific navigation menu code needed for the |
---|
18 | indicator profile pages. |
---|
19 | </description> |
---|
20 | |
---|
21 | <author>Garth Braithwaite</author> |
---|
22 | <company>Software Technology Group/CDC/Utah Department of Health</company> |
---|
23 | </ibis:doc> |
---|
24 | |
---|
25 | |
---|
26 | <xsl:param name="SiteSpecific.navigationPathSelections"> |
---|
27 | <SELECTION> |
---|
28 | <TITLE>indicator</TITLE> |
---|
29 | <LOCAL_URL>indicator</LOCAL_URL> |
---|
30 | </SELECTION> |
---|
31 | <SELECTION> |
---|
32 | <TITLE>index</TITLE> |
---|
33 | <LOCAL_URL>indicator/index/Alphabetical.html</LOCAL_URL> |
---|
34 | </SELECTION> |
---|
35 | <SELECTION> |
---|
36 | <TITLE>report</TITLE> |
---|
37 | <LOCAL_URL>indicator/view/<xsl:value-of select="$indicator/NAME"/>.html</LOCAL_URL> |
---|
38 | </SELECTION> |
---|
39 | </xsl:param> |
---|
40 | |
---|
41 | |
---|
42 | <xsl:param name="SiteSpecific.contextNavigationSelections" |
---|
43 | ibis:doc="Indicator Profile left nav menu - specific to the current indicator." |
---|
44 | > |
---|
45 | <SELECTION> |
---|
46 | <TITLE>Explore the Indicator</TITLE> |
---|
47 | |
---|
48 | <SELECTIONS> |
---|
49 | <SELECTION> |
---|
50 | <URL><xsl:value-of select="concat($ibis.urlPrefix, 'indicator/facts/', $indicator/NAME, '.html')"/></URL> |
---|
51 | <DESCRIPTION>Important Facts page for <xsl:value-of select="$indicator/TITLE"/></DESCRIPTION> |
---|
52 | <TITLE>Important Facts</TITLE> |
---|
53 | </SELECTION> |
---|
54 | |
---|
55 | <xsl:variable name="indicatorViews" select="$indicator/INDICATOR_VIEWS/INDICATOR_VIEW"/> |
---|
56 | <xsl:variable name="indicatorViewCount" select="count($indicatorViews)"/> |
---|
57 | <SELECTION> |
---|
58 | <xsl:if test="$indicatorViewCount < 2"> |
---|
59 | <TITLE>Data View</TITLE> |
---|
60 | <URL><xsl:value-of select="concat($ibis.urlPrefix, 'indicator/view/', $indicator/DEFAULT_INDICATOR_VIEW_NAME, '.html')"/></URL> |
---|
61 | <DESCRIPTION>Interacitve view of <xsl:value-of select="$indicator/TITLE"/></DESCRIPTION> |
---|
62 | </xsl:if> |
---|
63 | <xsl:if test="$indicatorViewCount > 1"> |
---|
64 | <TITLE>Data Views</TITLE> |
---|
65 | <DESCRIPTION>Interactive view of <xsl:value-of select="$indicator/TITLE"/></DESCRIPTION> |
---|
66 | <SELECTIONS> |
---|
67 | <xsl:for-each select="$indicatorViews"> |
---|
68 | <SELECTION> |
---|
69 | <URL><xsl:value-of select="concat($ibis.urlPrefix, 'indicator/view/', NAME, '.html')"/></URL> |
---|
70 | <DESCRIPTION>Interactive view of <xsl:value-of select="TITLE"/></DESCRIPTION> |
---|
71 | <TITLE><xsl:value-of select="ibis:getPartialIndicatorViewTitle(current())"/></TITLE> |
---|
72 | </SELECTION> |
---|
73 | </xsl:for-each> |
---|
74 | </SELECTIONS> |
---|
75 | </xsl:if> |
---|
76 | </SELECTION> |
---|
77 | |
---|
78 | <xsl:variable name="countOfRelations" select="count($indicator/RELATIONS/RELATION)"/> |
---|
79 | <xsl:if test="$countOfRelations > 0"> |
---|
80 | <SELECTION> |
---|
81 | <xsl:if test="$countOfRelations = 1"> |
---|
82 | <URL><xsl:value-of select="concat($ibis.urlPrefix, 'indicator/related/', $indicator/RELATIONS/RELATION/NAME, '/', $indicator/NAME, '.html')"/></URL> |
---|
83 | <DESCRIPTION><xsl:value-of select="$indicator/RELATIONS/RELATION/TITLE"/> indicators related to <xsl:value-of select="$indicator/TITLE"/></DESCRIPTION> |
---|
84 | </xsl:if> |
---|
85 | <TITLE>Related Indicators</TITLE> |
---|
86 | <HELP> |
---|
87 | <TITLE>Garth</TITLE> |
---|
88 | <TEXT>Hello world... <a href="msn.com">MSN</a> there.</TEXT> |
---|
89 | </HELP> |
---|
90 | |
---|
91 | <xsl:if test="$countOfRelations > 1"> |
---|
92 | <DESCRIPTION>Pick the type of related incidators</DESCRIPTION> |
---|
93 | <SELECTIONS> |
---|
94 | <xsl:for-each select="$indicator/RELATIONS/RELATION"> |
---|
95 | <SELECTION> |
---|
96 | <URL><xsl:value-of select="concat($ibis.urlPrefix, 'indicator/related/', NAME, '/', $indicator/NAME, '.html')"/></URL> |
---|
97 | <DESCRIPTION>Indicators related to <xsl:value-of select="concat($indicator/TITLE, ' for ', TITLE)"/></DESCRIPTION> |
---|
98 | <TITLE><xsl:value-of select="TITLE"/></TITLE> |
---|
99 | </SELECTION> |
---|
100 | </xsl:for-each> |
---|
101 | </SELECTIONS> |
---|
102 | </xsl:if> |
---|
103 | </SELECTION> |
---|
104 | </xsl:if> |
---|
105 | |
---|
106 | <xsl:if test="string-length($indicator/SERVICES_AVAILABLE_TO_PUBLIC) != 0"> |
---|
107 | <SELECTION> |
---|
108 | <URL><xsl:value-of select="concat($ibis.urlPrefix, 'indicator/services/', $indicator/NAME, '.html')"/></URL> |
---|
109 | <DESCRIPTION>Services Available to the Public page for <xsl:value-of select="$indicator/TITLE"/></DESCRIPTION> |
---|
110 | <TITLE>Available Services</TITLE> |
---|
111 | </SELECTION> |
---|
112 | </xsl:if> |
---|
113 | |
---|
114 | <SELECTION> |
---|
115 | <URL><xsl:value-of select="concat($ibis.urlPrefix, 'indicator/resources/', $indicator/NAME, '.html')"/></URL> |
---|
116 | <DESCRIPTION>Other Resources and Web Links page for <xsl:value-of select="$indicator/TITLE"/></DESCRIPTION> |
---|
117 | <TITLE>Other Resources & Links</TITLE> |
---|
118 | <ADDITIONAL_CLASSES>LargeText</ADDITIONAL_CLASSES> |
---|
119 | </SELECTION> |
---|
120 | |
---|
121 | <SELECTION> |
---|
122 | <URL><xsl:value-of select="concat($ibis.urlPrefix, 'indicator/report/', $indicator/NAME, '.html')"/></URL> |
---|
123 | <DESCRIPTION>Complete Indicator Profile which contains all views and data for <xsl:value-of select="$indicator/TITLE"/></DESCRIPTION> |
---|
124 | <TITLE>Full Report</TITLE> |
---|
125 | </SELECTION> |
---|
126 | |
---|
127 | <SELECTION> |
---|
128 | <URL><xsl:value-of select="concat($ibis.urlPrefix, 'view/xml/indicator/profile/', $indicator/NAME, '.xml')"/></URL> |
---|
129 | <DESCRIPTION>Get the raw XML Indicator Profile data for <xsl:value-of select="$indicator/TITLE"/></DESCRIPTION> |
---|
130 | <TITLE>Main XML Data</TITLE> |
---|
131 | </SELECTION> |
---|
132 | |
---|
133 | <SELECTION> |
---|
134 | <URL><xsl:value-of select="concat($ibis.urlPrefix, 'view/xml/indicator/profile/', $indicatorView/NAME, '.xml')"/></URL> |
---|
135 | <DESCRIPTION>Get the raw XML Indicator Profile values data</DESCRIPTION> |
---|
136 | <TITLE>Values XML Data</TITLE> |
---|
137 | </SELECTION> |
---|
138 | </SELECTIONS> |
---|
139 | </SELECTION> |
---|
140 | </xsl:param> |
---|
141 | |
---|
142 | |
---|
143 | <xsl:template name="SiteSpecific.headerBanner" ibis:doc="Stubb API template to turn off the banner."/> |
---|
144 | |
---|
145 | </xsl:stylesheet> |
---|
146 | <!-- ============================= End of File ============================= --> |
---|
147 | |
---|