cpietsch / vikus-viewer

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

Format for multiple layouts #39

Open amyisard opened 1 week ago

amyisard commented 1 week ago

Hi,

We have a project where a guestbook has been digitized, and each individual entry has been saved as an image snippet, with various associated metadata including its date and page number. We're using Vikus Viewer to display the snippets, and the year view looks great, but I would also like to try a layout where the snippets are ordered by page number instead of year. I see that it's possible to have multiple layouts but I'm not sure what the format of the pages.csv file should be. I created a second layout with the title Pages associated with pages.csv and tried using two columns containing id and _page for each snippet but that didn't work. There are now two tabs at the side with "Time" and "Pages" but the "Pages" view doesn't show anything. Could you let me know if it's possible to have this sort of second layout and if so how?

Thanks!

Amy

cpietsch commented 1 week ago

Hey Amy,

this is totally doable. I have implemented such a functionality for a custom instance by introducing a "groupKey" that does not have to be the column "year". I will merge the updates I made for the Kunsthaus Viewer into the main repo here - until then you could check out the implementation and / or maybe make a pull request.

amyisard commented 1 week ago

Hi,

That's great! I'll have a look at the code, and let me know when you've merged the updates into the main repo.

Thanks,

Amy