cpietsch / vikus-viewer

Explore cultural collections along time, texture and themes
https://vikusviewer.fh-potsdam.de/
Other
137 stars 47 forks source link

How to specify hierarchical filters #41

Open amyisard opened 1 month ago

amyisard commented 1 month ago

Hi,

I see from some previous Issues that it's possible to have hierarchical filters for the keywords, but I haven't found information on how to specify them - is it possible using the main branch code?

Thanks,

Amy

cpietsch commented 2 weeks ago

Hey, I am merging currently some features into main. Did you resolve the filters yourself ?

amyisard commented 2 weeks ago

Hi, I think I originally meant something different by hierarchical filters from what I had seen in the previous issues - we were thinknig of having for example a filter "langage" and when you click on that you see filters "german, english, hebrew, spanish" but we then realised it wasn't clear how that would interact with the other filter behaviour and decided we were happy with the way things were anyway! And on rereading the other issues I thought they were probably referring to the fact that when you select one keyword, the others only remain visible if they are relevant in the context of the one which has been selected.

cpietsch commented 2 weeks ago

Is this similar to your expectations: https://vikus.kunst-im-oeffentlichen-raum-pankow.de/ ?

The other route would be to have custom filters like this: https://cpietsch.github.io/kunsthaus-viewer/

amyisard commented 2 weeks ago

Oh yes, the first one is exactly what I was thinking of - is that already possible?

cpietsch commented 2 weeks ago

Yes, that should already work. You can try to pull the changes from here: https://github.com/cpietsch/vikus-viewer/compare/master...hierarchical-keywords

Your keywords in data.csv need this format then: level1:level2:level3,level1:level2,....

cpietsch commented 2 weeks ago

If this does not work, let me know

amyisard commented 2 weeks ago

Thanks - I'm going to be away for a couple of weeks but I will try this out when I get back. Are you planning to merge the hierarchical filters into the main branch?

cpietsch commented 2 weeks ago

I left certain features as branches so that the main Viewer does not get overloaded with options. I wanted to keep some flexibility. But I see more and more that those features should be integrated modular into the codebase.