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

Jennifer Leigh Vendetti vendetti at stanford.edu
Fri Oct 2 15:41:58 PDT 2015


I haven’t spent too much time looking at this in detail yet, but I’m reasonably certain it’s not a server-side issue.  I think the issue is in the widget’s JS code (form_complete.js).


On Oct 2, 2015, at 3:28 PM, Mcgibbney, Lewis J (398M) <Lewis.J.Mcgibbney at jpl.nasa.gov<mailto:Lewis.J.Mcgibbney at jpl.nasa.gov>> wrote:

Hi Jennifer,
If your able to tell me or at least hint at whether this is server side or within the widget then I c an also true Bork on it... If it is in the widget that is.
Thanks for the reply.
Lewis

Sent from my iPhone

On Oct 2, 2015, at 3:24 PM, Jennifer Leigh Vendetti <vendetti at stanford.edu<mailto:vendetti at stanford.edu>> wrote:

Hello Lewis,

Apologies for the late reply.  I was able to reproduce this behavior, so it’s not incorrect usage of the widget on your part.  It looks like a bug in the widget’s JavaScript code.  I’ve entered an issue in our tracker and we’re working on getting this fixed.

Jennifer



On Sep 22, 2015, at 9:55 AM, Mcgibbney, Lewis J (398M) <Lewis.J.Mcgibbney at jpl.nasa.gov<mailto:Lewis.J.Mcgibbney at jpl.nasa.gov>> wrote:

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<mailto:lewis.j.mcgibbney at jpl.nasa.gov>

           <2CB3CA5F-DC06-45EF-ADDA-C49A41A8C401[1].png>

 Dare Mighty Things
<form_complete_bug.png>_______________________________________________
bioontology-support mailing list
bioontology-support at lists.stanford.edu<mailto:bioontology-support at lists.stanford.edu>
https://mailman.stanford.edu/mailman/listinfo/bioontology-support


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.stanford.edu/pipermail/bioontology-support/attachments/20151002/5645a91a/attachment-0001.html>


More information about the bioontology-support mailing list