mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-22 03:26:11 +01:00
EPUB3 metadata: Recognize a creator as an author even if his first role is not aut
This commit is contained in:
parent
d459097e3f
commit
c60dbbda8f
1 changed files with 2 additions and 1 deletions
|
|
@ -432,7 +432,8 @@ def is_relators_role(props, q):
|
|||
for role in props.get('role'):
|
||||
if role:
|
||||
scheme_ns, scheme, role = role
|
||||
return role.lower() == q and (scheme_ns is None or (scheme_ns, scheme) == (reserved_prefixes['marc'], 'relators'))
|
||||
if role.lower() == q and (scheme_ns is None or (scheme_ns, scheme) == (reserved_prefixes['marc'], 'relators')):
|
||||
return True
|
||||
return False
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue