From 136731146235673c497f69386158e4514fd57fbe Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 11 Jul 2009 11:07:58 -0600 Subject: [PATCH] Fix #2819 (Handling of "et al." in automatic author sort entry creation) --- src/calibre/gui2/dialogs/metadata_single.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/calibre/gui2/dialogs/metadata_single.py b/src/calibre/gui2/dialogs/metadata_single.py index 0166304af4..0c2211e5c7 100644 --- a/src/calibre/gui2/dialogs/metadata_single.py +++ b/src/calibre/gui2/dialogs/metadata_single.py @@ -282,7 +282,7 @@ class MetadataSingleDialog(ResizableDialog, Ui_MetadataSingleDialog): self.initialize_combos() - si = self.series_index(row) + si = self.db.series_index(row) if si is None: si = 1.0 self.series_index.setValue(si) @@ -307,6 +307,7 @@ class MetadataSingleDialog(ResizableDialog, Ui_MetadataSingleDialog): def deduce_author_sort(self): au = unicode(self.authors.text()) + au = re.sub(r'\s+et al\.$', '', au) authors = string_to_authors(au) self.author_sort.setText(authors_to_sort_string(authors))