07-06-2011, 01:34 PM | #1 |
Junior Member
Posts: 2
Karma: 10
Join Date: Jan 2011
Device: iPod touch
|
importing metadata into custom columns
Hi,
I've created some custom columns, and I'm trying to figure out how to set up the metadata tags in my epubs so that these custom columns are populated when the epub is added into calibre. I've got an integer field, a date field and a yes/no field that I'm trying to populate, I'm not sure if that makes a difference to the formatting required. Examples of what I've tried so far: <meta name="calibre:#integerfield" content="12345"/> <meta name="calibre:user_metadata:#integerfield" content="12345"/> Any suggestions would be gratefully appreciated. |
07-06-2011, 01:59 PM | #2 |
creator of calibre
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Those fields are not simple text, they're JSON encoded, look at the opf generated by calibre in the directory of a book with some custom columns.
|
Advert | |
|
07-06-2011, 02:16 PM | #3 |
Wizard
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
|
07-07-2011, 08:31 AM | #4 |
Junior Member
Posts: 2
Karma: 10
Join Date: Jan 2011
Device: iPod touch
|
that worked perfectly, thanks so much for the help :-)
|
10-03-2023, 05:56 AM | #5 |
Enthusiast
Posts: 32
Karma: 10
Join Date: May 2012
Device: android
|
I have a question on this same subject: is it possible to automatically redirect metadata into custom columns when downloading them from selected sources? e.g. I would like to collect Google's tags in a separate custom column ( <meta name="calibre:user_metadata:#googletags"> ); is there a way to edit a rule OR to "tweak" something in order to get this result?
Thanks! |
Advert | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Custom columns and metadata sources | kiwidude | Development | 30 | 06-05-2014 01:36 AM |
Default value for custom columns? | rogue_librarian | Library Management | 5 | 08-08-2011 05:43 PM |
Custom Columns - How are you using yours? | nynaevelan | Library Management | 19 | 04-18-2011 12:42 AM |
New Metadata class (empty books) and custom columns | kiwidude | Development | 14 | 03-12-2011 06:47 AM |
0.7.46 and custom columns | meme | Library Management | 4 | 02-21-2011 04:21 AM |