This commit is contained in:
Kovid Goyal 2011-04-26 21:53:08 -06:00
parent 7f133692ef
commit ff3c857c80
2 changed files with 4 additions and 3 deletions

View File

@ -118,8 +118,9 @@ def render_data(mi, use_roman_numbers=True, all_fields=False):
links = [u'<a href="%s" title="%s:%s">%s</a>' % (url, id_typ, id_val, name)
for name, id_typ, id_val, url in urls]
links = u', '.join(links)
ans.append((field, u'<td class="title">%s</td><td>%s</td>'%(
_('Ids')+':', links)))
if links:
ans.append((field, u'<td class="title">%s</td><td>%s</td>'%(
_('Ids')+':', links)))
else:
val = mi.format_field(field)[-1]
if val is None:

View File

@ -942,7 +942,7 @@ class IdentifiersEdit(QLineEdit): # {{{
ans = {}
for x in parts:
c = x.split(':')
if len(c) == 2:
if len(c) > 1:
if c[0] == 'isbn':
v = check_isbn(c[1])
if v is not None: