Project

General

Profile

« Previous | Next » 

Revision 5993

include data search - new form fields and semQuery schema to allow searching for Characteristics data

View differences:

index.jsp
451 451
		$("#" + containerId).append(clone);
452 452
	});
453 453
	
454
	// get the current data values (and operator)
455
	$("#" + containerId).append("(");
456
	$(".dataClass").each(function(index) {
457
		var clone = $(this).clone();
458
		var value = $(this).val();
459
		var name = $(this).attr("name");
460
		var id = $(this).attr("id");
461
		
462
		// put the data conditions in as hidden params
463
		$("#" + containerId).append("<input type='hidden' name='" + name + "' id='" + id + "' value='" + value + "'");
464
		// with a text representation
465
		if (index > 0) {
466
			$("#" + containerId).append(" ");
467
		}
468
		$("#" + containerId).append(value);
469
		
470
	});
471
	$("#" + containerId).append(")");
472
	
454 473
	// add the remove button
455 474
	var removeButtonId = containerId + "_remove";
456 475
	$("#" + containerId).append("<input type='button' value='Remove' id='" + removeButtonId + "'/>");
......
570 589
										<input type="hidden" class="conceptValue" name="activeCharacteristicsValue" id="activeCharacteristicsValue" title="Characteristic"/>
571 590
										<input type="hidden" class="conceptClass" name="activeCharacteristicsClass" id="activeCharacteristicsClass" value="http://ecoinformatics.org/oboe/oboe.1.0/oboe-core.owl#Characteristic"/>
572 591
									</div>
592
									
573 593
								</td>
574 594
							</tr>
595
							<tr>
596
								<th>
597
									<p>and data values</p>
598
								</th>
599
							</tr>
600
							<tr>
601
								<td>
602
									<div id="characteristicData">
603
										<select id="dataOperator" name="dataOperator" class="dataClass">
604
											<option value="EQUALS">=</option>
605
											<option value="NOT EQUALS">!=</option>
606

  
607
											<option value="LESS THAN OR EQUALS">&lt;=</option>
608
											<option value="LESS THAN">&lt;</option>
609
											<option value="GREATER THAN OR EQUALS">&gt;=</option>
610
											<option value="GREATER THAN OR EQUALS">&gt;</option>
611

  
612
											<option value="LIKE">like</option>
613
											<option value="NOT LIKE">not like</option>
614
										</select>
615
										<input type="text" id="dataValue" name="dataValue" class="dataClass"/>
616
									</div>
617
								</td>
618
							</tr>
575 619
						</table>
576 620
					</td>
577 621
					<td>

Also available in: Unified diff