Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Part icon is missing in ols4 hierarchy widget #95

Open
rombaum opened this issue Jun 25, 2024 · 1 comment
Open

Part icon is missing in ols4 hierarchy widget #95

rombaum opened this issue Jun 25, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@rombaum
Copy link
Collaborator

rombaum commented Jun 25, 2024

The p in the ols4 based hierarchy widget is missing in our widget.

I used milk from the ontology uberon as an example and saw that the p is missing in the hierarchy.

grafik

It is working for the hierarchy at the instance of EMBL-EBI: https://www.ebi.ac.uk/ols4/ontologies/uberon/classes/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FUBERON_0001913

@rombaum rombaum added the enhancement New feature or request label Jun 25, 2024
@VincentKneip
Copy link
Collaborator

The p icon is an SVG-image called part.svg, which should be provided at "{process.env.PUBLIC_URL!}/part.svg" (see here).
At EMBL-EBI, there is a corresponding image provided at https://www.ebi.ac.uk/ols4/part.svg. However, for our project, process.env.PUBLIC_URL! does not seem to match "https://www.ebi.ac.uk/ols4/".

A quick fix would be to change the line inside EntityTree.tsx in the ols4-project mentioned above from
src={urlJoin(process.env.PUBLIC_URL!, "/part.svg")}
to
src={"https://www.ebi.ac.uk/ols4/part.svg"}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants