ontoportal-lirmm / bioportal_web_ui

A Rails application for ontologies portal.
http://agroportal.lirmm.fr/
Other
5 stars 4 forks source link

Consider using typeahead for ROR, ORCID, License ??? #350

Open jonquet opened 10 months ago

jonquet commented 10 months ago

https://twitter.github.io/typeahead.js/

For ROR see for insatnce

// See https://ror.readme.io/docs/create-ror-powered-typeaheads // https://github.com/twitter/typeahead.js/blob/master/doc/jquery_typeahead.md

Capture d’écran 2023-10-10 à 16 03 27
syphax-bouazzouni commented 10 months ago

Typehead.js is just an autocomplete library; the same behavior and display can be done using any other tool. We already have that in our current agent input.

The added value here is that they have an API https://api.ror.org/organizations?query=o, that returns a JSON and displays it using the Typehead.js component.

Demo https://ror-community.github.io/ror-typeahead-demos/

jonquet commented 10 months ago

Ok. Fine with me the tool. The ROR autocomplete is just the feature.