Author with multiple roles in metadata shown as "Unknown"

Bug #1699918 reported by Alex Cabal on 2017-06-23
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
calibre
Undecided
Unassigned

Bug Description

Hello, and thanks for Calibre!

Calibre version: 3.0, Ubuntu 16.04/64 bit

In epubs we produce, the author in <dc:creator> tag is refined with the <meta property="role"> tag. Usually the author only has one "role", which is "aut". Sometimes authors have more than one role, like "wpr" (writer of preface) in addition to being "aut".

It seems that if an author has multiple roles, and the "aut" role is *not* the last role in the sequence, then Calibre lists the author as "Unknown". It's probably just picking the last role it finds, instead of enumerating the roles individually.

For example, this works OK (aut is at the end):
<dc:creator id="author">Lord Dunsany</dc:creator>
<meta property="role" refines="#author" scheme="marc:relators">aui</meta>
<meta property="role" refines="#author" scheme="marc:relators">wpr</meta>
<meta property="role" refines="#author" scheme="marc:relators">aut</meta>

This shows "Unknown" (aut is at the beginning):
<dc:creator id="author">Lord Dunsany</dc:creator>
<meta property="role" refines="#author" scheme="marc:relators">aut</meta>
<meta property="role" refines="#author" scheme="marc:relators">aui</meta>
<meta property="role" refines="#author" scheme="marc:relators">wpr</meta>

See this epub, which shows "Unknown": https://standardebooks.org/ebooks/lord-dunsany/the-gods-of-pegana/dist/lord-dunsany_the-gods-of-pegana.epub

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

 status fixreleased

Changed in calibre:
status: New → Fix Released
Alex Cabal (acabal) wrote :

Fantastic, thanks for all your hard work Kovid!

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

Other bug subscribers