$if q:
$ results = get_results(q, offset=offset, limit=results_per_page)
$if 'error' not in results:
$ response = results['response']
$ num_found = int(response['numFound'])
$if num_found >= 2 and ctx.user and ("merge-authors" in ctx.features or ctx.user.is_admin()):
$ keys = '&'.join('key=%s' % doc['key'] for doc in response['docs'])
$_('Is the same author listed twice?')
$_('Merge authors')$_("Author Search")
$if q and 'error' not in results: $if num_found:$ungettext('1 hit', '%(count)s hits', response['numFound'], count=commify(response['numFound']))
$else:$_('No hits')
$if q and 'error' not in results: $:macros.Pager(page, num_found, results_per_page)