View Single Post
Old 07-08-2011, 03:50 AM   #1085
meme
Sigil developer
meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.
 
Posts: 1,274
Karma: 1101600
Join Date: Jan 2011
Location: UK
Device: Kindle PW, K4 NT, K3, Kobo Touch
Quote:
Originally Posted by raviendha
If series count is > 1 then create a series collection
Otherwise, place book in tags collection

If series count is > 1 then add the series number at the beginning of title
Otherwise, if the book is part of a series, add series name AND series number.

I know how to append the series info in the title but is there a way to set up the criteria of how and when to add it?

Thanks!]
Quote:
Originally Posted by Vaesse View Post
Not sure if this is what you're looking for, but this is something I did to choose between series and author sort. I created a custom column that contains the following:

{series:'ifempty($, field("author_sort"))'}

It's possible it will work for you to substitute tags for author_sort. Then create collections based on the new column instead of tags and series. This does the "and" into an "or" part.

As for the dependant title (changing depending on a particular field), that's beyond me and may be impossible.
Yep, this is what you need - the 'or' part has be be done using a new custom column in calibre, just change the above lines to reference series and tags. Although if you are using tags you'll need a custom column of comma separated text.

The editing of the title should be able to be done by a template - I'll have a look.
meme is offline