Changeset 17802 in main
- Timestamp:
- 01/22/19 08:09:26 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
adopters/nd/trunk/src/main/webapps/ibisph-view/xslt/html/query/module/result/interactive/SiteSpecific.xslt
r13535 r17802 28 28 29 29 <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ TEMPLATES ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --> 30 31 <xsl:template name="Page.sectionsContent" 32 ibis:doc="Main page content template that creates the selections 33 section, the optional graphic, optional 2-d table, data list table." 34 > 35 <!-- really vars but implemented as params - just in case... --> 36 <xsl:param name="recordCount" select="count($Result.queryResult/RECORDS/RECORD)"/> 37 <xsl:param name="chartName" select="$Result.queryModule/REQUEST/CHART_NAME"/> 30 38 39 <a name="top"></a> 40 41 <!-- Display the data. If no records are available then provide the user 42 with a message on what is possibly going on. 43 --> 44 <xsl:choose> 45 <xsl:when test="exists($Result.queryModule/REQUEST/ERROR)"> 46 <xsl:copy-of select="$Result.requestErrorMessageContent"/> 47 </xsl:when> 48 49 <xsl:when test="exists($Result.queryResult/ERROR)"> 50 <xsl:copy-of select="$Result.resultErrorMessageContent"/> 51 </xsl:when> 52 53 <xsl:when test="not(exists($Result.queryResult))"> 54 <xsl:copy-of select="$Result.pleaseWaitMessageContent"/> 55 </xsl:when> 56 57 <xsl:when test="not(exists($Result.queryResult)) or ($recordCount = 0)"> 58 <xsl:copy-of select="$Result.resultNoDataMessageContent"/> 59 </xsl:when> 60 </xsl:choose> 61 62 63 <!-- If records, then display the data list table. --> 64 <xsl:call-template name="UserSelections.criteria"> 65 <xsl:with-param name="queryModule" select="$Result.queryModule"/> 66 <xsl:with-param name="criteriaTitle" select="'Query Criteria'"/> 67 <xsl:with-param name="criteriaDescription" 68 select="if(exists($Result.configuration/DESCRIPTION)) 69 then $Result.configuration/DESCRIPTION 70 else 'User query criteria includes filtering and how the data are grouped' 71 " 72 /> 73 <xsl:with-param name="contentBlockType" select="$Page.contentBlockType"/> 74 <xsl:with-param name="expandableContentShow" select="true()"/> 75 </xsl:call-template> 76 <!--xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 77 MD MODS 11/16/2018 Do not show Map if ACTUAL_GROUP_BY/CATEGORY_DIMENSION_NAME='StateOverall' 78 79 <xsl:value-of select="$Result.queryModule/REQUEST/ACTUAL_GROUP_BY/CATEGORY_DIMENSION_NAME"/><br/> 80 <xsl:value-of select="$LeafletMap.showMap and not($Result.queryModule/REQUEST/ACTUAL_GROUP_BY/CATEGORY_DIMENSION_NAME='StateOverall')"/> 81 --> 82 <xsl:if test="$LeafletMap.showMap 83 and not (starts-with($Result.queryModule/REQUEST/ACTUAL_GROUP_BY/CATEGORY_DIMENSION_NAME, 'State')) 84 and not (starts-with($Result.queryModule/REQUEST/ACTUAL_GROUP_BY/CATEGORY_DIMENSION_NAME, 'Urban')) 85 and not (starts-with($Result.queryModule/REQUEST/ACTUAL_GROUP_BY/CATEGORY_DIMENSION_NAME, 'InCity'))"> <!-- using starts-with State --> 86 <!-- <xsl:if test="$LeafletMap.showMap and not (contains($Result.queryModule/REQUEST/ACTUAL_GROUP_BY/CATEGORY_DIMENSION_NAME, 'State'))"> using contains State--> 87 <!-- <xsl:if test="$LeafletMap.showMap and not($Result.queryModule/REQUEST/ACTUAL_GROUP_BY/CATEGORY_DIMENSION_NAME='StateOverall')"> original for just StateOverall name--> 88 <xsl:call-template name="ContentContainer.contentBlock"> 89 <xsl:with-param name="title" select="'Map'"/> 90 <xsl:with-param name="content"> 91 <xsl:choose> 92 <xsl:when test="string-length($Result.queryModule/REQUEST/ACTUAL_GROUP_BY/SERIES_DIMENSION_NAME) != 0"> 93 <xsl:copy-of select="$Page.nonMapableMessageContent"/> 94 </xsl:when> 95 <xsl:otherwise> 96 <xsl:call-template name="LeafletMap.mapContainer"> 97 <xsl:with-param name="containerID" select="'map'"/> 98 <xsl:with-param name="title" select="''"/> 99 </xsl:call-template> 100 </xsl:otherwise> 101 </xsl:choose> 102 </xsl:with-param> 103 <xsl:with-param name="contentBlockType" select="$Page.contentBlockType"/> 104 <xsl:with-param name="expandableContentShow" select="true()"/> 105 </xsl:call-template> 106 </xsl:if> 107 108 <xsl:if test="($chartName != 'None')"> 109 <xsl:call-template name="ContentContainer.contentBlock"> 110 <xsl:with-param name="title" select="'Chart'"/> 111 <xsl:with-param name="content"> 112 <xsl:call-template name="Kendo.chartContainer"> 113 <xsl:with-param name="containerID" select="'chart'"/> 114 <xsl:with-param name="defaultContent"> 115 <xsl:copy-of select="$Page.nonChartableMessageContent"/> 116 </xsl:with-param> 117 </xsl:call-template> 118 </xsl:with-param> 119 <xsl:with-param name="contentBlockType" select="$Page.contentBlockType"/> 120 <xsl:with-param name="expandableContentShow" select="true()"/> 121 </xsl:call-template> 122 </xsl:if> 123 124 <xsl:call-template name="ContentContainer.contentBlock"> 125 <xsl:with-param name="title" select="'Data Table'"/> 126 <xsl:with-param name="content"> 127 <div class="Graphic Grid ScrollableContainer"> 128 <div id="grid"></div> 129 <xsl:call-template name="Result.dataTableValuesFootnote"/> 130 </div> 131 </xsl:with-param> 132 <xsl:with-param name="contentBlockType" select="$Page.contentBlockType"/> 133 <xsl:with-param name="expandableContentShow" select="true()"/> 134 </xsl:call-template> 135 136 <xsl:call-template name="Interactive.leafletKendoScript"> 137 <xsl:with-param name="queryModule" select="$Result.queryModule"/> 138 </xsl:call-template> 139 140 <!-- Data Notes --> 141 <xsl:call-template name="ContentContainer.contentBlockWithDelimitedTitleTextsNodesets"> 142 <xsl:with-param name="title" select="'Data Notes'"/> 143 <xsl:with-param name="titleAndTextsNodeset" select="$Result.configuration/DATA_NOTES/DATA_NOTE"/> 144 <xsl:with-param name="contentBlockType" select="$Page.contentBlockType"/> 145 <xsl:with-param name="addWikiAttribute" select="true()"/> 146 </xsl:call-template> 147 148 <!-- Data Sources --> 149 <xsl:call-template name="ContentContainer.contentBlock"> 150 <xsl:with-param name="title" select="'Data Sources'"/> 151 <xsl:with-param name="content"> 152 <ul> 153 <xsl:for-each select="$Result.configuration/DATA_SOURCES/DATA_SOURCE"> 154 <xsl:sort select="SORT_ODRER" order="ascending" data-type="number"/> 155 <li><xsl:value-of select="TEXT"/></li> 156 </xsl:for-each> 157 </ul> 158 </xsl:with-param> 159 <xsl:with-param name="contentBlockType" select="$Page.contentBlockType"/> 160 </xsl:call-template> 161 162 <!-- Data Issues --> 163 <xsl:call-template name="ContentContainer.contentBlockWithDelimitedTitleTextsNodesets"> 164 <xsl:with-param name="title" select="'Data Issues'"/> 165 <xsl:with-param name="titleAndTextsNodeset" select="$Result.configuration/DATA_ISSUES/DATA_ISSUE"/> 166 <xsl:with-param name="contentBlockType" select="$Page.contentBlockType"/> 167 <xsl:with-param name="addWikiAttribute" select="true()"/> 168 </xsl:call-template> 169 170 <xsl:call-template name="ContentContainer.contentBlock"> 171 <xsl:with-param name="title" select="'Query Date Time Stamp'"/> 172 <xsl:with-param name="content"> 173 These data were queried on: <xsl:value-of select="/QUERY_MODULE/REQUEST/FINISHED_DATE"/> 174 <xsl:if test="boolean(/QUERY_MODULE/IBISQ_QUERY_RESULT/DATASET/MODIFIED_DATE)"> 175 <br/> 176 The dataset was last updated on: <xsl:value-of select="/QUERY_MODULE/IBISQ_QUERY_RESULT/DATASET/MODIFIED_DATE"/> 177 </xsl:if> 178 </xsl:with-param> 179 <xsl:with-param name="contentBlockType" select="$Page.contentBlockType"/> 180 <xsl:with-param name="expandableContentShow" select="true()"/> 181 </xsl:call-template> 182 <br/> 183 184 <a href="#top" class="Top">Top</a> 185 186 187 188 </xsl:template> 189 190 31 191 </xsl:stylesheet> 32 192 <!-- ============================= End of File ============================= -->
Note: See TracChangeset
for help on using the changeset viewer.