View Single Post
Old 10-24-2011, 01:54 PM   #3
gena0411
Member
gena0411 began at the beginning.
 
Posts: 23
Karma: 10
Join Date: Oct 2011
Device: Sony PRS-T1
Quote:
Originally Posted by chaley View Post
If this conversation goes on, I will move it to its own thread.

Isn't the collection created named "Yes (ToRead)", where ToRead is the column heading for the #toread column? If it is not, and if you haven't messed with the tweak "Specify renaming rules for SONY collections", then much of what is below is wrong.
I assume you are putting that in the plugin's customization? That won't work, because the only thing you can put there is the lookup name for a column.

I assume that you don't want to see the collection name "Yes (ToRead)". You have three choices:
  • If seeing "ToRead: Yes" is acceptable, then change the tweak sony_collection_name_template found in "Specify renaming rules for SONY collections":
    Code:
    sony_collection_name_template = '{category:||: }{value}'
    You could also use a template written in general program mode or a custom template function to reformat just values for the #toread column however you wish.
  • create another custom column "made from other columns" containing the your template from above. Make your collection from that. Note that you might want to remove the column name using the renaming rules tweak.
  • Change #toread to a text column. Add an enumeration column (text with a permitted set of values). Permit one value: "To Read". Search for #toread:true, select all books, and use bulk edit to set the new column.
Many thanks Chaley.
The collection I see is just "Yes", not "Yes (ToRead)" and I didn't play with any tweaks. I have, indeed, put the statement in the plugin's customization field which you say cannot work.

Your latest suggestion with enumerated column seems the simplest one and the most convenient. I'll try it.

Please tell which thread it should usually be posted to, if I need to ask something next time.

Thanks a lot,
Genady
gena0411 is offline   Reply With Quote