[1876] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?> |
---|
| 2 | |
---|
[14712] | 3 | <xsl:stylesheet version="3.0" |
---|
[1876] | 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. |
---|
[15958] | 18 | </description> |
---|
[1876] | 19 | </ibis:doc> |
---|
| 20 | |
---|
[19781] | 21 | <xsl:param name="Page.contentTitle" |
---|
[3990] | 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 | > |
---|
[17123] | 27 | Health Indicator Report of <xsl:value-of select="ibis:getIndicatorTitle($indicator)"/> |
---|
[3990] | 28 | </xsl:param> |
---|
| 29 | |
---|
[5947] | 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." |
---|
[3990] | 37 | /> |
---|
[5947] | 38 | <xsl:param name="Page.metaKeywords" select="$Page.metaDescription"/> |
---|
[3990] | 39 | |
---|
| 40 | |
---|
[2585] | 41 | <xsl:param name="Page.orgUnitName" select="$indicator/ORG_UNIT_NAME" |
---|
[1876] | 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 |
---|
[3990] | 45 | off of via the '/INDICATOR/ORG_UNIT_NAME' element. |
---|
| 46 | " |
---|
[1876] | 47 | /> |
---|
| 48 | |
---|
| 49 | |
---|
[19718] | 50 | <xsl:param name="Page.htmlClass" select="'IndicatorProfile'"/> |
---|
[1876] | 51 | |
---|
[19718] | 52 | |
---|
| 53 | |
---|
[1876] | 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 |
---|
[19890] | 56 | the ibis.baseRequestPath parameter being defined. |
---|
[1876] | 57 | --> |
---|
| 58 | |
---|
[7005] | 59 | <xsl:template name="Page.specificHeadContent" |
---|
[2266] | 60 | ibis:doc="Turn off caching if there's an XML URL." |
---|
[1876] | 61 | > |
---|
[4743] | 62 | <xsl:if test="string-length($xmlURL) != 0"> |
---|
[1876] | 63 | <xsl:call-template name="Page.metaNoCacheControl"/> |
---|
| 64 | </xsl:if> |
---|
| 65 | </xsl:template> |
---|
| 66 | |
---|
[19781] | 67 | |
---|
| 68 | <xsl:template name="Page.options"> |
---|
| 69 | <xsl:param name="title"/> |
---|
[19879] | 70 | <xsl:param name="pageType"/> |
---|
[19781] | 71 | |
---|
[19867] | 72 | <div class="ContentOptions"> |
---|
[19781] | 73 | <h3><xsl:value-of select="$title"/></h3> |
---|
| 74 | |
---|
[19879] | 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"> |
---|
[19890] | 84 | <option value="{concat($ibis.baseRequestPath, 'indicator/view/', NAME, '.html')}"> |
---|
[19879] | 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> |
---|
[19890] | 91 | <option value="{concat($ibis.baseRequestPath, 'indicator/summary/', $indicator/NAME, '.html')}"> |
---|
[19879] | 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> |
---|
[19781] | 99 | |
---|
[19879] | 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> |
---|
[19781] | 105 | </xsl:if> |
---|
[19890] | 106 | <option value="{concat($ibis.baseRequestPath, 'indicator/facts/', $indicator/NAME, '.html')}"> |
---|
[19879] | 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"> |
---|
[19890] | 113 | <option value="{concat($ibis.baseRequestPath, 'indicator/services/', $indicator/NAME, '.html')}"> |
---|
[19879] | 114 | <xsl:if test="'services' = $pageType"> |
---|
| 115 | <xsl:attribute name="selected" select="'selected'"/> |
---|
| 116 | </xsl:if> |
---|
| 117 | Available Services |
---|
| 118 | </option> |
---|
| 119 | </xsl:if> |
---|
[19890] | 120 | <option value="{concat($ibis.baseRequestPath, 'indicator/resources/', $indicator/NAME, '.html')}"> |
---|
[19879] | 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> |
---|
[19781] | 128 | |
---|
[19879] | 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"/> |
---|
[19890] | 136 | <option value="{concat($ibis.baseRequestPath, 'indicator/summary/', NAME, '.html')}"><xsl:value-of select="TITLE"/></option> |
---|
[19879] | 137 | </xsl:for-each> |
---|
| 138 | </select> |
---|
| 139 | </div> |
---|
| 140 | </xsl:if> |
---|
[19868] | 141 | |
---|
[19879] | 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> |
---|
[19781] | 155 | </div> |
---|
| 156 | </xsl:template> |
---|
| 157 | |
---|
[1876] | 158 | </xsl:stylesheet> |
---|
| 159 | <!-- ============================= End of File ============================= --> |
---|
| 160 | |
---|