This commit is contained in:
Kovid Goyal 2020-06-27 08:30:41 +05:30
parent b5ae91b6a6
commit e89dbb1d3f
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -294,7 +294,7 @@ def mi_to_html(
all_vals = sorted(all_vals, key=sort_key) all_vals = sorted(all_vals, key=sort_key)
links = ['<a href="%s" title="%s">%s</a>' % ( links = ['<a href="%s" title="%s">%s</a>' % (
search_action_with_data(st, x, book_id, field), _('Click to see books with {0}: {1}').format( search_action_with_data(st, x, book_id, field), _('Click to see books with {0}: {1}').format(
metadata['name'], a(x)), p(x)) metadata['name'] or field, a(x)), p(x))
for x in all_vals] for x in all_vals]
val = metadata['is_multiple']['list_to_ui'].join(links) val = metadata['is_multiple']['list_to_ui'].join(links)
elif metadata['datatype'] == 'text' or metadata['datatype'] == 'enumeration': elif metadata['datatype'] == 'text' or metadata['datatype'] == 'enumeration':
@ -305,7 +305,7 @@ def mi_to_html(
st = field st = field
val = '<a href="%s" title="%s">%s</a>' % ( val = '<a href="%s" title="%s">%s</a>' % (
search_action_with_data(st, val, book_id, field), a( search_action_with_data(st, val, book_id, field), a(
_('Click to see books with {0}: {1}').format(metadata['name'], val)), p(val)) _('Click to see books with {0}: {1}').format(metadata['name'] or field, val)), p(val))
ans.append((field, row % (name, val))) ans.append((field, row % (name, val)))