Open rgaudin opened 3 years ago
What is the "Previous Step / Next Step" feature of kolibri? Are you refering to a feature of the studio or a feature of openZIM scraper?
I consider this should probably be implemented in kolibri2zim (and other "readers") rather than in librechef / the HTML itself, since this navigation might differ depending on how the HTML is used.
I'm not sure anymore but I believe that this is about offering (eventually) a feature similar to the side arrows:
There you see you're in 2.1
and can click to right arrow and go to 2.2
which makes sense from a reader's perspective.
Same page in ZIM https://dev.library.kiwix.org/viewer#libretexts-engineering_en_2024-01/a22b7bc4cd7751439223bcf73b214e4d/index.html
You can't directly go to 2.2
; you have to go back and select 2.2
in the cards.
So the user feature is in the ZIM but I believe we have no next/previous in the data. We have a parent node and siblings but that's all.
This could naively be implemented using the order in the collection and next/previous to siblings in that order. That can be directly implemented in kolibri2zim.
We could also consider those links to be more elaborate than this and record somewhere where they point to.
Obviously, I'd suggest the first option until there is an actual use case where it can not work.
Most in-book content have previous/next links at the end of each content. We should add this as well ; and could use the Previous Step / Next Step feature of kolibri to do so.