janeczku / calibre-web

:books: Web app for browsing, reading and downloading eBooks stored in a Calibre database
GNU General Public License v3.0
13.03k stars 1.39k forks source link

Hierarchical Tag display #1956

Open juergenpf opened 3 years ago

juergenpf commented 3 years ago

Many books have multiple Tags (Categories). In the Categories view, you can just pick one Category and get all the books that have that tag. That's it. In large collections this might be hundreds of titles in one Category and it would be nice, to offer now a list off all additional Categories the selected books may have and allow to drill down along an additional Category - and recurse that until no more additional categories are there.

fivestones commented 3 years ago

I think this is an important feature. If I have books sorted with tags Fiction and Non-Fiction, and I also have books tagged as Children's Books, currently there is no way I can see to search for all the Children's Books that are also Fiction. (Or History books that are also tagged as Philosophy, etc.)

fivestones commented 3 years ago

Maybe the title of this issue should be changed, because with the title "Hierarchical Tag Display" it sounds like it is referring to the Hierarchical Tag feature included as an option in Calibre (and is also needed in Calibre-web but isn't yet present). Instead maybe the title "Choose multiple Category tags with and logic" or something like that would help to make this issue stand apart, and to maybe get the attention it should have.

OzzieIsaacs commented 3 years ago

You could use the search function for this feature: Search for "fiction" books which are not "kids" grafik or search for all "fiction" and "kids" books: grafik There is also some sort of typeahead which prevents you to select non existent combinations of tags. No book has the combination of fiction, kids and "genot" (fantasy tag) in the next screenshot grafik

nmfa commented 2 years ago

I'd like this too. I've recently started using Calibre and was quite surprised to find that the Category filter was effectively ORed. So I wanted books tagged as 1st century and fiction, and ended up with everything from both tags. What I wanted was '1st AND fiction' (as opposed to non-fiction, for example).

For flexibiility, and backwards compatibility, it might be a good idea to allow both (perhaps via a checkbox) or with more control via a box similar to the main search.

The sub-group hierarchial feature seems to me to defeat the purpose of tags by forcing you to make the tags define the hierarchies, which isn't very dynamic.