Polish Epub3 - proliferation of dc:creator, dc:contributor

Bug #1602227 reported by Jackie Stockdale on 2016-07-12
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
calibre
Undecided
Unassigned

Bug Description

calibre 2.62 Win7

I think there may be a Polish problem updating <dc:creator> when used on Epub3.

The <dc:creator> and <dc:contributor> items seems to be multiplying rather than being updated.
In addition, after send-to-device (Kobo) with a metadata plugboard in use (redefines authors), yet another <dc:creator> is created. The effect on the Kobo is that it uses the (probably) first occurrence rather than the last correct plugboarded version. E.g.

Original opf:
    <dc:creator id="creator01">Aaa Zzz</dc:creator>
    <dc:contributor id="id-1">calibre (2.62.0) [https://calibre-ebook.com]</dc:contributor>
    <meta property="file-as" refines="#creator01">Zzz, Aaa</meta>
    <meta property="role" refines="#creator01" scheme="marc:relators">aut</meta>
    <meta property="display-seq" refines="#creator01">1</meta>

After Polish 1:
    <dc:creator id="creator01">Aaa Zzz</dc:creator>
    <dc:creator id="id-2">Aaa Zzz</dc:creator>
    <dc:contributor id="id-1">calibre (2.62.0) [https://calibre-ebook.com]</dc:contributor>
    <meta property="file-as" refines="#creator01">Zzz, Aaa</meta>
    <meta property="role" refines="#creator01" scheme="marc:relators">aut</meta>
    <meta property="display-seq" refines="#creator01">1</meta>
    <opf:meta property="role" refines="#id-1" scheme="marc:relators">bkp</opf:meta>
    <opf:meta property="role" refines="#id-2" scheme="marc:relators">aut</opf:meta>
    <opf:meta property="file-as" refines="#id-2">Zzz, Aaa</opf:meta>
    <opf:meta property="calibre:author_link_map">{"Aaa Zzz": ""}</opf:meta>

After Polish 2:
    <dc:creator id="creator01">Aaa Zzz</dc:creator>
    <dc:creator id="id-2">Aaa Zzz</dc:creator>
    <dc:creator id="id-5">Aaa Zzz</dc:creator>
    <dc:contributor id="id-1">calibre (2.62.0) [https://calibre-ebook.com]</dc:contributor>
    <dc:contributor id="id-4">calibre (2.62.0) [https://calibre-ebook.com]</dc:contributor>
    <meta property="file-as" refines="#creator01">Zzz, Aaa</meta>
    <meta property="role" refines="#creator01" scheme="marc:relators">aut</meta>
    <meta property="display-seq" refines="#creator01">1</meta>
    <opf:meta property="role" refines="#id-1" scheme="marc:relators">bkp</opf:meta>
    <opf:meta property="role" refines="#id-2" scheme="marc:relators">aut</opf:meta>
    <opf:meta property="file-as" refines="#id-2">Zzz, Aaa</opf:meta>
    <opf:meta property="role" refines="#id-4" scheme="marc:relators">bkp</opf:meta>
    <opf:meta property="role" refines="#id-5" scheme="marc:relators">aut</opf:meta>
    <opf:meta property="file-as" refines="#id-5">Zzz, Aaa</opf:meta>
    <opf:meta property="calibre:author_link_map">{"Aaa Zzz": ""}</opf:meta>

After Polish3
    <dc:creator id="creator01">Aaa Zzz</dc:creator>
    <dc:creator id="id-2">Aaa Zzz</dc:creator>
    <dc:creator id="id-5">Aaa Zzz</dc:creator>
    <dc:creator id="id-7">Aaa Zzz</dc:creator>
    <dc:contributor id="id-1">calibre (2.62.0) [https://calibre-ebook.com]</dc:contributor>
    <dc:contributor id="id-4">calibre (2.62.0) [https://calibre-ebook.com]</dc:contributor>
    <dc:contributor id="id-6">calibre (2.62.0) [https://calibre-ebook.com]</dc:contributor>
    <meta property="file-as" refines="#creator01">Zzz, Aaa</meta>
    <meta property="role" refines="#creator01" scheme="marc:relators">aut</meta>
    <meta property="display-seq" refines="#creator01">1</meta>
    <opf:meta property="role" refines="#id-1" scheme="marc:relators">bkp</opf:meta>
    <opf:meta property="role" refines="#id-2" scheme="marc:relators">aut</opf:meta>
    <opf:meta property="file-as" refines="#id-2">Zzz, Aaa</opf:meta>
    <opf:meta property="role" refines="#id-4" scheme="marc:relators">bkp</opf:meta>
    <opf:meta property="role" refines="#id-5" scheme="marc:relators">aut</opf:meta>
    <opf:meta property="file-as" refines="#id-5">Zzz, Aaa</opf:meta>
    <opf:meta property="role" refines="#id-6" scheme="marc:relators">bkp</opf:meta>
    <opf:meta property="role" refines="#id-7" scheme="marc:relators">aut</opf:meta>
    <opf:meta property="file-as" refines="#id-7">Zzz, Aaa</opf:meta>
    <opf:meta property="calibre:author_link_map">{"Aaa Zzz": ""}</opf:meta>

After send-to-device to Kobo, Kobo opf:
    <dc:creator id="creator01">Aaa Zzz</dc:creator>
    <dc:creator id="id-2">Aaa Zzz</dc:creator>
    <dc:creator id="id-5">Aaa Zzz</dc:creator>
    <dc:creator id="id-7">Aaa Zzz</dc:creator>
    <dc:creator id="id-8">Zzz, Aaa - Acme01</dc:creator>
    <dc:contributor id="id-1">calibre (2.62.0) [https://calibre-ebook.com]</dc:contributor>
    <dc:contributor id="id-4">calibre (2.62.0) [https://calibre-ebook.com]</dc:contributor>
    <dc:contributor id="id-6">calibre (2.62.0) [https://calibre-ebook.com]</dc:contributor>
    <meta property="file-as" refines="#creator01">Zzz, Aaa</meta>
    <meta property="role" refines="#creator01" scheme="marc:relators">aut</meta>
    <meta property="display-seq" refines="#creator01">1</meta>
    <opf:meta property="role" refines="#id-1" scheme="marc:relators">bkp</opf:meta>
    <opf:meta property="role" refines="#id-2" scheme="marc:relators">aut</opf:meta>
    <opf:meta property="file-as" refines="#id-2">Zzz, Aaa</opf:meta>
    <opf:meta property="role" refines="#id-4" scheme="marc:relators">bkp</opf:meta>
    <opf:meta property="role" refines="#id-5" scheme="marc:relators">aut</opf:meta>
    <opf:meta property="file-as" refines="#id-5">Zzz, Aaa</opf:meta>
    <opf:meta property="role" refines="#id-6" scheme="marc:relators">bkp</opf:meta>
    <opf:meta property="role" refines="#id-7" scheme="marc:relators">aut</opf:meta>
    <opf:meta property="file-as" refines="#id-7">Zzz, Aaa</opf:meta>
    <opf:meta property="role" refines="#id-8" scheme="marc:relators">aut</opf:meta>
    <opf:meta property="file-as" refines="#id-8">Zzz, Aaa</opf:meta>
    <opf:meta property="calibre:author_link_map">{"Aaa Zzz": ""}</opf:meta>

Fixed in branch master. The fix will be in the next release. calibre is usually released every Friday.

 status fixreleased

Changed in calibre:
status: New → Fix Released

Thank you. That looks a lot better. :)

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers