Project

General

Profile

« Previous | Next » 

Revision 4886

omit duplicate values in the for the standard metadata header section (columns for each question)

View differences:

download.jsp
169 169
		
170 170
		//do the metadata header rows (basically rotate them around)
171 171
		Iterator headerIter = header.iterator();
172
		String lastValue = "";
172 173
		while (headerIter.hasNext()) {
173 174
			String column = (String) headerIter.next();
174 175
			//get the pivotValue part of column name
......
189 190
					if (newMetadataRow == null) {
190 191
						newMetadataRow = new OrderedMap();
191 192
					}
193
					//if it's the same as the last one, just use null value
194
					if (lastValue.equals(pivotValue)) {
195
						value = null;
196
					} 
192 197
					newMetadataRow.put(column, value);
193 198
					metadataHeaders.put(key, newMetadataRow);
194 199
				}
195 200
			}
201
			
202
			lastValue = pivotValue;
203

  
196 204
		}
197 205
		
198 206
		//make metadata rows as list/arrays on the reteurn table

Also available in: Unified diff