-
Notifications
You must be signed in to change notification settings - Fork 95
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
Display concept types for search #781
Conversation
Thanks, looks very promising! But a couple of issues:
The other one shows up as skos:Concept, which is not ideal, it would be better to translate it to "Concept" (in English, or the corresponding term in the current UI language). Replacing
|
Sorry, I mixed up things, Iconmonstr isn't actually CC0. Their license prohibits e.g. redistribution. So maybe not ideal here. |
Will take a look with more calm tomorrow. But a quick analysis today (last thing before going to bed, so might have missed a few things), I've found that:
Which honestly makes no sense right now 😕
Thanks!!! |
See my comment above about iconmonstr - they're not CC0 and thus are not suitable for this. I have used them in another project with different license constraints. The Skosmos icons are custom made, most of them were drawn by the design company Hahmo that created the layouts. I think it would be best to draw a custom icon. I can get someone to do that if necessary. You can concentrate on the code :) By the way, the concept page already shows the type of concept (unless it's just skos:Concept). Maybe you can reuse that code? |
Hi @osma , Sorry, reading again I understood - finally - that I can't use those icons. Such a shame, because they look good IMO! :)
That'd be great!
Thanks for that! Now I can confirm my suspicion. The query doesn't have the prefix for The code in this pull request worked with skos:Concept by luck. The "events and action" concept is of type skos:Concept and ysa-meta:Hierarchy. Looks like the concept page has some checks for that already in place. I copied the part that prints the type, and it works out of the box, just with the incorrect layout. Let me see if I can use the code from that page here then. Great idea @osma (as always). Thanks! |
829cc5b
to
de79818
Compare
Moving to 2.1 since this will take some more work to be ready |
@osma just updated pull request with a new version, if you'd like to take a look (coincidentally was looking at the issue when your comment popped in) |
Tried to simplify the code from the concept page. Hopefully didn't simplify it too much. It should display the same text from the concepts page. And rebased the branch too, to make review/merging easier 👍 |
Oh, I think #827 will supersede this one? |
Yeah, I thought it was simpler to create a new PR than to push the changes to your branch. |
Add concept types for search results. Icon edited from https://feathericons.com/, but happy to edit the commit and replace by another icon if necessary (due to colour, size, license, etc).
Closes #776