Search Mailing List Archives


Limit search to: Subject & Body Subject Author
Sort by: Reverse Sort
Limit to: All This Week Last Week This Month Last Month
Select Date Range     through    

[bioontology-support] Bug in Form Autocomplete Widget Display

Mcgibbney, Lewis J (398M) Lewis.J.Mcgibbney at jpl.nasa.gov
Tue Sep 22 09:55:15 PDT 2015


Good Morning support@,
I’ve been using the Autocomplete widget [0] taken from the form_complete.js [1] code.
When searching across ‘bp_form_complete-all-name’ BioPortal ontologies, I notice a bug when the autocomplete widget provides autocomplete results.
The bug appears to display a mixture of HTML markup mixed into the ’name’ entity.
I’ve attached a screenshot of this for your to see what I mean.
Please also see the HTML below which shows how I am using the widget

thefacetview += '<input type="text" class="facetview_freetext bp_form_complete-all-name span4" style="display:inline-block; margin:0 0 21px 0; background:' + options.searchbox_shade + ';" name="q" \
value="" placeholder="search term" data-bp_include_definitions="true" data-bp_objecttypes="class,property,individual" />';
if ( options.sharesave_link ) {
thefacetview += '<a class="btn facetview_sharesave" title="share or save this search" style="margin:0 0 21px 5px;" href=""><i class="icon-share-alt"></i></a>';
thefacetview += '<div class="facetview_sharesavebox alert alert-info" style="display:none;"> \
<button type="button" class="facetview_sharesave close">×</button> \
<input type="hidden" id="q_bioportal_preferred_name"> \
<input type="hidden" id="q_bioportal_concept_id"> \
<input type="hidden" id="q_bioportal_ontology_id"> \
<input type="hidden" id="q_bioportal_full_id"> \
<p>Share or save this search:</p> \
<textarea class="facetview_sharesaveurl" style="width:100%;height:100px;">http://' + window.location.host +
window.location.pathname + '?source=' + options.querystring + '</textarea> \
</div>';
}

Any ideas if this is incorrect usage of the widget on my side or if it is a bug server side?
Thanks in advance.
Lewis

[0] http://www.bioontology.org/wiki/index.php/NCBO_Widgets#Term-selection_field_on_a_form
[1] http://bioportal.bioontology.org/javascripts/widgets/form_complete.js

Dr. Lewis John McGibbney Ph.D., B.Sc., MAGU
Engineering Applications Software Engineer Level 2
Computer Science for Data Intensive Systems Group 398M
Jet Propulsion Laboratory
California Institute of Technology
4800 Oak Grove Drive
Pasadena, California 91109-8099
Mail Stop : 158-256C
Tel:  (+1) (818)-393-7402
Cell: (+1) (626)-487-3476
Fax:  (+1) (818)-393-1190
Email: lewis.j.mcgibbney at jpl.nasa.gov

           [cid:3F39E8BF-EA51-4587-A238-4733E150D467]

 Dare Mighty Things
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.stanford.edu/pipermail/bioontology-support/attachments/20150922/b3d6a2fa/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 2CB3CA5F-DC06-45EF-ADDA-C49A41A8C401[1].png
Type: image/png
Size: 3425 bytes
Desc: 2CB3CA5F-DC06-45EF-ADDA-C49A41A8C401[1].png
URL: <http://mailman.stanford.edu/pipermail/bioontology-support/attachments/20150922/b3d6a2fa/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: form_complete_bug.png
Type: image/png
Size: 159866 bytes
Desc: form_complete_bug.png
URL: <http://mailman.stanford.edu/pipermail/bioontology-support/attachments/20150922/b3d6a2fa/attachment-0003.png>


More information about the bioontology-support mailing list