Bug 39691 - Searches duplicated in search history if I change the sort order
Summary: Searches duplicated in search history if I change the sort order
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: http://localhost:8080/cgi-bin/koha/op...
Keywords:
Depends on:
Blocks:
 
Reported: 2025-04-19 05:34 UTC by kristinamason
Modified: 2025-04-19 10:55 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
A list showing duplicate searches (144.37 KB, image/png)
2025-04-19 05:34 UTC, kristinamason
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kristinamason 2025-04-19 05:34:39 UTC
Created attachment 181199 [details]
A list showing duplicate searches

Issue: My search history shows the same search multiple times if I change the sort order. 

To reproduce: 
1. Log in as a user http://localhost:8080
2. Search the catalogue for something
3. On the search results page, choose a different sort order for your results (doesn't matter what, do it a few times, A-Z, Z-A, etc). 
4. Go to the search history page http://localhost:8080/cgi-bin/koha/opac-search-history.pl
5. Note that the search shows more than once, one for each time you change the sort order.

Expectation: The search should only show once, and not register multiple times due to just changing the order of it. The search history page doesn't indicate this either, so it just looks like the same search over and over. 

Screenshot attached showing 3 searches all from 5:25. In reality I did one search and just changed the order.
Comment 1 kristinamason 2025-04-19 05:39:37 UTC
Alternatively, the search history could show the sort order on the page, so it's clear what each search was involving.