View Single Post
Old 06-12-2013, 10:44 PM   #53
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
PeterT's Avatar
 
Posts: 12,166
Karma: 73448616
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
Quote:
Originally Posted by Smenk View Post
I was wondering if it's possible to have a Unread, Reading and Finished shelf?
What seems to work is the following:

Quote:
Originally Posted by PeterT View Post
Code:
Lookup name:    readstatus
Column Heading: Reading Status
Column Type:    Column built from other columns
Template:       {#koboreadpct:'cmp($, 100, cmp($, 0, '', 'Unread', 'Reading'), 'Finished', '')'}
The only possible issue is that Unread gets set for all books that have nothing in the Read Percentage column.

The change was just to change the third parameter of the first cmp statement from '' to 'Unread'.
PeterT is offline   Reply With Quote