diff options
author | Bryan Newbold <bnewbold@archive.org> | 2021-01-22 11:17:42 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2021-01-22 11:17:42 -0800 |
commit | 60b031925e86ff0a408b683e91ade54156cad64f (patch) | |
tree | 40322796e46fe4a1f6c68c9aed0659ab8c1da961 /fatcat_scholar/templates/search.html | |
parent | a38b226a03010e055d7d1d6c5928827adefc5a04 (diff) | |
download | fatcat-scholar-60b031925e86ff0a408b683e91ade54156cad64f.tar.gz fatcat-scholar-60b031925e86ff0a408b683e91ade54156cad64f.zip |
for lookup (direct) and permalink queries, auto-expand result
Diffstat (limited to 'fatcat_scholar/templates/search.html')
-rw-r--r-- | fatcat_scholar/templates/search.html | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fatcat_scholar/templates/search.html b/fatcat_scholar/templates/search.html index e7ccc1b..a4a5ba4 100644 --- a/fatcat_scholar/templates/search.html +++ b/fatcat_scholar/templates/search.html @@ -126,8 +126,9 @@ {% endif %} {# search results (rendered via macro) #} + {% set expand_result = hits.query_type == 'lookup' %} {% for paper in hits.results %} - {{ search_macros.fulltext_search_result_row(paper, locale=locale, debug_mode=query.debug) }} + {{ search_macros.fulltext_search_result_row(paper, locale=locale, debug_mode=query.debug, expand=expand_result) }} {% endfor %} {% if hits.count_found > hits.limit %} |