Permalink
Browse files

fixing searchresult component adding list-books style

  • Loading branch information...
mekarpeles authored and root committed Feb 8, 2019
1 parent b917e00 commit 3f5507f608e2351ba3f7abc96dc228c2eb4da0cd
@@ -8,7 +8,7 @@
$ hits = results['hits'].get('hits', [])
$ num_found = results['hits'].get('total', 0)
<div id="searchResults">
<ul id="siteSearch">
<ul id="siteSearch" class="list-books">
$for doc in hits:
$if doc.get('edition'):
$ snippet = macros.FulltextSnippet(query, doc=doc)
@@ -13,7 +13,7 @@ <h1>$_("Add a Book")</h1>

<div id="contentBody">
<div id="searchResults">
<ul id="siteSearch">
<ul id="siteSearch" class="list-books">
$for work in matches:
<li class="workResult" id="$work.key.split('/')[-1]">
<span class="bookcover">
@@ -46,7 +46,7 @@ <h1>

$if q and 'error' not in results:
<div id="searchResults">
<ul id="siteSearch">
<ul id="siteSearch" class="list-books">
$for doc in response['docs']:
$ authors = zip(doc.get('author_key', []), doc.get('author_name', []))
<li>
@@ -170,7 +170,7 @@ <h2 class="collapse">


<div id="searchResults">
<ul id="siteSearch">
<ul id="siteSearch" class="list-books">
$for doc in books.works:
$:macros.SearchResultsWork(doc)
</ul>

0 comments on commit 3f5507f

Please sign in to comment.