Make Metadata.format_field work with the new identifiers dict

This commit is contained in:
Charles Haley 2011-03-02 11:19:35 +00:00
parent 0a31b6ac00
commit ce6a3e6cd7

View File

@ -595,6 +595,8 @@ class Metadata(object):
elif key == 'series_index': elif key == 'series_index':
res = self.format_series_index(res) res = self.format_series_index(res)
elif datatype == 'text' and fmeta['is_multiple']: elif datatype == 'text' and fmeta['is_multiple']:
if isinstance(res, dict):
res = [k + ':' + v for k,v in res.items()]
res = u', '.join(sorted(res, key=sort_key)) res = u', '.join(sorted(res, key=sort_key))
elif datatype == 'series' and series_with_index: elif datatype == 'series' and series_with_index:
res = res + ' [%s]'%self.format_series_index() res = res + ' [%s]'%self.format_series_index()