From 56e30786ccf326ff69deee9a0dcf86b032d3b1ae Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Tue, 3 Sep 2019 19:35:07 -0700 Subject: do release search by container_id, not issnl --- python/fatcat_web/routes.py | 4 ++++ python/fatcat_web/templates/container_view.html | 3 +-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/python/fatcat_web/routes.py b/python/fatcat_web/routes.py index 5789dc48..f313fce0 100644 --- a/python/fatcat_web/routes.py +++ b/python/fatcat_web/routes.py @@ -632,6 +632,10 @@ def release_search(): if issnl and query: query += ' container_issnl:"{}"'.format(issnl) + container_id = request.args.get('container_id') + if container_id and query: + query += ' container_id:"{}"'.format(container_id) + if 'q' in request.args.keys(): # always do files for HTML found = do_release_search(query, fulltext_only=fulltext_only) diff --git a/python/fatcat_web/templates/container_view.html b/python/fatcat_web/templates/container_view.html index 1998bc68..c2731db2 100644 --- a/python/fatcat_web/templates/container_view.html +++ b/python/fatcat_web/templates/container_view.html @@ -23,13 +23,12 @@ Published by {{ container.publisher }} {% endif %} -{% if container.issnl %}

Search Releases from this Container

- +
-- cgit v1.2.3