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 | <xsl:import href="../../Page.xslt"/> |
---|
10 | |
---|
11 | |
---|
12 | <ibis:doc> |
---|
13 | <name>html/indicator/profile/Page</name> |
---|
14 | <summary>Provides indicator profile specific 'html' API templates</summary> |
---|
15 | <description> |
---|
16 | Provides indicator profile specific 'html' API templates |
---|
17 | which are imported by the actual page specific indicator profile XSLTs. |
---|
18 | </description> |
---|
19 | </ibis:doc> |
---|
20 | |
---|
21 | <xsl:param name="Page.contentTitle" |
---|
22 | ibis:doc="Provides the page's content title text which is typically |
---|
23 | displayed in the content header section. This variable is a stubb |
---|
24 | and should be implemented for each specific type of page. |
---|
25 | " |
---|
26 | > |
---|
27 | Health Indicator Report of <xsl:value-of select="ibis:getIndicatorTitle($indicator)"/> |
---|
28 | </xsl:param> |
---|
29 | |
---|
30 | <xsl:param name="Page.metaDescription" select=" |
---|
31 | if(string-length(/INDICATOR_VIEW/DESCRIPTION) != 0)then |
---|
32 | concat(/INDICATOR/DESCRIPTION, ' ; ', /INDICATOR_VIEW/DESCRIPTION) |
---|
33 | else |
---|
34 | /INDICATOR/DESCRIPTION |
---|
35 | " |
---|
36 | ibis:doc="Implementation that returns the INDICATOR and INDICATOR_VIEW/DESCRIPTION." |
---|
37 | /> |
---|
38 | <xsl:param name="Page.metaKeywords" select="$Page.metaDescription"/> |
---|
39 | |
---|
40 | |
---|
41 | <xsl:param name="Page.orgUnitName" select="$indicator/ORG_UNIT_NAME" |
---|
42 | ibis:doc="Provides the associated IP organization unit contact |
---|
43 | info text which is typically used in the content footer. The actual |
---|
44 | org unit text is pulled from the 'org_unit.xml' file and is keyed |
---|
45 | off of via the '/INDICATOR/ORG_UNIT_NAME' element. |
---|
46 | " |
---|
47 | /> |
---|
48 | |
---|
49 | |
---|
50 | <xsl:param name="Page.htmlClass" select="'IndicatorProfile'"/> |
---|
51 | |
---|
52 | |
---|
53 | |
---|
54 | <!-- DEPENDENCY NOTE: This file is not meant to be imported as a stand alone |
---|
55 | XSLT library. This file depends/relies on the $indicator variable and |
---|
56 | the ibis.baseRequestPath parameter being defined. |
---|
57 | --> |
---|
58 | |
---|
59 | <xsl:template name="Page.specificHeadContent" |
---|
60 | ibis:doc="Turn off caching if there's an XML URL." |
---|
61 | > |
---|
62 | <xsl:if test="string-length($xmlURL) != 0"> |
---|
63 | <xsl:call-template name="Page.metaNoCacheControl"/> |
---|
64 | </xsl:if> |
---|
65 | </xsl:template> |
---|
66 | |
---|
67 | |
---|
68 | <xsl:template name="Page.options"> |
---|
69 | <xsl:param name="title"/> |
---|
70 | <xsl:param name="pageType"/> |
---|
71 | |
---|
72 | <div class="ContentOptions"> |
---|
73 | <h3><xsl:value-of select="$title"/></h3> |
---|
74 | |
---|
75 | <div class="Container"> |
---|
76 | <div> |
---|
77 | <label for="indicatorViews"><h4>Data Views:</h4></label> |
---|
78 | <xsl:variable name="currentIndicatorViewName" select="$indicatorView/NAME"/> |
---|
79 | <select name="indicatorViews" id="indicatorViews" onchange="location=this.value; this.value='';"> |
---|
80 | <xsl:if test="('summary' != $pageType) and ('view' != $pageType)"> |
---|
81 | <option value="javascript:location" selected="selected"></option> |
---|
82 | </xsl:if> |
---|
83 | <xsl:for-each select="$indicator/INDICATOR_VIEWS/INDICATOR_VIEW"> |
---|
84 | <option value="{concat($ibis.baseRequestPath, 'indicator/view/', NAME, '.html')}"> |
---|
85 | <xsl:if test="('view' = $pageType) and (NAME = $currentIndicatorViewName)"> |
---|
86 | <xsl:attribute name="selected" select="'selected'"/> |
---|
87 | </xsl:if> |
---|
88 | <xsl:value-of select="TITLE"/> |
---|
89 | </option> |
---|
90 | </xsl:for-each> |
---|
91 | <option value="{concat($ibis.baseRequestPath, 'indicator/summary/', $indicator/NAME, '.html')}"> |
---|
92 | <xsl:if test="'summary' = $pageType"> |
---|
93 | <xsl:attribute name="selected" select="'selected'"/> |
---|
94 | </xsl:if> |
---|
95 | Summary Report |
---|
96 | </option> |
---|
97 | </select> |
---|
98 | </div> |
---|
99 | |
---|
100 | <div> |
---|
101 | <label for="moreInformation"><h4>More Information:</h4></label> |
---|
102 | <select name="moreInformation" id="moreInformation" onchange="location=this.value; this.value='';"> |
---|
103 | <xsl:if test="('services' != $pageType) and ('facts' != $pageType) and ('resources' != $pageType)"> |
---|
104 | <option value="javascript:location" selected="selected"></option> |
---|
105 | </xsl:if> |
---|
106 | <option value="{concat($ibis.baseRequestPath, 'indicator/facts/', $indicator/NAME, '.html')}"> |
---|
107 | <xsl:if test="'facts' = $pageType"> |
---|
108 | <xsl:attribute name="selected" select="'selected'"/> |
---|
109 | </xsl:if> |
---|
110 | Important Facts |
---|
111 | </option> |
---|
112 | <xsl:if test="string-length($indicator/SERVICES_AVAILABLE_TO_PUBLIC) != 0"> |
---|
113 | <option value="{concat($ibis.baseRequestPath, 'indicator/services/', $indicator/NAME, '.html')}"> |
---|
114 | <xsl:if test="'services' = $pageType"> |
---|
115 | <xsl:attribute name="selected" select="'selected'"/> |
---|
116 | </xsl:if> |
---|
117 | Available Services |
---|
118 | </option> |
---|
119 | </xsl:if> |
---|
120 | <option value="{concat($ibis.baseRequestPath, 'indicator/resources/', $indicator/NAME, '.html')}"> |
---|
121 | <xsl:if test="'resources' = $pageType"> |
---|
122 | <xsl:attribute name="selected" select="'selected'"/> |
---|
123 | </xsl:if> |
---|
124 | Resources & Links |
---|
125 | </option> |
---|
126 | </select> |
---|
127 | </div> |
---|
128 | |
---|
129 | <xsl:if test="0 != count($indicator/RELATIONS/RELATION/RELATED_INDICATORS/RELATED_INDICATOR)"> |
---|
130 | <div> |
---|
131 | <label for="relatedIndicators"><h4>Related Indicator Reports:</h4></label> |
---|
132 | <select name="relatedIndicators" id="relatedIndicators" onchange="location=this.value; this.value='';"> |
---|
133 | <option value="javascript:location"></option> |
---|
134 | <xsl:for-each select="$indicator/RELATIONS/RELATION/RELATED_INDICATORS/RELATED_INDICATOR"> |
---|
135 | <xsl:sort select="SORT_ORDER" order="ascending" data-type="number"/> |
---|
136 | <option value="{concat($ibis.baseRequestPath, 'indicator/summary/', NAME, '.html')}"><xsl:value-of select="TITLE"/></option> |
---|
137 | </xsl:for-each> |
---|
138 | </select> |
---|
139 | </div> |
---|
140 | </xsl:if> |
---|
141 | |
---|
142 | <xsl:if test="0 != count($indicator/TOPICS/TOPIC)"> |
---|
143 | <div> |
---|
144 | <label for="relatedIndicators"><h4>Associated Health Topics:</h4></label> |
---|
145 | <select name="associatedHealthTopics" id="associatedHealthTopics" onchange="location=this.value; this.value='';"> |
---|
146 | <option value="javascript:location"></option> |
---|
147 | <xsl:for-each select="$indicator/TOPICS/TOPIC"> |
---|
148 | <xsl:sort select="SORT_ORDER" order="ascending" data-type="number"/> |
---|
149 | <option value="{ibis:getCompleteURL(URL)}"><xsl:value-of select="TITLE"/></option> |
---|
150 | </xsl:for-each> |
---|
151 | </select> |
---|
152 | </div> |
---|
153 | </xsl:if> |
---|
154 | </div> |
---|
155 | </div> |
---|
156 | </xsl:template> |
---|
157 | |
---|
158 | </xsl:stylesheet> |
---|
159 | <!-- ============================= End of File ============================= --> |
---|
160 | |
---|