$for header, label in facet_map:
$ counts = facet_counts[header]
$for k, display, count in counts:
$if k not in param.get(header, []):
$continue
$if header not in ['has_fulltext', 'public_scan_b']:
$title.append(display)
$if header == 'has_fulltext':
$fulltext_names.get(k, '')
$elif header == 'public_scan_b':
$if display == 'true':
$_('Only Classic eBooks')
$else:
Classic eBooks hidden
$elif header == 'subject_facet':
$display
$elif header == 'person_facet':
$display
$elif header == 'place_facet':
$display
$elif header == 'time_facet':
$display
$elif header == 'first_publish_year':
$display
$elif header == 'language':
$display
$elif header == 'publisher_facet':
$display
$elif header == 'author_key':
$display
[x]
-
$ works = [get_doc(d) for d in docs]
$ add_availability([(w.get('editions') or [None])[0] or w for w in works])
$ username = ctx.user and ctx.user.key.split('/')[-1]
$if username:
$ works = add_read_statuses(username, works)
$ show_librarian_extras = ctx.user and (ctx.user.is_admin() or ctx.user.is_usergroup_member('/usergroup/librarians'))
$for work in works:
$ read_status = work.get('readinglog', None)
$ dropper = macros.ReadingLogDropper([], work=work, reading_log_only=True, page_url="/search", users_work_read_status=read_status)
$:macros.SearchResultsWork(work, reading_log=dropper, show_librarian_extras=show_librarian_extras)
BARF! Search engine ERROR!
$error.decode('utf-8', 'ignore')$elif param and len(docs):
$_("Zoom In")
$label $_('Merge duplicates')
$else:$label
$ num = 0 $for k, display, count in counts: $ num = num + 1 $if num <= start_facet_count:Searching solr took $("%.2f" % search_secs) seconds