Closed robyngit closed 2 months ago
Note: this PR is based off of the yet-to-be merged PR #2477 and includes the commits from that PR. I will re-base it with develop once that branch is merged, for now, new commits comprise those AFTER July 25th ("Fix SearchSelect tests; format & lint fixes" 560483d
). Changes from new commits as of now
This PR introduces two new views that allow searching for & browsing through multiple ontologies at once. They can be configured to use any ontology in the Bioportal, but default to the set configured in a new property in the appModel.
The BioontologySelectView shows only the classes that exist in the catalog, grouped by ontology. Labels for these ontologies are fetched from the Bioportal API and cached in local storage.
Next to the BioontologySelectView, there is a button to open the BioontologyBrowserView in a modal. This view shows all classes within each configured ontology in an accordion (tree-like) view. As the user clicks on a class, a small panel at the bottom shows the class description and links to the class on the Bioportal. They are able to select a class here and add it to the SearchSelect. The BioontologyBrowserView can also be used independently in other views.
BioontologySelectView is used in place of the now deprecated AnnotationFilterView. Here is where the views are currently used:
sem_annotation
is selected as the query fieldsem_annotation
is selected as the only query field for a filterOther changes: