Changeset 19896 in main
- Timestamp:
- 02/23/20 10:28:01 (2 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ibisph-view/src/main/webapp/xslt/html/indicator/profile/Indicator.xslt
r19891 r19896 2 2 3 3 <xsl:stylesheet version="3.0" 4 xmlns:xs="http://www.w3.org/2001/XMLSchema" 4 5 xmlns:xsl ="http://www.w3.org/1999/XSL/Transform" 5 6 xmlns:ibis="http://www.ibisph.org" … … 144 145 /> 145 146 <xsl:param name="titleLevel" select="$Indicator.contentBlockTitleLevel"/> 147 148 <!-- 149 <xsl:variable name="content" select="if($content instance of xs:string)then normalize-space($content) else $content"/> 150 --> 146 151 147 152 <xsl:variable name="additionalClasses"> … … 1064 1069 <xsl:with-param name="addWikiAttribute" select="true()"/> 1065 1070 </xsl:call-template> 1066 <br/>1067 1071 </xsl:if> 1068 </div> <br/>1072 </div> 1069 1073 </xsl:if> 1070 1074 </xsl:template> -
trunk/ibisph-view/src/main/webapp/xslt/html/indicator/profile/summary/Page.xslt
r19890 r19896 54 54 <xsl:variable name="indicatorView" select="document(concat(current(), '.xml'), /)/INDICATOR_VIEW"/> 55 55 <xsl:variable name="measure" select="if($Indicator.useExternalXML) then $Indicator.measure else $indicator/MEASURES/MEASURE[NAME=$indicatorView/MEASURE_NAME]"/> 56 <!-- GARTH TODO: --> 56 57 <xsl:message select="concat('view name: ', $indicatorView/NAME, ', position: ', position(), ', count: ', count($indicator/INDICATOR_VIEWS/INDICATOR_VIEW))"/> 57 58 <xsl:variable name="showMap" ibis:doc="Exposed so that SS can access." … … 108 109 <!-- 109 110 <xsl:call-template name="Indicator.dataSources"/> 111 <a href="{$ibis.baseRequestPath}indicator/view/{$indicatorView/NAME}.html"><xsl:value-of select="$indicatorView/TITLE"/> Details</a> 110 112 --> 111 <a href="{$ibis.baseRequestPath}indicator/view/{$indicatorView/NAME}.html"><xsl:value-of select="$indicatorView/TITLE"/> Details</a><br/><br/>112 113 113 114 … … 158 159 159 160 160 <xsl:if test="position() != last()">< br/><br/></xsl:if>161 <xsl:if test="position() != last()"></xsl:if> 161 162 </xsl:for-each> 162 163 </xsl:if> 163 164 164 165 <xsl:call-template name="Indicator.whyImportant"/> 166 <xsl:call-template name="Indicator.definition"/> 165 167 <xsl:call-template name="Indicator.howCalculatedTable"/> 166 168 <xsl:call-template name="Indicator.howDoing"/> -
trunk/ibisph/src/main/java/org/ibisph/databean/DataBeanToXMLService.java
r19586 r19896 118 118 String[] fieldKey = dataBean.getFieldKeys(); // might as well save non persistent as well just in case... 119 119 String[] recordKey = dataBean.getRecordKeys(); 120 String temp;120 String stringValue; 121 121 Node node; 122 122 … … 142 142 case DataBean.Field.TYPE_DATE: 143 143 Date date = dataBean.getDateFieldValue(fieldKey[i]); 144 temp= "";145 if(date != null) temp= this.dateFormat.format(date);146 XMLLib.addNode(containerNode, XMLLib.newNode(fieldKey[i], temp) );144 stringValue = ""; 145 if(date != null) stringValue = this.dateFormat.format(date); 146 XMLLib.addNode(containerNode, XMLLib.newNode(fieldKey[i], stringValue) ); 147 147 break; 148 148 case DataBean.Field.TYPE_BEAN: … … 159 159 node = null; 160 160 if(o instanceof String) { 161 temp = dataBean.getStringFieldValue(fieldKey[i]); 162 if(null != this.stringCleaner) temp = this.stringCleaner.getCleanedString(temp); 163 if((StrLib.isSomething(temp)) || this.isAddBlankValueElements) { 164 node = XMLLib.newNode(xmlNodeName, temp); 161 stringValue = dataBean.getStringFieldValue(fieldKey[i]); 162 if(StrLib.isSomething(stringValue)) { 163 stringValue = stringValue.trim(); 164 if(null != this.stringCleaner) stringValue = this.stringCleaner.getCleanedString(stringValue); 165 } 166 if((StrLib.isSomething(stringValue)) || this.isAddBlankValueElements) { 167 node = XMLLib.newNode(xmlNodeName, stringValue); 165 168 } 166 169 } … … 174 177 break; 175 178 default: 176 temp = dataBean.getStringFieldValue(fieldKey[i]); 177 if(null != this.stringCleaner) temp = this.stringCleaner.getCleanedString(temp); 178 if((StrLib.isSomething(temp)) || this.isAddBlankValueElements) { 179 XMLLib.addNode(containerNode, XMLLib.newNode(fieldKey[i], temp) ); 179 stringValue = dataBean.getStringFieldValue(fieldKey[i]); 180 if(StrLib.isSomething(stringValue)) { 181 stringValue = stringValue.trim(); 182 if(null != this.stringCleaner) stringValue = this.stringCleaner.getCleanedString(stringValue); 183 } 184 if((StrLib.isSomething(stringValue)) || this.isAddBlankValueElements) { 185 XMLLib.addNode(containerNode, XMLLib.newNode(fieldKey[i], stringValue) ); 180 186 } 181 187 }
Note: See TracChangeset
for help on using the changeset viewer.