mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04: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
@ -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…
x
Reference in New Issue
Block a user