View Single Post
Old 01-20-2014, 02:39 PM   #2360
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 7,030
Karma: 4604637
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by riothamus View Post
I'm trying to populate a Collection column with the text "Fanfics" so they go to the Fanfics collection on the kindle. It's the only collection I have in this library.
It's possible, but it's enough of a corner case that I've never make it easy. But since you're the third(?) person to ask for it in the last two years, let's change that.

Attached is a version that allows literal strings to be set using custom_columns_settings.

You have to have "Allow custom_columns_settings from personal.ini to override" checked on the Custom Columns tab and in personal.ini, add:

Code:
custom_columns_settings:
 "FanFics"=>#collection
The full spec is:

Spoiler:
Code:
## (Plugin Only) - You can also populate calibre custom columns with
## the site specific metadata using custom_columns_settings (but only
## if 'Allow custom_columns_settings from personal.ini' is checked in
## the plugin GUI config.)  There are three parts, the entry name,
## then the label of the calibre custom column, then (optionally) a
## 'mode'.  'r' to Replace any existing values, 'a' to Add to existing
## value (use with tag-like columns), and 'n' for setting on New books
## only.  (Default is 'r'.)
## Literal strings can be set into custom columns using double quotes.
## Each metadata=>column mapping must be on a separate line and each
## needs to have one space at the start of each line.

#custom_columns_settings:
# cliches=>#acolumn
# themes=>#bcolumn,a
# timeline=>#ccolumn,n
# "FanFiction"=>#collection


If this works well, it will be in the next release.

UPDATE Jan 21, 2014 - Remove obsolete beta versions

Last edited by JimmXinu; 01-21-2014 at 09:46 PM. Reason: Remove obsolete beta versions
JimmXinu is offline