Search Mailing List Archives
[bioontology-support] Obtaining ontology term/class object from form_complete.js (Term-selection_field_on_a_form Widget)
Lewis John McGibbney
lewis2 at stanford.edu
Tue May 21 13:13:34 PDT 2013
Yes, after importing the widget my html markup is like this
<h2>Ontology Concept Enrichment</h2>
<span id="search_help">(Use BioPortal to add term-selections as field queries)</span>
<input type="text" id="bp_form_complete" name="query" class="bp_form_complete-all-name"
I am looking at the JS right now, and I think the value that I am after is
which represents the name case.
I will try this out and see where i get with it.
Thank you for your feedback
----- Original Message -----
From: "Trish Whetzel" <whetzel at stanford.edu>
To: "Lewis John McGibbney" <lewis2 at stanford.edu>
Cc: "BioPortal User Support" <bioontology-support at lists.stanford.edu>
Sent: Tuesday, May 21, 2013 1:05:17 PM
Subject: Re: [bioontology-support] Obtaining ontology term/class object from form_complete.js (Term-selection_field_on_a_form Widget)
A quick question, do you have the widget configured to return the ontology term name value, e.g. using name to put the preferred name of the term (e.g., "Common Neoplasm") as the autocomplete value? What value is returned?
On May 20, 2013, at 12:20 PM, Lewis John McGibbney wrote:
I am having a problem (e.g. I am lost) with my implementation of the Term-selection on a form widget .
Right now I am unable to obtain the object which directly represents the user text input e.g. the search term or query for the above widget.
Consider the following example, a user enters the text String "zebra" and thr autocompletion functionality suggests "zebrafish". The user then selects "zebrafish". It is the object which represents "zebrafish" which I need to access.
The reason I wish to get this object is that I wish to then use it as a field query for faceting within Apache Solr.
Any direction which would enable me to identify this object would be greatly appreciated. Additionally some direction from any dev's who work on the widgets and who know them inside out would be the mecca right now.
Thank you so much in advance for any help.
Dr. Lewis John McGibbney
Post Doctoral Research Scholar
Engineering Informatics Group
Civil and Environmental Engineering
Room 279, Jerry Yang and Akiko Yamazaki Environment and Energy Building (Y2E2)
473 Via Ortega
Stanford, CA 94305-4020
web | http://stanford.edu/people/lewis2
Linkedin | http://linkedin.com/in/lmcgibbney
Phone | +1(408).757.2791
Skype | lewis.john.mcgibbney
bioontology-support mailing list
bioontology-support at lists.stanford.edu
More information about the bioontology-support