This commit is contained in:
Kovid Goyal 2011-02-28 22:16:24 -07:00
parent c42ba307a1
commit 5f75cbb7ce
2 changed files with 3 additions and 1 deletions

View File

@ -20,7 +20,8 @@ from calibre.utils.date import isoformat
FIELDS = set(['title', 'authors', 'author_sort', 'publisher', 'rating',
'timestamp', 'size', 'tags', 'comments', 'series', 'series_index',
'formats', 'isbn', 'uuid', 'pubdate', 'cover', 'last_modified'])
'formats', 'isbn', 'uuid', 'pubdate', 'cover', 'last_modified',
'identifiers'])
def send_message(msg=''):
prints('Notifying calibre of the change')

View File

@ -2891,6 +2891,7 @@ class LibraryDatabase2(LibraryDatabase, SchemaUpgrade, CustomColumns):
x['formats'] = []
isbn = self.isbn(db_id, index_is_id=True)
x['isbn'] = isbn if isbn else ''
x['identifiers'] = self.get_identifiers(db_id, index_is_id=True)
if not x['authors']:
x['authors'] = _('Unknown')
x['authors'] = [i.replace('|', ',') for i in x['authors'].split(',')]