mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-04 21:03:37 +02:00
GwR revision to fetch title_sort from data_dict
This commit is contained in:
parent
4d5dcb2b82
commit
a361a349ca
1 changed files with 2 additions and 2 deletions
|
|
@ -128,7 +128,7 @@ def run(self, path_to_output, opts, db, notification=DummyReporter()):
|
|||
if field.startswith('#'):
|
||||
item = db.get_field(entry['id'],field,index_is_id=True)
|
||||
elif field == 'title_sort':
|
||||
item = _title_sort(unicode(entry['title']))
|
||||
item = entry['sort']
|
||||
else:
|
||||
item = entry[field]
|
||||
|
||||
|
|
@ -183,7 +183,7 @@ def run(self, path_to_output, opts, db, notification=DummyReporter()):
|
|||
record.append(item)
|
||||
|
||||
if 'title' in fields:
|
||||
title = E.title(r['title'], sort=_title_sort(unicode(r['title'])))
|
||||
title = E.title(r['title'], sort=r['sort'])
|
||||
record.append(title)
|
||||
|
||||
if 'authors' in fields:
|
||||
|
|
|
|||
Loading…
Reference in a new issue