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:
[x] Extract a generic component, that has two inputs: the starting data (a URI for example) and a link to fetch the label
[x] Don't use JQuery to do the Ajax call, use a turbo frame
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
):what needs to be done is: