Revision 5661
Added by ben leinfelder about 14 years ago
lib/style/skins/semtools/search.js | ||
---|---|---|
24 | 24 |
"<title>Semantic Search Example</title>" + |
25 | 25 |
"<!-- Match all criteria, must be on same observation -->" + |
26 | 26 |
"<" + operator + " strict='" + strict + "'>"; |
27 |
for (var i=0; i < submitFormObj.dynamicClass.length; i++) { |
|
28 |
var searchClass = submitFormObj.dynamicClass[i].value; |
|
29 |
var searchValue = submitFormObj.dynamicValue[i].value; |
|
30 |
if (searchValue!="") { |
|
31 |
submitFormObj.query.value += |
|
32 |
"<condition " + |
|
33 |
"concept='" + searchClass + "' " + |
|
34 |
"operator='EQUALS'>" + |
|
35 |
searchValue + |
|
36 |
"</condition>"; |
|
37 |
} |
|
38 |
} |
|
27 |
|
|
39 | 28 |
// handle specific classes |
40 | 29 |
// Entity |
41 | 30 |
//for (var i=0; i < submitFormObj.activeEntities.length; i++) { |
lib/style/skins/semtools/index.jsp | ||
---|---|---|
222 | 222 |
</div> |
223 | 223 |
</td> |
224 | 224 |
</tr> |
225 |
<tr> |
|
226 |
<td colspan="1"> |
|
227 |
<input type="text" name="dynamicValue" id="dynamicValue" class="bp_form_complete-all-uri" size="60" /> |
|
228 |
<input type="hidden" name="dynamicClass" id="dynamicClass" value="http://ecoinformatics.org/oboe/oboe.1.0/oboe-core.owl#Measurement"/> |
|
229 |
</td> |
|
230 |
</tr> |
|
231 | 225 |
</table> |
232 | 226 |
</td> |
233 | 227 |
</tr> |
... | ... | |
254 | 248 |
</div> |
255 | 249 |
</td> |
256 | 250 |
</tr> |
257 |
<tr> |
|
258 |
<td colspan="1"> |
|
259 |
<input type="text" name="dynamicValue" id="dynamicValue" class="bp_form_complete-all-uri" size="30" /> |
|
260 |
<input type="hidden" name="dynamicClass" id="dynamicClass" value="http://ecoinformatics.org/oboe/oboe.1.0/oboe-core.owl#Entity"/> |
|
261 |
</td> |
|
262 |
</tr> |
|
263 | 251 |
</table> |
264 | 252 |
</td> |
265 | 253 |
<td> |
... | ... | |
284 | 272 |
</div> |
285 | 273 |
</td> |
286 | 274 |
</tr> |
287 |
<tr> |
|
288 |
<td colspan="1"> |
|
289 |
<input type="text" name="dynamicValue" id="dynamicValue" class="bp_form_complete-all-uri" size="30" /> |
|
290 |
<input type="hidden" name="dynamicClass" id="dynamicClass" value="http://ecoinformatics.org/oboe/oboe.1.0/oboe-core.owl#Characteristic"/> |
|
291 |
</td> |
|
292 |
</tr> |
|
293 | 275 |
</table> |
294 | 276 |
</td> |
295 | 277 |
<td> |
... | ... | |
314 | 296 |
</div> |
315 | 297 |
</td> |
316 | 298 |
</tr> |
317 |
<tr> |
|
318 |
<td colspan="1"> |
|
319 |
<input type="text" name="dynamicValue" id="dynamicValue" class="bp_form_complete-all-uri" size="30" /> |
|
320 |
<input type="hidden" name="dynamicClass" id="dynamicClass" value="http://ecoinformatics.org/oboe/oboe.1.0/oboe-core.owl#Protocol"/> |
|
321 |
</td> |
|
322 |
</tr> |
|
323 | 299 |
</table> |
324 | 300 |
</td> |
325 | 301 |
</tr> |
Also available in: Unified diff
remove bioportal search fields