Quote:
Originally Posted by AJvK
I was afraid of that... Well, thanks anyway. Maybe I'll adapt the method for adding books to one shelf or the other for my purpose - i.e. if added to a series-shelf, then it's not to be added to the author-shelf.
|
You could probably handle this with a custom column which you would use as the source for the shelf column. Something like
Code:
{:'first_non_empty(field('Series'), field('author_sort'))'}
This would return the Series name if set, else, the author_sort field.
In case a book has no author (not sure if this IS possible) you could also use
Code:
{:'first_non_empty(field('Series'), field('author_sort'),'Uncategorized')'}
to ensure that books ended up on an Uncategorized shelf.
This would all be defined as a custom column in calibre preferences of type
Column built from other columns, and then the lookup name would be used in the driver's shelf definition field (prepeneded by a # mark of course).