mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
GwR revision to fetch title_sort from data_dict
This commit is contained in:
parent
4d5dcb2b82
commit
a361a349ca
@ -128,7 +128,7 @@ class CSV_XML(CatalogPlugin): # {{{
|
|||||||
if field.startswith('#'):
|
if field.startswith('#'):
|
||||||
item = db.get_field(entry['id'],field,index_is_id=True)
|
item = db.get_field(entry['id'],field,index_is_id=True)
|
||||||
elif field == 'title_sort':
|
elif field == 'title_sort':
|
||||||
item = _title_sort(unicode(entry['title']))
|
item = entry['sort']
|
||||||
else:
|
else:
|
||||||
item = entry[field]
|
item = entry[field]
|
||||||
|
|
||||||
@ -183,7 +183,7 @@ class CSV_XML(CatalogPlugin): # {{{
|
|||||||
record.append(item)
|
record.append(item)
|
||||||
|
|
||||||
if 'title' in fields:
|
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)
|
record.append(title)
|
||||||
|
|
||||||
if 'authors' in fields:
|
if 'authors' in fields:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user