Changeset 17416 in main for trunk/ibisph-view/src/main/webapp/xslt/html/indicator/profile/view/Page.xslt
- Timestamp:
- 11/03/18 23:42:16 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ibisph-view/src/main/webapp/xslt/html/indicator/profile/view/Page.xslt
r17255 r17416 8 8 exclude-result-prefixes="ibis xs xsl" 9 9 > 10 <xsl:import href="../../../../xml/Interactive.xslt"/> 11 <xsl:import href="../../../../json/Dataset.xslt"/> 12 <xsl:import href="../../../../json/Kendo.xslt"/> 13 <xsl:import href="../../../../json/LeafletMap.xslt"/> 14 <xsl:import href="../../../Graphic.xslt"/> 15 <xsl:import href="../Indicator.xslt"/> 10 16 <xsl:import href="../Page.xslt"/> 11 <xsl:import href="../../../../xml/Interactive.xslt"/>12 <xsl:import href="../../../../json/indicator/profile/InteractiveJSON.xslt"/>13 <xsl:import href="../../../Kendo.xslt"/>14 <xsl:import href="../../../LeafletMap.xslt"/>15 <xsl:import href="../Indicator.xslt"/>16 17 17 18 … … 33 34 </xsl:param> 34 35 35 36 36 <xsl:param name="Page.comparisonDimensionName" select="'GeoState'"/> 37 37 <xsl:param name="Page.comparisonDimensionValue" select="'35'"/> 38 38 39 40 39 <xsl:param name="Indicator.contentBlockType" select="'fixed'"/> 41 40 <xsl:param name="Indicator.contentBlockTitleLevel" select="3"/> 42 43 44 45 46 <xsl:template name="xxxxxxxxxxxPage.specificScript" ibis:doc="Provides Kendo and Leaflet script code.">47 <xsl:if test="0 = string-length($indicatorView/SURROGATE_VIEW_URL)">48 <xsl:call-template name="Page.interativeContent">49 <xsl:with-param name="indicatorView" select="$indicatorView"/>50 </xsl:call-template>51 </xsl:if>52 </xsl:template>53 41 54 42 … … 70 58 71 59 72 73 60 <xsl:template name="Page.interativeContent" 74 61 ibis:doc="Main interactive sections content template." … … 78 65 <xsl:variable name="measureName" select="$indicatorView/MEASURE_NAME"/> 79 66 <xsl:variable name="measure" select="($indicator//MEASURE[NAME = $measureName])[1]"/> 80 81 67 82 68 <xsl:call-template name="ContentContainer.expandable"> … … 89 75 </xsl:call-template> 90 76 91 <xsl:variable name="showMap" select="ibis: LeafletMap.showMap()"/> <!-- $indicatorView/MAP_NAME -->77 <xsl:variable name="showMap" select="ibis:Graphic.showMap($indicatorView/MAP_NAME)"/> 92 78 <xsl:if test="$showMap"> 93 79 <xsl:call-template name="ContentContainer.expandable"> 94 80 <xsl:with-param name="title" select="'Map'"/> 95 81 <xsl:with-param name="content"> 96 <xsl:call-template name=" LeafletMap.mapContainer">82 <xsl:call-template name="Graphic.mapContainer"> 97 83 <xsl:with-param name="containerID" select="'map'"/> 98 84 <xsl:with-param name="title" select="ibis:getMapTitle($indicator, $indicatorView, $Indicator.dimensions)"/> … … 109 95 </xsl:if> 110 96 111 <xsl:if test="ibis: Kendo.showChart($indicatorView/CHART_NAME)">97 <xsl:if test="ibis:Graphic.showChart($indicatorView/CHART_NAME)"> 112 98 <xsl:call-template name="ContentContainer.expandable"> 113 99 <xsl:with-param name="title" select="if('Line'=$indicatorView/CHART_NAME) then 'Trend' else 'Chart'"/> 114 100 <xsl:with-param name="content"> 115 <xsl:call-template name=" Kendo.chartContainer">101 <xsl:call-template name="Graphic.chartContainer"> 116 102 <xsl:with-param name="containerID" select="'chart'"/> 117 103 <xsl:with-param name="title" select="ibis:getChartTitle($indicator, $indicatorView, $Indicator.dimensions)"/> … … 220 206 <xsl:with-param name="indicatorView" select="$indicatorView"/> 221 207 <xsl:with-param name="measure" select="$Indicator.measure"/> 208 <xsl:with-param name="showMap" select="$showMap"/> 222 209 </xsl:call-template> 223 210 </xsl:template> … … 225 212 226 213 227 <xsl:template name="Page.leafletKendoScript" 228 ibis:doc="Provides the kendo and leaflet javascript." 229 > 214 <xsl:template name="Page.leafletKendoScript" ibis:doc="Provides the kendo and leaflet javascript."> 230 215 <xsl:param name="indicatorView"/> 231 216 <xsl:param name="measure"/> 232 233 <xsl:if test="ibis:LeafletMap.showMap($indicatorView/MAP_NAME)"> 234 <xsl:call-template name="LeafletMap.choroplethJavaScript"/> 217 <xsl:param name="showMap" select="ibis:Graphic.showMap($indicatorView/MAP_NAME)"/> 218 219 <xsl:if test="$showMap"> 220 <xsl:call-template name="Graphic.choroplethMapJavaScript"/> 235 221 </xsl:if> 236 222 <xsl:variable name="measureValueFormatPattern" select="($Indicator.valueTypes/VALUE_TYPE[NAME = $measure/VALUE_TYPE_NAME]/XSLT_FORMAT_PATTERN)[1]"/> … … 280 266 var records = 281 267 [<xsl:text> </xsl:text> 282 <xsl:call-template name=" InteractiveJSON.getDatasetRecords">268 <xsl:call-template name="Dataset.getDatasetRecordsJSON"> 283 269 <xsl:with-param name="dimensions" select="$Indicator.dimensions"/> 284 270 <xsl:with-param name="datasetRecords" select="$indicatorViewDatasetRecords"/> … … 308 294 <xsl:with-param name="recordDimensionFields" select="$recordDimensionFields"/> 309 295 <xsl:with-param name="recordAncillaryValueFields" select="$recordAncillaryValueFields"/> 296 <!-- GARTH TODO: Total row, note and label, 297 NEED VALUE ATTRIBUTE SUPPORT AS WELL. 298 --> 310 299 <xsl:with-param name="showFooterRow" select="false()"/> 311 300 <xsl:with-param name="showNoteColumn" select="false()"/> … … 368 357 <xsl:message select="exists($indicatorView/DIMENSION_USAGES/DIMENSION_USAGE[DIMENSION_NAME = $Indicator.dimensions/DIMENSION[exists(GEOGRAPHY_FLAG)]])"/> 369 358 <xsl:message select="$Indicator.dimensions/DIMENSION[exists(GEOGRAPHY_FLAG)]/NAME"/> 370 <xsl:message select="concat('Interactive - Show Map: ', $ Interactive.showMap, ', geoDimensionName:', $geoDimensionName)"/>359 <xsl:message select="concat('Interactive - Show Map: ', $showMap, ', geoDimensionName:', $geoDimensionName)"/> 371 360 372 361 <xsl:message select="'XXXXXXXXXXXXXXXXXXXXXXXXXXXXX interact.xslt'"/> … … 442 431 443 432 444 <xsl:if test=" ibis:LeafletMap.showMap($indicatorView/MAP_NAME)">433 <xsl:if test="$showMap"> 445 434 var leafletMapConstructorJSON = $.extend 446 435 (true, {} … … 469 458 ); 470 459 $leafletMap = $("#map").leaflet(leafletMapConstructorJSON); 471 <!--472 <xsl:call-template name="LeafletMap.mapsJavaScript"/>473 <xsl:call-template name="LeafletMap.namedMapJavaScript"/>474 -->475 460 </xsl:if> 476 461 477 462 }); //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ End of Function ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 478 <!-- 479 <xsl:call-template name="Kendo.chartsJavaScript"/> 480 <xsl:call-template name="Kendo.namedChartJavaScript"/> 481 <xsl:call-template name="Kendo.gridsJavaScript"/> 482 <xsl:call-template name="Kendo.namedGridJavaScript"/> 483 --> 463 484 464 </script> 485 465 </xsl:template>
Note: See TracChangeset
for help on using the changeset viewer.