Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 03-10-2018, 05:41 PM   #1
homura_no_ko
Junior Member
homura_no_ko began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Mar 2018
Device: iPad mini4 (Marvin3), Windows 10 laptop
Problem with different metadata editing in opf

Hello, I have this problem where my epubs have completely different metadata editing in content.opf.
I don't use Calibre for any heavy editing, usually just add/edit title, series, author, tags metadata, and polish them afterwards.

Only, there's this problem.

I am using Marvin to read epubs on my iPhone 6s. The problem shows up when I add epubs to the app.
The thing is, half the epubs have the desired metadata and the other half is missing the metadata I painfully edited in Calibre.
Thinking that the problem must be in .opf I checked to find that:

The correctly showing metadata looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<package xmlns="http://www.idpf.org/2007/opf" unique-identifier="uuid_id" version="2.0">
<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:title>TITLE, Vol. 07</dc:title>
<dc:creator opf:role="aut" opf:file-as="SURNAME, Name">Name Surname</dc:creator>
<dc: publisher>PUBLISHER</dc: publisher>
<dc:rights>&amp;#169; AUTHOR 2012</dc:rights>
<dc:contributor opf:role="bkp">calibre (3.15.0) [https://calibre-ebook.com]</dc:contributor>
<dc:identifier id="uuid_id" opf:scheme="uuid">3595bd16-f653-4514-8555-fc7956dec1bb</dc:identifier>
<dc:date>2017-12-18T20:30:00+00:00</dc:date>
<dc:subject>Magic</dc:subject>
<dc:subject>Science Fiction</dc:subject>
<dc:subject>Action</dc:subject>
<dc:subject>Modern Fantasy</dc:subject>
<dc:language>en</dc:language>
<dc:identifier opf:scheme="calibre">7137d345-8b97-4265-82a6-3fc1ac17bf73</dc:identifier>
<meta name="calibre:title_sort" content="TITLE, Vol. 07"/>
<meta name="calibre:series" content="TITLE"/>
<meta name="calibre:series_index" content="7.0"/>
<meta name="cover" content="cover"/>
<meta name="calibre:timestamp" content="2018-02-04T18:22:05+00:00"/>
<meta content="horizontal-lr" name="primary-writing-mode"/>
<meta name="calibre:author_link_map" content="{&quot;NAME SURNAME&quot;: &quot;&quot;}"/>
<meta name="calibre:user_metadata:#status" content="{&quot;colnum&quot;: 2, &quot;#extra#&quot;: null, &quot;category_sort&quot;: &quot;value&quot;, &quot;search_terms&quot;: [&quot;#status&quot;], &quot;display&quot;: {&quot;description&quot;: &quot;&quot;}, &quot;kind&quot;: &quot;field&quot;, &quot;datatype&quot;: &quot;bool&quot;, &quot;is_category&quot;: false, &quot;#value#&quot;: true, &quot;is_custom&quot;: true, &quot;is_multiple&quot;: null, &quot;table&quot;: &quot;custom_column_2&quot;, &quot;is_multiple2&quot;: {}, &quot;column&quot;: &quot;value&quot;, &quot;rec_index&quot;: 22, &quot;is_editable&quot;: true, &quot;is_csp&quot;: false, &quot;link_column&quot;: &quot;value&quot;, &quot;label&quot;: &quot;status&quot;, &quot;name&quot;: &quot;Status&quot;}"/>
</metadata>
<manifest>
...(excluded)
</manifest>
<spine toc="ncx" page-progression-direction="ltr">
...(excluded)
</spine>
<guide>
...(excluded)
</guide>
</package>


And the ones which metadata disappears when I add it to app:
<package xmlns="http://www.idpf.org/2007/opf" unique-identifier="pub-id" version="3.0" xml:lang="en" prefix="calibre: https://calibre-ebook.com">
<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:title id="id">TITLE, Vol. 07</dc:title>
<dc:creator id="id-1">AUTHOR SURNAME</dc:creator>
<dc:rights>Copyright © 2016 AUTHOR SURNAME</dc:rights>
<dc:identifier>calibre:882</dc:identifier>
<dc:identifier>uuid:9dd5ab9b-7046-429d-a19f-297865021b97</dc:identifier>
<dc:identifier id="pub-id">urn:uuid:e695aac4-3c2e-400b-9bb3-b1ba44ce5279</dc:identifier>
<dc:language>en</dc:language>
<dc:date>2018-03-08T00:00:00+00:00</dc:date>
<dc: publisher>PUBLISHER</dc: publisher>
<dc:subject>Fantasy</dc:subject>
<dc:subject>Magic</dc:subject>
<dc:subject>Humor</dc:subject>
<dc:subject>Adventure</dc:subject>
<opf:meta refines="#id" property="title-type">main</opf:meta>
<opf:meta refines="#id" property="file-as">TITLE, Vol. 07</opf:meta>
<meta name="cover" content="cover"/>
<meta name="calibre:timestamp" content="2018-03-10T21:37:39.073000+00:00"/>
<meta content="horizontal-lr" name="primary-writing-mode"/>
<opf:meta property="role" refines="#id-1" scheme="marc:relators">aut</opf:meta>
<opf:meta property="file-as" refines="#id-1">SURNAME, NAME</opf:meta>
<opf:meta property="belongs-to-collection" id="id-2">TITLE</opf:meta>
<opf:meta refines="#id-2" property="collection-type">series</opf:meta>
<opf:meta refines="#id-2" property="group-position">7</opf:meta>
<opf:meta property="calibre:author_link_map">{"AUTHOR SURNAME": ""}</opf:meta>
<opf:meta property="calibre:user_metadata">{
"#status": {
"#extra#": null,
"#value#": null,
"category_sort": "value",
"colnum": 2,
"column": "value",
"datatype": "bool",
"display": {
"description": ""
},
"is_category": false,
"is_csp": false,
"is_custom": true,
"is_editable": true,
"is_multiple": null,
"is_multiple2": {},
"kind": "field",
"label": "status",
"link_column": "value",
"name": "Status",
"rec_index": 22,
"search_terms": [
"#status"
],
"table": "custom_column_2"
}
}</opf:meta>
</metadata>
<manifest>
...(excluded)
</manifest>
<spine page-progression-direction="ltr" toc="ncx">
...(excluded)
</spine>
<guide>
...(excluded)
</guide>
</package>


I have no idea what to do, I tried to rewrite the opf, but when I saved it, closed edit book, then opened edit book again - any editing I did disappeared.

How should I solve it permanently? Is it even possible to do it within Calibre? I don't want to rewrite it all manually book by book.

Please
homura_no_ko is offline   Reply With Quote
Old 03-10-2018, 06:30 PM   #2
ilovejedd
hopeless n00b
ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.
 
ilovejedd's Avatar
 
Posts: 5,111
Karma: 19597086
Join Date: Jan 2009
Location: in the middle of nowhere
Device: PW4, PW3, Libra H2O, iPad 10.5, iPad 11, iPad 12.9
You already mentioned doing Polish books so I assume there's just something in the latter's format that Marvin doesn't like.

Try installing the Modify ePub plugin and see if that helps clean up opf metadata. Try it with the Remove non dc: metadata elements option enabled. Iirc, Marvin doesn't know what to do with all of Calibre's extra metadata entries anyway. Only Title, Author, Publisher, Subject, and Date Published are relevant.
ilovejedd is offline   Reply With Quote
Advert
Old 03-10-2018, 06:59 PM   #3
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
Your first book is EPUB2 and your second is EPUB3. The first line of the OPF file defines the version. Calibre inserts the correct version of the metadata to match the EPUB version. Perhaps Marvin can't handle EPUB3.
jackie_w is offline   Reply With Quote
Old 03-10-2018, 07:26 PM   #4
ilovejedd
hopeless n00b
ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.
 
ilovejedd's Avatar
 
Posts: 5,111
Karma: 19597086
Join Date: Jan 2009
Location: in the middle of nowhere
Device: PW4, PW3, Libra H2O, iPad 10.5, iPad 11, iPad 12.9
Quote:
Originally Posted by jackie_w View Post
Your first book is EPUB2 and your second is EPUB3. The first line of the OPF file defines the version. Calibre inserts the correct version of the metadata to match the EPUB version. Perhaps Marvin can't handle EPUB3.
Marvin claims basic EPUB3 support but from threads I've seen, I don't believe it handles EPUB3 particularly well.
ilovejedd is offline   Reply With Quote
Reply

Tags
calibre, content.opf, marvin 3, metadata errors, opf


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem adding metadata (.opf, .mobi, .azw3) mobilemax Library Management 3 04-27-2016 11:29 AM
Editing content.opf with clips; Editing visibility varlog Sigil 45 04-24-2016 07:55 AM
Problem with editing metadata rrvult Library Management 20 11-26-2012 07:25 AM
Using Calibre 8.38 - Problem after editing metadata mitch13 Library Management 2 03-01-2012 10:57 PM
Metadata editing Problem with PRC barry Calibre 4 12-01-2009 08:21 PM


All times are GMT -4. The time now is 04:13 PM.


MobileRead.com is a privately owned, operated and funded community.