View Single Post
Old 03-11-2015, 07:58 AM   #39
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,476
Karma: 8025702
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by theducks View Post
Does Calibre already support this on any text column?
No. The columns 'authors', 'publisher', 'news', and 'formats' are specifically excluded.
Quote:
Series splinter, which is why I use it there
pern
pern.harper_hall
pern.dragonriders
pern.renegades of
Makes sense, although it opens the door for wanting to process the hierarchy in a template.
Quote:

Is there a way in Calibre to count just the number of (parent) hierarchical items?

How many series have children
how many tags have children
I can't think of any way built into calibre. If I understand the question you want to process the database looking for books that have an item with a hierarchy, make note of the topmost level, then count how many you have at the end. You would need a script to do that.

You can get close with series by creating a VL of books with a series containing a period (series:.). The tag browser will show only the hierarchical series. Unfortunately this scheme doesn't work for tags because the tag browser will show the hierarchical tags plus all the other tags in the books.
chaley is offline   Reply With Quote