![]() |
#1 |
Perfectionist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 72
Karma: 12802
Join Date: Apr 2014
Device: none
|
Wrong author display in library view
This affects Calibre 4 and was fixed in Calibre 5, but I would really appreciate an explanation.
I have an ePub2 anthology wherein the editor's role under <dc:creator> is listed as "edt", which as far as I know is a valid MARC relator. When added to the library, the author is listed not from the metadata, but from the filename and changes accordingly. If there is a hyphen in the filename (as in title - author), the author is listed as anything after the hyphen; if there is no hyphen, the author is listed as "Unknown". If you change the after-hyphen part to e.g. XYZ, the author becomes XYZ. It seems that any role other than "aut" triggers this kind of behavior. Since I've never seen anything like it, I checked a number of anthologies. All of them had editors' role listed as "aut" or omitted altogether. So is this a known conflict if many different publishers chose not to use "edt" for editors? @Kovid: Why does Calibre 4 misread roles other than "aut"? And how was it fixed in Calibre 5? |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,347
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Not sure what you are asking? role is not a free form field. There are some roles calibre will recognize as suitable for authors, most it will not. When it doesnt find an author in the metadata the author is read from the filename using a regular expression that you can control in Preferences->Adding books.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Perfectionist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 72
Karma: 12802
Join Date: Apr 2014
Device: none
|
In the anthology I mentioned, there are three editors whose role under <dc:creator> is listed as "edt". Let's say I changed the author in the filename to XYZ.
If I add this to Calibre 4.23, the author is read from the filename and listed in library as XYZ, although in Preferences->Adding books "Read metadata from file contents rather than file name" is checked. If I add the same ebook to Calibre 5.44, with the same setting checked, the author is read from file contents (OPF), as it should be, and all three editors are correctly listed as authors in library view. I don't understand why is "edt" deemed unsuitable as a role in Calibre 4.23, but suitable in Calibre 5.44 - what changed? I'd also like to know which roles (other than "aut") Calibre will recognize as suitable for authors. Last edited by mikapanja; 10-26-2022 at 06:32 PM. |
![]() |
![]() |
![]() |
#4 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,347
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
What changed? A bug was fixed. If you want to see the list of acceptable roles, it's in the source code in the file opf3.py IIRC its just aut and edt
|
![]() |
![]() |
![]() |
#5 |
Perfectionist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 72
Karma: 12802
Join Date: Apr 2014
Device: none
|
Thank you for the clarification.
I checked the opf3.py file and it points to https://bugs.launchpad.net/calibre/+bug/1950579, but it's a dead link. Is there an archive for solved bugs? |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,347
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
The bug was private, I have deleted the attachments and made it public.
|
![]() |
![]() |
![]() |
#7 |
Perfectionist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 72
Karma: 12802
Join Date: Apr 2014
Device: none
|
Excellent, thank you for all the help.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
CC library cover grid: can I remove title & author from view? | SA-Booklover | Calibre Companion | 1 | 05-05-2021 04:56 PM |
Go to Specific Author in Library View | Thasaidon | Library Management | 5 | 10-01-2018 04:40 AM |
Troubleshooting Wrong display of non-english characters in book title & author name. | smrtihlav | Amazon Kindle | 0 | 04-28-2011 10:32 AM |
Is it possible to view the Format of a book in Library view? | highwaykind | Calibre | 6 | 01-23-2010 06:28 PM |
Title and Author display in Library | dande | Sony Reader | 9 | 07-02-2009 01:50 PM |