View Single Post
Old 11-11-2011, 09:26 PM   #7
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,122
Karma: 60406498
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by Starson17 View Post
I think you are asking if the template can know the maximum series_index in the series, so that the output can be "book 3 of 7" where "3" is the series_index and "7" is the maximum series_index in that series. It's not possible. Templates work one book at a time. The template as applied to book 3 doesn't have any idea what's in the metadata fields of the other books. Specifically, it doesn't know if there are any other books in that series with a higher series_index. You could do this with code to fill a custom column with the max for each series, but it would take some work and you'd need to run it regularly to keep it correct.

I hate saying it can't be done, as most of the time, Charles knows how to do it, or will write code to do it, but I also hate not answering when I'm pretty sure I know the answer.
I don't think Chaley has invented the crystal ball plugin to determine when a series has ended (if it ever ends ) or what to do with the 'series within a series' that some folk keep asking Calibre to track.
theducks is offline   Reply With Quote