Project

General

Profile

« Previous | Next » 

Revision 4650

include demographic data if present in the datapackage
TODO: handle a mixture of datapackages when performing the union (i.e. cases when one package as demographic data and the other does not)
http://bugzilla.ecoinformatics.org/show_bug.cgi?id=3519

View differences:

first-assessment-resultset.xsl
310 310

  
311 311
						<td class="text_plain" nowrap="nowrap">
312 312
						
313
						<xsl:if test="count(./param[@name='dataset/dataTable/entityName']) = 0" >
314
							No Data
315
						</xsl:if>	
316
						<xsl:if test="count(./param[@name='dataset/dataTable/entityName']) >= 1" >
317
						
313 318
							<script type="text/javascript" language="Javascript">
314 319
								<![CDATA[
315 320
									//what are our options?
......
363 368
								</xsl:attribute>
364 369
							</input>
365 370
							
371
							</xsl:if>
372
							<xsl:if test="count(./param[@name='dataset/dataTable/entityName']) >= 2" >
373
								<!-- demographic data is present -->
374
								<img border="none">
375
									<xsl:attribute name="src">
376
										<xsl:value-of select="$contextURL" />
377
										<xsl:text>/style/skins/first/images/user.gif</xsl:text>
378
									</xsl:attribute>
379
								</img>
380
							</xsl:if>
381
							
366 382
						</td>
367 383
						<td>
368 384
							
......
387 403
								</input>
388 404
							</xsl:for-each>
389 405
							
406
							<!-- demographic data - present or not? -->
407
							<input type="hidden">
408
								<xsl:attribute name="name">
409
									<xsl:value-of select="./docid" />
410
									<xsl:text>demographicData</xsl:text>
411
								</xsl:attribute>
412
								<xsl:attribute name="value">
413
									<xsl:choose>	
414
										<xsl:when test="count(./param[@name='dataset/dataTable/entityName']) >= 2" >
415
											<xsl:text>true</xsl:text>
416
										</xsl:when>
417
										<xsl:otherwise>
418
											<xsl:text>false</xsl:text>
419
										</xsl:otherwise>
420
									</xsl:choose>
421
								</xsl:attribute>
422
							</input>
423
							
390 424
							<br/>
391 425
														
392 426
						</td>

Also available in: Unified diff