mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-08-11 09:13:57 -04:00
Fix #2819 (Handling of "et al." in automatic author sort entry creation)
This commit is contained in:
parent
a8294ae4b8
commit
1367311462
@ -282,7 +282,7 @@ class MetadataSingleDialog(ResizableDialog, Ui_MetadataSingleDialog):
|
|||||||
|
|
||||||
|
|
||||||
self.initialize_combos()
|
self.initialize_combos()
|
||||||
si = self.series_index(row)
|
si = self.db.series_index(row)
|
||||||
if si is None:
|
if si is None:
|
||||||
si = 1.0
|
si = 1.0
|
||||||
self.series_index.setValue(si)
|
self.series_index.setValue(si)
|
||||||
@ -307,6 +307,7 @@ class MetadataSingleDialog(ResizableDialog, Ui_MetadataSingleDialog):
|
|||||||
|
|
||||||
def deduce_author_sort(self):
|
def deduce_author_sort(self):
|
||||||
au = unicode(self.authors.text())
|
au = unicode(self.authors.text())
|
||||||
|
au = re.sub(r'\s+et al\.$', '', au)
|
||||||
authors = string_to_authors(au)
|
authors = string_to_authors(au)
|
||||||
self.author_sort.setText(authors_to_sort_string(authors))
|
self.author_sort.setText(authors_to_sort_string(authors))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user