Bug 36266 - "Edit search" and "Search in result list" not working well together
Summary: "Edit search" and "Search in result list" not working well together
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Searching (show other bugs)
Version: Main
Hardware: All All
: P5 - low normal
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-07 09:34 UTC by Katrin Fischer
Modified: 2024-03-07 09:34 UTC (History)
0 users

See Also:
GIT URL:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Katrin Fischer 2024-03-07 09:34:22 UTC
It looks like that when you use the "search in results" feature, the "edit search" fails at least in some cases, as the created search is not the same.

Example (works with ktd sample data)
* In the staff interface, go to advanced search
* Search for: Subject, phrase: biography
* You should have 22 results
* Enter "music" in the "Search within results" search box on top of the results list
* You should have 3 results

/cgi-bin/koha/catalogue/search.pl?idx=su%2Cphr&q=biography&&&limit=music

* Click "Edit this search" link on top of results list
* Verify both criteria show up in the form (the music one is at the bottom)
* Don't change the form, just search again
* NOT OK: 0 results

/cgi-bin/koha/catalogue/search.pl?advsearch=1&idx=su%2Cphr&q=biography&limit=music%3A&other_music0=on&sort_by=relevance