Closed jusa3 closed 1 month ago
The mechanism for linking was rather simple and tried to convert the api url used for querying to the frontend page url of a term. This works for the EBI url's as the api and frontend url only differ in the api url having an additional /api
at the end, but this does not work in general.
I think the best solution for handling linking (as every front page has to do this individually) is to add onNavigateToEntity
and onNavigateToOntology
functions like in the other widgets. What do you think of this idea @jusa3?
Added onNavigate functions to EntityRelationsWidget and EntityInfoWidget. The behaviour is demonstrated in a new story, in which these functions are used to navigate to the clicked entity's page on EBI OLS.
I discovered 2 problems though:
render()
function as in the html storybook instead of using the automatic component
arg currently used in the react storybook
http://semlookp-ui.qa.km.k8s.zbmed.de/ontologies/icdo/terms?iri=http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FICDO_0000104