View Single Post
Old 05-26-2013, 06:07 PM   #184
Toris
Junior Member
Toris knows the square root of minus one.Toris knows the square root of minus one.Toris knows the square root of minus one.Toris knows the square root of minus one.Toris knows the square root of minus one.Toris knows the square root of minus one.Toris knows the square root of minus one.Toris knows the square root of minus one.Toris knows the square root of minus one.Toris knows the square root of minus one.Toris knows the square root of minus one.
 
Posts: 8
Karma: 7938
Join Date: May 2012
Device: kobo and bebook
Quote:
Originally Posted by PeterT View Post
This is probably not the cleanest way of doing it, but it seems to work.

Add a new custom column with Lookup Name shelftopic and Column Heading Shelf Topic of type Column built from other columns
Set it's template to
Code:
{#myshelves:'ifempty($, field('Series'))'}
Add another custom column with Lookup Name shelfname and Column Heading Shelf Name of type Column built from other columns
Set it's template to
Code:
{#shelftopic:'ifempty($,'Uncategorized')'}
Restart Calibre

Change the shelf options in the Kobo Driver to simply #shelfname and all should be done.

The first column shelftopic will contain either the value of myshelves, or if there is none, the value of Series.

The second column shelfname will contain either the value of shelftopic or if there is none, the word Uncategorized

Thank you very much, this is working well
Toris is offline   Reply With Quote