View Single Post
Old 01-30-2014, 06:22 PM   #1
kaufman
Calibre Companion Fanatic
kaufman ought to be getting tired of karma fortunes by now.kaufman ought to be getting tired of karma fortunes by now.kaufman ought to be getting tired of karma fortunes by now.kaufman ought to be getting tired of karma fortunes by now.kaufman ought to be getting tired of karma fortunes by now.kaufman ought to be getting tired of karma fortunes by now.kaufman ought to be getting tired of karma fortunes by now.kaufman ought to be getting tired of karma fortunes by now.kaufman ought to be getting tired of karma fortunes by now.kaufman ought to be getting tired of karma fortunes by now.kaufman ought to be getting tired of karma fortunes by now.
 
kaufman's Avatar
 
Posts: 873
Karma: 1088610
Join Date: Nov 2006
Device: Galaxy Note 4, Kindle Voyage
Looking for how to create a custom column based on a tag

I would like to create a custom column that works this way:

If a book has a specific tag (in this case "First"), make the column that tag name.
Otherwise, make it the series name if one exists.
Otherwise, make it the string "Uncategorized".

I know how to do all of this except for checking for a specific tag on a book that might have more then one tag.

{:'first_non_empty(field('tag'), field('Series'),'Uncategorized')'}

I need to replace field('tag') with something that will look for the specific tag, but I have no idea what to put in instead.

Any advice or help would be appreciated.

Thanks.
kaufman is offline   Reply With Quote