agroportal / project-management

Repository used to consolidate documentation about the AgroPortal project and track content related issues.
http://agroportal.lirmm.fr
7 stars 0 forks source link

Migrate URI to Label Ajax feature #583

Closed syphax-bouazzouni closed 3 weeks ago

syphax-bouazzouni commented 4 months ago

Details see https://github.com/ontoportal-lirmm/bioportal_web_ui/issues/647, In summary, the behavior that is repeated a lot in our UI is that we fetch concepts URIs first in the UI then for each of them an Ajax call is sent to fetch the label of the concepts.

This is done for Ontology names (or acronym), Concept labels, Scheme labels, Collection labels and SKOS xl labes.

The endpoint used are (can be found config/routes.rb):

 get 'ajax/label_xl/label', to: "label_xl#show_label"
 get '/ajax/classes/label' => 'concepts#show_label'
 get 'ajax/schemes/label', to: "schemes#show_label"
 get 'ajax/collections/label', to: "collections#show_label"
 get '/ajax/json_ontology' => 'ajax_proxy#json_ontology' # with ?ontology=:acronym

what needs to be done is:

syphax-bouazzouni commented 3 weeks ago

Done in https://github.com/ontoportal-lirmm/bioportal_web_ui/pull/821