summaryrefslogtreecommitdiffstats
path: root/fatcat_scholar/templates/search.html
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2020-08-06 20:21:33 -0700
committerBryan Newbold <bnewbold@archive.org>2020-08-06 20:21:33 -0700
commitb7a3739239df2fb1573a8677eaef9b7104c4ad0a (patch)
tree2998374d44d2d9bdb0c3aac39b23bc24f190fa84 /fatcat_scholar/templates/search.html
parent65b96de965cf3633a216d6740791376d00a11564 (diff)
downloadfatcat-scholar-b7a3739239df2fb1573a8677eaef9b7104c4ad0a.tar.gz
fatcat-scholar-b7a3739239df2fb1573a8677eaef9b7104c4ad0a.zip
add debug mode flag (to control json tag/link)
Diffstat (limited to 'fatcat_scholar/templates/search.html')
-rw-r--r--fatcat_scholar/templates/search.html5
1 files changed, 4 insertions, 1 deletions
diff --git a/fatcat_scholar/templates/search.html b/fatcat_scholar/templates/search.html
index b4e6098..3faf499 100644
--- a/fatcat_scholar/templates/search.html
+++ b/fatcat_scholar/templates/search.html
@@ -17,6 +17,9 @@
{{ search_macros.query_hidden(query.type_options, query.filter_type) }}
{{ search_macros.query_hidden(query.availability_options, query.filter_availability) }}
{{ search_macros.query_hidden(query.sort_options, query.sort_order) }}
+ {% if query.debug %}
+ <input form="search_form" type="hidden" name="debug" value="1">
+ {% endif %}
<details class="search_filters">
<summary style="float: right;"><i class="filter icon"></i>{{ _("Filters") }}</summary>
@@ -87,7 +90,7 @@
{# search results (rendered via macro) #}
{% for paper in hits.results %}
- {{ search_macros.fulltext_search_result_row(paper, locale=locale) }}
+ {{ search_macros.fulltext_search_result_row(paper, locale=locale, debug_mode=query.debug) }}
{% endfor %}
{% if hits.count_found > hits.limit %}