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

DIS-477 FIX search type reset #194

Conversation

Chloe070196
Copy link

@Chloe070196
Copy link
Author

Chloe070196 commented Mar 6, 2025

May affect Advanced Search functionality - further testing required
Edit: appears unaffected

Need to see if any search Index type and search type is potentially broken by this. Also ideally need to test saved searches, and anything else that relies on BaseSearcher.

So far, no side-effects have been found.
If any are discovered, then I'll update this to reinstate and update the control flow to only assign searchIndex to type where necessary.

The following applies to EBSCO EDS and Summon searches.

Searches of searchType 'ebsco_eds' and 'summon' see their 'searchIndex' value assign to the 'type' URL parameter.

If the value of $this->searchTerms[0]['index'] is assigned to 'type=', it causes said value to be completely ignored when a search is carried out.

This results in applying a facet causing the searchIndex value to be systematically ignored, as Aspen apparently expects this value to be assigned to a 'searchIndex' URL parameter, and not 'type'.

This commit adds 'ebsco_eds' and 'summon' to the searchTypes for which 'searchIndex' is assigned to the 'searchIndex' URL parameter.
@Chloe070196 Chloe070196 force-pushed the DIS-477_fix_search_type_reset branch from b12a92c to a1404cc Compare March 12, 2025 09:58
@AlexanderBlanchardAC
Copy link

This allows the selection in the dropdown box to remain selected when a filter from a facet is added. Working as expected.

@Chloe070196 Chloe070196 merged commit d2bf48f into PTFS-Europe:DIS-477_fix_search_type_reset Mar 12, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants