-
Notifications
You must be signed in to change notification settings - Fork 6
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
Add indexing notes search to chant search page #1576
Conversation
- ChantSearchMSView: add filtering by indexing notes to the queryset - chant_search.html: add indexing notes search option in the form - chant_search.js: implement form logic for indexing notes search options
- ChantSearchMSView: add filtering by indexing notes to the queryset - chant_search.html: add indexing notes search option in the form - chant_search.js: implement form logic for indexing notes search options
…into issue-843
# the operation parameter can be "contains" or "starts_with" | ||
if operation == "contains": | ||
indexing_notes_filter = Q(indexing_notes__icontains=notes) | ||
else: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, you're right. I completely forgot about that issue. #1484 is concerned with the actual parameter values themselves, for example if a user inputs a string type value for an expected int type. In this case, the expected value can be anything, since we are doing a text search.
I copied this logic from another part of the code and did some testing, I don't think we'll encounter the 500 error here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, great! I'm good to merge
This PR adds functionality to the chant search page by adding the ability to search for keywords in the indexing notes of a chant. This feature is available only on the "searching in source" page. It was a relatively new feature on Old Cantus, which is why it was probably missed when re-building the new site.
Resolves #843