View Single Post
Old 11-21-2011, 11:22 AM   #1
xmodder
Junior Member
xmodder began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Nov 2011
Device: Samsung Galaxy Tab
Custom columns and epub metadata

Hi to all

I know that installing in Calibre the plugin Modify Epub, and checking the checkbox "Update Metadata (including cover)", you can update your ebooks in epub format with the metadata you have put on Calibre for that ebook. This not only updates standard metadata fields (as author, title and so on) on the file content.opf inside the epub, but also creates custom metadata fields on content.opf in the form:
Code:
<meta content="{&quot;is_category&quot;: true, &quot;is_editable&quot;: true, &quot;kind&quot;: &quot;field&quot;, &quot;is_custom&quot;: true, &quot;name&quot;: &quot;Hugo&quot;, &quot;#extra#&quot;: null, &quot;datatype&quot;: &quot;series&quot;, &quot;colnum&quot;: 3, &quot;rec_index&quot;: 22, &quot;search_terms&quot;: [&quot;#hugo&quot;], &quot;link_column&quot;: &quot;value&quot;, &quot;label&quot;: &quot;hugo&quot;, &quot;is_multiple&quot;: null, &quot;column&quot;: &quot;value&quot;, &quot;#value#&quot;: null, &quot;category_sort&quot;: &quot;value&quot;, &quot;table&quot;: &quot;custom_column_3&quot;, &quot;is_multiple2&quot;: {}, &quot;display&quot;: {}}" name="calibre:user_metadata:#hugo" />
Well, that was a simple custom column to indicate if a book has won an Hugo prize.

My question is if it is possible to do the reverse. I mean: Is it possible to recover this data from an epub to Calibre? Not thinking on creating automatically custom columns for that, (doing that would be a dream, but I understand that thecnically it seems hard to do) but, if I have a Calibre library that includes the same custom colums that correspond to that custom metadata fields in the content.opf file, is there a way to make Calibre to retrieve the values in the custom fields metadata into the corresponding custom columns? Simply matching by name, for example. And only for editable custom columns, calculated custom columns can be recreated on Calibre, but those data stored on custom columns would be lost if the book is exported.

As of now, I can't do that on Calibre... I have a book that includes the previous described custom metadata on the file content.opf, I have created a custom column with the same name on the calibre library, but neither when I add the book to the libray or update metada from the epub, that custom column is not populated with the content of the custom metadata in content.opf.

So, any idea on how to accomplish this?
xmodder is offline   Reply With Quote