summaryrefslogtreecommitdiffstats
path: root/python/fatcat_web
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2020-07-28 11:33:28 -0700
committerBryan Newbold <bnewbold@robocracy.org>2020-07-30 18:28:03 -0700
commit241259da5fbda87b93f18d85d180b4829312b3bc (patch)
tree8c89d3baea4962c14d8cb565b1e57d0d05b78e1d /python/fatcat_web
parente28fa0da97f4edc070f665a9f5fd4f4036196a18 (diff)
downloadfatcat-241259da5fbda87b93f18d85d180b4829312b3bc.tar.gz
fatcat-241259da5fbda87b93f18d85d180b4829312b3bc.zip
release search: fix fulltext_only checkbox (from query object)
Diffstat (limited to 'python/fatcat_web')
-rw-r--r--python/fatcat_web/routes.py1
-rw-r--r--python/fatcat_web/templates/release_search.html2
2 files changed, 2 insertions, 1 deletions
diff --git a/python/fatcat_web/routes.py b/python/fatcat_web/routes.py
index 20fe0e12..1281a617 100644
--- a/python/fatcat_web/routes.py
+++ b/python/fatcat_web/routes.py
@@ -742,6 +742,7 @@ def coverage_search():
coverage_stats=None,
coverage_type_preservation=None,
year_histogram_svg=None,
+ date_histogram_svg=None,
)
query = ReleaseQuery.from_args(request.args)
diff --git a/python/fatcat_web/templates/release_search.html b/python/fatcat_web/templates/release_search.html
index 7fb475e3..b1021322 100644
--- a/python/fatcat_web/templates/release_search.html
+++ b/python/fatcat_web/templates/release_search.html
@@ -23,7 +23,7 @@
<button class="ui primary button">Search</button>
</div>
<div class="ui checkbox" style="float: right; margin: 1em;">
- <input type="checkbox" name="fulltext_only" id="fulltext_only" value="true" {% if fulltext_only %}checked{% endif %}>
+ <input type="checkbox" name="fulltext_only" id="fulltext_only" value="true" {% if query.fulltext_only %}checked{% endif %}>
<label for="fulltext_only">Fulltext Available Only</label>
</div>
<br>Can also lookup by <b><a href="/release/lookup">identifier</a></b> or search for <b><a href="/container/search?q={{ query.q or "" }}">containers</a></b> (eg, journals).