Skip to content

Conversation

@kmcarnes
Copy link
Contributor

@kmcarnes kmcarnes commented Aug 27, 2025

When making a new advanced search with EDS, the default search mode is not selected because it assumes that if there is a search object that it will specify the search mode, but the search object can be created with other defaults that don't include the search mode.

This changes the function to check the search object for a search mode and select the default if none were found.

TODO:

@demiankatz demiankatz added this to the 11.0 milestone Aug 27, 2025
Copy link
Member

@demiankatz demiankatz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @kmcarnes!

Looks like the build is failing here because of a minor style issue (missing use statement for function). You can run composer fix and commit the results to get things passing.

@demiankatz
Copy link
Member

@kmcarnes, style issue aside, this logic looks good and it's working correctly for me -- so I'll approve and merge this as soon as the fix is pushed up. I'm also happy to help as needed -- just figured asking you to do it would be a useful learning experience on your first PR. :-)

@kmcarnes kmcarnes force-pushed the eds-default-searchmode branch from b26d3c5 to f7156e6 Compare August 27, 2025 13:20
@kmcarnes
Copy link
Contributor Author

Thanks @demiankatz, I learn best by doing.

Copy link
Member

@demiankatz demiankatz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks again, @kmcarnes!

@demiankatz demiankatz merged commit bedb87a into vufind-org:dev Aug 27, 2025
6 checks passed
@kmcarnes kmcarnes deleted the eds-default-searchmode branch August 27, 2025 13:36
@demiankatz demiankatz modified the milestones: 11.0, 10.2.1 Sep 9, 2025
@demiankatz
Copy link
Member

Since there is going to be a 10.2.1 release, I have backported this fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants