mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-05 04:13:47 +02:00
Dont show ids that have no urls in the book details view. Follows behavior of book details panel in the GUI
This commit is contained in:
parent
edfbb3c7bc
commit
5b2f202a2c
1 changed files with 3 additions and 5 deletions
|
|
@ -172,12 +172,10 @@ def process_identifiers(field, fm, name, val):
|
|||
for k in keys:
|
||||
idval = val[k]
|
||||
x = url_map[k]
|
||||
if isinstance(x, list) and x.length is 2:
|
||||
if x:
|
||||
if td.childNodes.length:
|
||||
td.appendChild(document.createTextNode(', '))
|
||||
td.appendChild(E.a(title='{}:{}'.format(k, idval), target='_new', href=x[1], x[0]))
|
||||
else:
|
||||
td.appendChild(E.span(k, ':', idval))
|
||||
if k is not keys[-1]:
|
||||
td.appendChild(document.createTextNode(', '))
|
||||
|
||||
def process_languages(field, fm, name, val):
|
||||
if val and val.length:
|
||||
|
|
|
|||
Loading…
Reference in a new issue