Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

literature: add parentheses to search query #1173

Merged
merged 2 commits into from
Oct 18, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
Changes
=======

Version 1.0.0a69 (released 2022-10-18)

- adapt literature search query

Version 1.0.0a68 (released 2022-10-06)

- bump pycountry
Expand Down
2 changes: 1 addition & 1 deletion invenio_app_ils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@

"""invenio-app-ils."""

__version__ = '1.0.0a68'
__version__ = '1.0.0a69'

__all__ = ("__version__",)
2 changes: 1 addition & 1 deletion invenio_app_ils/literature/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def filter_serial_issues(search, query_string=None):
if not strtobool(include_all):
issue_query_string = "NOT document_type:SERIAL_ISSUE"
if query_string:
query_string = "{} AND {}".format(query_string, issue_query_string)
query_string = "({}) AND ({})".format(query_string, issue_query_string)
else:
query_string = issue_query_string
return search, query_string
Expand Down