Quote:
Originally Posted by PeterT
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).
|
I have been playing around with creating shelves in my Kobo Glo. The info here has been invaluable! I used the method described above for creating shelves based on "Series" but I changed it to "Tags" The result is shelves have been created based on the exact word string within the "Tags" column.
My hope is that someone that understands how to structure this may suggest a way to still use the "Tags" column but limit the CSVs (within the "Tags") to a specified number. So if the "Tags" column has a string of 15 CSVs, I could specify that it only return perhaps the first three. This would serve to generalize and create fewer shelves with each would have more than a single title but yet similarly tagged gendra content compared to what I am now creating.
Tag as currently used: American, American Science Fiction And Fantasy, Bodyguards, Contemporary, Epic, Ex-convicts, Fantasy, Fantasy - Contemporary, Fantasy - General, Fantasy fiction, Fiction, Fiction - Fantasy, General, National characteristics, Reading Group Guide, Spiritual warfare, Widowers
Tag limited to first four: American, American Science Fiction And Fantasy, Bodyguards, Contemporary,
Thanks!