-
Notifications
You must be signed in to change notification settings - Fork 118
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
Allow page view derived Advanced Search blocks on any page #843
Allow page view derived Advanced Search blocks on any page #843
Conversation
Allows the Advanced Search block to be used on pages where its corresponding view is not present. Now it will redirect to the route associated with the view it was generated from. This is not valid for Advanced Search blocks that are derived from non-page based views, as there is no known location in which to redirect the query.
I just tried this fix out and I can't seem to get it to go. I've confirmed that solr search is working with non-advanced search, but every time I use the advanced search block it's almost as if the query never fires after the redirect. I'm getting redirected to https://islandora.traefik.me/solr-search/content?a[0][f]=title&a[0][i]=IS&a[0][v]=example when that happens. There's nothing in the JS console, but in my logs I'm getting this:
|
@dannylamb I just pushed a fix for the $recurse = filter_var(isset($values['recursive']) ? $values['recursive'] : FALSE, FILTER_VALIDATE_BOOLEAN); To set When you search without the Advanced search module, what page does it redirect you to, is it different? I'm thinking there must be some configuration issue, though not sure what it is without access to the site. |
@dannylamb what's the commit of |
Let me spin another environment up and I'll give you the exact steps I'm doing to reproduce. Since this is a bugfix, I'd love to get it in for the release. |
I did this with a
Then I ingested some content and searched for it to confirm the After that I pulled in this PR, enabled |
Followed the steps and figured out was wrong in the configuration, though there is something else messed up not related to the changes, in that saving any block manually as a user causes it to disappear, so not sure whats up with that. The setting that was causing problems is on the I'm push up another commit that documents this configuration requirement. |
@dannylamb could you review again and change that setting to confirm everything is hunky dory. Thanks! |
Yeah no prawbs. I'll double check it today.
…On Tue, Jul 27, 2021, 12:45 Nigel Banks ***@***.***> wrote:
@dannylamb <https://github.com/dannylamb> could you review again and
change that setting to confirm everything is hunky dory. Thanks!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#843 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AE6PSH7LEHEHMCCFYWQGHE3TZ3ICVANCNFSM5AV7JCOA>
.
|
Allows the Advanced Search block to be used on pages
where its corresponding view is not present. Now it
will redirect to the route associated with the view
it was generated from.
This is not valid for Advanced Search blocks that
are derived from non-page based views, as there is
no known location in which to redirect the query.
GitHub Issue: Islandora/documentation#1869
Release pull requests, etc.)
https://islandora.slack.com/archives/CM5PPAV28/p1626110292349300
What does this Pull Request do?
Allows advanced search blocks to be used on pages where the view that they are derived from is not present. Only applies to page views, as they have a location to redirect to.
How should this be tested?
Example of previous behaviour
Behaviour after fix
Interested parties
@Islandora/8-x-committers