View Single Post
Old 11-06-2011, 10:12 PM   #17
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
Quote:
Originally Posted by SoulStyle View Post
It seems that the "Update metadata (including covers)" somehow adds the "{http://www.idpf.org/2007/opf}meta" tag, which then is identified by Quality Check.
I was a little slow, you are obviously correct.

After running Modify ePub to remove non dc: metadata from manifest I get a nice clean dc: metadata only section in my book.

Spoiler:
Code:
<metadata xmlns:calibre="http://calibre.kovidgoyal.net/2009/metadata" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:opf="http://www.idpf.org/2007/opf" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">     <dc:creator opf:file-as="Aames, Avery" opf:role="aut">Avery Aames</dc:creator>
     <dc:publisher>Berkley</dc:publisher>
     <dc:description>&lt;div&gt;&lt;h3&gt;Product Description&lt;/h3&gt;&lt;p&gt;Welcome to the grand opening of Fromagerie Bessette. Or as it's more commonly known by the residents of small-town Providence, Ohio-the Cheese Shop. Proprietor Charlotte Bessette has prepared a delightful sampling of bold Cabot Clothbound Cheddar, delicious tortes of Stilton and Mascarpone, and a taste of Sauvignon Blanc-but someone else has decided to make a little crime of passion the &lt;em&gt;piece de resistance&lt;/em&gt;. Right outside the shop Charlotte finds a body, the victim stabbed to death with one of her prized olive-wood handled knives. &lt;/p&gt; &lt;/div&gt;</dc:description>
     <dc:date>2010-07-06T04:00:00+00:00</dc:date>
     <dc:contributor opf:role="bkp">calibre (0.8.22) [http://calibre-ebook.com]</dc:contributor>
     <dc:title>The Long Quiche Goodbye</dc:title>
     <dc:identifier opf:scheme="ISBN">9781101188644</dc:identifier>
     <dc:identifier opf:scheme="GOODREADS">10191400</dc:identifier>
     <dc:identifier id="uuid_id" opf:scheme="uuid">51555a53-228c-46dc-93d5-1397333abd9c</dc:identifier>
     <dc:subject>Mystery</dc:subject>
     <dc:subject>Cozy Mystery</dc:subject>
     <dc:language>en</dc:language>
     <meta name="cover" content="cover" />
     <meta content="0.4.2" name="Sigil version" />
   </metadata>

After running Modify ePub to update metadata (including cover) I get a metadata section that includes the dc: metadata and the following non dc: metadata: title sort, Series, series index, rating, user_categories, calibre:author_link_map and all of the junk that comprises all of my custom columns metadata. All of which is non dc metadata. The only thing I did not expect was user_categories, calibre:author_link_map and all of the junk that comprised my custom columns.

Spoiler:
Code:
<metadata xmlns:calibre="http://calibre.kovidgoyal.net/2009/metadata" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:opf="http://www.idpf.org/2007/opf" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">     <dc:creator opf:file-as="Aames, Avery" opf:role="aut">Avery Aames</dc:creator>
     <dc:publisher>Berkley</dc:publisher>
     <dc:description>&lt;div&gt;&lt;h3&gt;Product Description&lt;/h3&gt;&lt;p&gt;Welcome to the grand opening of Fromagerie Bessette. Or as it's more commonly known by the residents of small-town Providence, Ohio-the Cheese Shop. Proprietor Charlotte Bessette has prepared a delightful sampling of bold Cabot Clothbound Cheddar, delicious tortes of Stilton and Mascarpone, and a taste of Sauvignon Blanc-but someone else has decided to make a little crime of passion the &lt;em&gt;piece de resistance&lt;/em&gt;. Right outside the shop Charlotte finds a body, the victim stabbed to death with one of her prized olive-wood handled knives. &lt;/p&gt; &lt;/div&gt;</dc:description>
     <dc:date>2010-07-06T04:00:00+00:00</dc:date>
     <dc:contributor opf:role="bkp">calibre (0.8.22) [http://calibre-ebook.com]</dc:contributor>
     <dc:title>The Long Quiche Goodbye</dc:title>
     <dc:identifier opf:scheme="ISBN">9781101188644</dc:identifier>
     <dc:identifier opf:scheme="GOODREADS">10191400</dc:identifier>
     <dc:identifier id="uuid_id" opf:scheme="uuid">51555a53-228c-46dc-93d5-1397333abd9c</dc:identifier>
     <meta content="Long Quiche Goodbye, The" name="calibre:title_sort" />
     <meta content="Cheese Shop Mystery" name="calibre:series" />
     <meta content="1.0" name="calibre:series_index" />
     <meta content="8" name="calibre:rating" />
     <dc:subject>Mystery</dc:subject>
     <dc:subject>Cozy Mystery</dc:subject>
     <meta content="{}" name="calibre:user_categories" />
     <meta content="{&quot;Avery Aames&quot;: &quot;&quot;}" name="calibre:author_link_map" />
     <dc:language>en</dc:language>
     <meta content="{&quot;is_category&quot;: false, &quot;is_editable&quot;: true, &quot;kind&quot;: &quot;field&quot;, &quot;is_custom&quot;: true, &quot;is_csp&quot;: false, &quot;#extra#&quot;: null, &quot;column&quot;: &quot;value&quot;, &quot;colnum&quot;: 8, &quot;rec_index&quot;: 29, &quot;search_terms&quot;: [&quot;#plainlangrating&quot;], &quot;link_column&quot;: &quot;value&quot;, &quot;label&quot;: &quot;plainlangrating&quot;, &quot;is_multiple&quot;: null, &quot;datatype&quot;: &quot;composite&quot;, &quot;#value#&quot;: &quot;Passable&quot;, &quot;category_sort&quot;: &quot;value&quot;, &quot;table&quot;: &quot;custom_column_8&quot;, &quot;is_multiple2&quot;: {}, &quot;display&quot;: {&quot;composite_template&quot;: &quot;{rating:switch(10,Best,8,Good,6,OK,4,Passable,2,Terrible,0,Unrated,Unrated)}&quot;, &quot;make_category&quot;: false, &quot;use_decorations&quot;: 0, &quot;composite_sort&quot;: &quot;text&quot;}, &quot;name&quot;: &quot;Text Rating&quot;}" name="calibre:user_metadata:#plainlangrating" />
     <meta content="{&quot;is_category&quot;: false, &quot;is_editable&quot;: true, &quot;kind&quot;: &quot;field&quot;, &quot;is_custom&quot;: true, &quot;is_csp&quot;: false, &quot;#extra#&quot;: null, &quot;column&quot;: &quot;value&quot;, &quot;colnum&quot;: 4, &quot;rec_index&quot;: 26, &quot;search_terms&quot;: [&quot;#initials&quot;], &quot;link_column&quot;: &quot;value&quot;, &quot;label&quot;: &quot;initials&quot;, &quot;is_multiple&quot;: null, &quot;datatype&quot;: &quot;composite&quot;, &quot;#value#&quot;: &quot;CSM&quot;, &quot;category_sort&quot;: &quot;value&quot;, &quot;table&quot;: &quot;custom_column_4&quot;, &quot;is_multiple2&quot;: {}, &quot;display&quot;: {&quot;composite_template&quot;: &quot;{#stripped_series:re(([^\\s])[^\\s]+(\\s|$),\\1)}&quot;}, &quot;name&quot;: &quot;Initials&quot;}" name="calibre:user_metadata:#initials" />
     <meta content="{&quot;is_category&quot;: true, &quot;is_editable&quot;: true, &quot;kind&quot;: &quot;field&quot;, &quot;is_custom&quot;: true, &quot;is_csp&quot;: false, &quot;#extra#&quot;: null, &quot;column&quot;: &quot;value&quot;, &quot;colnum&quot;: 2, &quot;rec_index&quot;: 23, &quot;search_terms&quot;: [&quot;#masterseries&quot;], &quot;link_column&quot;: &quot;value&quot;, &quot;label&quot;: &quot;masterseries&quot;, &quot;is_multiple&quot;: null, &quot;datatype&quot;: &quot;series&quot;, &quot;#value#&quot;: null, &quot;category_sort&quot;: &quot;value&quot;, &quot;table&quot;: &quot;custom_column_2&quot;, &quot;is_multiple2&quot;: {}, &quot;display&quot;: {}, &quot;name&quot;: &quot;Universe&quot;}" name="calibre:user_metadata:#masterseries" />
     <meta content="{&quot;is_category&quot;: false, &quot;is_editable&quot;: true, &quot;kind&quot;: &quot;field&quot;, &quot;is_custom&quot;: true, &quot;is_csp&quot;: false, &quot;#extra#&quot;: null, &quot;column&quot;: &quot;value&quot;, &quot;colnum&quot;: 9, &quot;rec_index&quot;: 30, &quot;search_terms&quot;: [&quot;#last_modified&quot;], &quot;link_column&quot;: &quot;value&quot;, &quot;label&quot;: &quot;last_modified&quot;, &quot;is_multiple&quot;: null, &quot;datatype&quot;: &quot;composite&quot;, &quot;#value#&quot;: &quot;23 Oct 11&quot;, &quot;category_sort&quot;: &quot;value&quot;, &quot;table&quot;: &quot;custom_column_9&quot;, &quot;is_multiple2&quot;: {}, &quot;display&quot;: {&quot;composite_template&quot;: &quot;{last_modified:'format_date($, \&quot;dd MMM yy\&quot;)'}&quot;, &quot;make_category&quot;: false, &quot;composite_sort&quot;: &quot;date&quot;, &quot;use_decorations&quot;: 0}, &quot;name&quot;: &quot;Modified Date&quot;}" name="calibre:user_metadata:#last_modified" />
     <meta content="{&quot;is_category&quot;: true, &quot;is_editable&quot;: true, &quot;kind&quot;: &quot;field&quot;, &quot;is_custom&quot;: true, &quot;is_csp&quot;: false, &quot;#extra#&quot;: null, &quot;column&quot;: &quot;value&quot;, &quot;colnum&quot;: 1, &quot;rec_index&quot;: 22, &quot;search_terms&quot;: [&quot;#working&quot;], &quot;link_column&quot;: &quot;value&quot;, &quot;label&quot;: &quot;working&quot;, &quot;is_multiple&quot;: null, &quot;datatype&quot;: &quot;text&quot;, &quot;#value#&quot;: &quot;book jacket&quot;, &quot;category_sort&quot;: &quot;value&quot;, &quot;table&quot;: &quot;custom_column_1&quot;, &quot;is_multiple2&quot;: {}, &quot;display&quot;: {}, &quot;name&quot;: &quot;Working&quot;}" name="calibre:user_metadata:#working" />
     <meta content="{&quot;is_category&quot;: false, &quot;is_editable&quot;: true, &quot;kind&quot;: &quot;field&quot;, &quot;is_custom&quot;: true, &quot;is_csp&quot;: false, &quot;#extra#&quot;: null, &quot;column&quot;: &quot;value&quot;, &quot;colnum&quot;: 10, &quot;rec_index&quot;: 31, &quot;search_terms&quot;: [&quot;#read&quot;], &quot;link_column&quot;: &quot;value&quot;, &quot;label&quot;: &quot;read&quot;, &quot;is_multiple&quot;: null, &quot;datatype&quot;: &quot;bool&quot;, &quot;#value#&quot;: true, &quot;category_sort&quot;: &quot;value&quot;, &quot;table&quot;: &quot;custom_column_10&quot;, &quot;is_multiple2&quot;: {}, &quot;display&quot;: {}, &quot;name&quot;: &quot;Books Read&quot;}" name="calibre:user_metadata:#read" />
     <meta content="{&quot;is_category&quot;: false, &quot;is_editable&quot;: true, &quot;kind&quot;: &quot;field&quot;, &quot;is_custom&quot;: true, &quot;is_csp&quot;: false, &quot;#extra#&quot;: null, &quot;column&quot;: &quot;value&quot;, &quot;colnum&quot;: 3, &quot;rec_index&quot;: 25, &quot;search_terms&quot;: [&quot;#shortened&quot;], &quot;link_column&quot;: &quot;value&quot;, &quot;label&quot;: &quot;shortened&quot;, &quot;is_multiple&quot;: null, &quot;datatype&quot;: &quot;composite&quot;, &quot;#value#&quot;: &quot;Chee-tery&quot;, &quot;category_sort&quot;: &quot;value&quot;, &quot;table&quot;: &quot;custom_column_3&quot;, &quot;is_multiple2&quot;: {}, &quot;display&quot;: {&quot;composite_template&quot;: &quot;{#stripped_series:shorten(4,-,4)}&quot;}, &quot;name&quot;: &quot;Shortened&quot;}" name="calibre:user_metadata:#shortened" />
     <meta content="{&quot;is_category&quot;: false, &quot;is_editable&quot;: true, &quot;kind&quot;: &quot;field&quot;, &quot;is_custom&quot;: true, &quot;is_csp&quot;: false, &quot;#extra#&quot;: null, &quot;column&quot;: &quot;value&quot;, &quot;colnum&quot;: 6, &quot;rec_index&quot;: 28, &quot;search_terms&quot;: [&quot;#coll505sort&quot;], &quot;link_column&quot;: &quot;value&quot;, &quot;label&quot;: &quot;coll505sort&quot;, &quot;is_multiple&quot;: null, &quot;datatype&quot;: &quot;composite&quot;, &quot;#value#&quot;: &quot;Aames, Avery - Cheese Shop Mystery 01 - The Long Quiche Goodbye&quot;, &quot;category_sort&quot;: &quot;value&quot;, &quot;table&quot;: &quot;custom_column_6&quot;, &quot;is_multiple2&quot;: {}, &quot;display&quot;: {&quot;composite_template&quot;: &quot;{author_sort:titlecase()} - {series}{series_index:0&gt;2s| | - }{title}&quot;}, &quot;name&quot;: &quot;Collection&quot;}" name="calibre:user_metadata:#coll505sort" />
     <meta content="{&quot;is_category&quot;: false, &quot;is_editable&quot;: true, &quot;kind&quot;: &quot;field&quot;, &quot;is_custom&quot;: true, &quot;is_csp&quot;: false, &quot;#extra#&quot;: null, &quot;column&quot;: &quot;value&quot;, &quot;colnum&quot;: 5, &quot;rec_index&quot;: 27, &quot;search_terms&quot;: [&quot;#stripped_series&quot;], &quot;link_column&quot;: &quot;value&quot;, &quot;label&quot;: &quot;stripped_series&quot;, &quot;is_multiple&quot;: null, &quot;datatype&quot;: &quot;composite&quot;, &quot;#value#&quot;: &quot;Cheese Shop Mystery&quot;, &quot;category_sort&quot;: &quot;value&quot;, &quot;table&quot;: &quot;custom_column_5&quot;, &quot;is_multiple2&quot;: {}, &quot;display&quot;: {&quot;composite_template&quot;: &quot;{series:re(^(A|The|An)\\s+,)||}&quot;}, &quot;name&quot;: &quot;Stripped&quot;}" name="calibre:user_metadata:#stripped_series" />
   </metadata>

If I do an ePub to ePub conversion along with the dc: metadta calibre adds some non dc: metadata: title sort, series, series index, rating, calibre:timestamp and cover, but not all of the custom column junk. The result after a conversion is what I expected this plugin to insert as metadata.

Spoiler:
Code:
  <metadata xmlns:calibre="http://calibre.kovidgoyal.net/2009/metadata" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:opf="http://www.idpf.org/2007/opf" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <dc:publisher>Berkley</dc:publisher>
    <meta content="1" name="calibre:series_index" />
    <meta content="Long Quiche Goodbye, The" name="calibre:title_sort" />
    <meta content="8.00" name="calibre:rating" />
    <dc:description>&lt;div&gt;&lt;h3&gt;Product Description&lt;/h3&gt;&lt;p&gt;Welcome to the grand opening of Fromagerie Bessette. Or as it's more commonly known by the residents of small-town Providence, Ohio-the Cheese Shop. Proprietor Charlotte Bessette has prepared a delightful sampling of bold Cabot Clothbound Cheddar, delicious tortes of Stilton and Mascarpone, and a taste of Sauvignon Blanc-but someone else has decided to make a little crime of passion the &lt;em&gt;piece de resistance&lt;/em&gt;. Right outside the shop Charlotte finds a body, the victim stabbed to death with one of her prized olive-wood handled knives. &lt;/p&gt; &lt;/div&gt;</dc:description>
    <dc:language>en</dc:language>
    <dc:creator opf:file-as="Aames, Avery" opf:role="aut">Avery Aames</dc:creator>
    <meta content="2011-02-16T05:05:03+00:00" name="calibre:timestamp" />
    <dc:title>The Long Quiche Goodbye</dc:title>
    <meta content="cover" name="cover" />
    <dc:date>2010-07-06T04:00:00+00:00</dc:date>
    <meta content="Cheese Shop Mystery" name="calibre:series" />
    <dc:contributor opf:role="bkp">calibre (0.8.25) [http://calibre-ebook.com]</dc:contributor>
    <dc:identifier opf:scheme="ISBN">9781101188644</dc:identifier>
    <dc:identifier opf:scheme="GOODREADS">10191400</dc:identifier>
    <dc:identifier id="uuid_id" opf:scheme="uuid">51555a53-228c-46dc-93d5-1397333abd9c</dc:identifier>
    <dc:subject>Mystery</dc:subject>
    <dc:subject>Cozy Mystery</dc:subject>
  </metadata>

I'm not saying this is wrong, but currently if you want only updated non dc: metadata you have to use two steps.

1. Run Modify ePub to Update metadata (including cover)
2. Run Modify ePub to Remove no dc: metadata from manifest.

Maybe Kiwidude could somehow prioritize the two and ensure if run together that the final result is updated dc: metadata only or add a option to update dc: metadata only.

Edit: Personally I would just like the Update metadata (including cover) option to limit itself to the metadata calibre would insert during a conversion.

Update: When calibre Saves a book to disk it inserts in the ePub all of the same metadata (including the extra custom column junk not included when a book gets converted) that this plugin inserts into book as metadata. Which means, obviously this plugin is using the same code as calibre's Save to disk Feature.

Update 2: When calibre Sends a book to the device it also includes all of the same metadata (including the extra custom column junk not included when a book gets converted) that this plugin inserts into book as metadata. It seems odd to send all of the custom column junk to the device as metadata, but at least now I know how it is currently working and none of it has ever hindered my reading experience in the slightest.

Update 3: Thinking it over the custom column stuff may need to be included for the metadata plugboards. For those folks that just want dc: metadata follow the two steps outlined above and ignore my updates.

Good luck.

Last edited by DoctorOhh; 11-07-2011 at 12:36 AM. Reason: sp
DoctorOhh is offline   Reply With Quote