libkiwix icon indicating copy to clipboard operation
libkiwix copied to clipboard

Filter ZIMs by humanid & aliases

Open juuz0 opened this issue 3 years ago • 5 comments

Currently, if I visit: http://library.kiwix.org/catalog/search?name=archlinux_en_all_nopic_2022-05 I get no books. The name is not actually the filename so to get the desired book I need to visit: http://library.kiwix.org/catalog/search?name=archlinux_en_all and then search through the X number of books with same name that it gives. Hardly flexible. This is needed in /widget for now but may be needed in something else later on. Apologies if this already exists, I couldn't find but please guide if it does exist. :) If it doesn't, I propose we add a new filter book for this filename. http://library.kiwix.org/catalog/search?book=archlinux_en_all_nopic_2022-05 when filename is archlinux_en_all_nopic_2022-05

juuz0 avatar Aug 15 '22 13:08 juuz0

It should not be filename, but zim metada « Name ». https://library.kiwix.org/raw/gentoo_en_all_maxi_2021-03/meta/Name

kelson42 avatar Aug 15 '22 17:08 kelson42

@kelson42 Filtering by name already exists, see: https://library.kiwix.org/?name=gentoo_en_all

But this gives two books (same ZIM Meta name), I don't know how this will help in exactly getting the specific book. Filename looks more exact to me.

juuz0 avatar Aug 15 '22 17:08 juuz0

We are not interested by the filename, because this potentially change each month… we want to have a list of of zim stable over time. Let me think over night.

kelson42 avatar Aug 15 '22 17:08 kelson42

@juuz0 Maybe the solution is that the feature you have built can work with aliases (basically filename without the date)?

kelson42 avatar Aug 15 '22 17:08 kelson42

Sounds good to me, will also not to be duplicate.

juuz0 avatar Aug 15 '22 18:08 juuz0