Bug 5817

Summary: Malformed author search link breaks sorting on results page
Product: Koha Reporter: Owen Leonard <oleonard>
Component: SearchingAssignee: Owen Leonard <oleonard>
Status: CLOSED FIXED QA Contact: Bugs List <koha-bugs>
Severity: major    
Priority: PATCH-Sent (DO NOT USE) CC: chris, fridolin.somers, jcamins, jwagner, nengard
Version: Main   
Hardware: All   
OS: All   
See Also: http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=5274
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Attachments: Proposed fix

Description Owen Leonard 2011-02-28 21:08:22 UTC
To reproduce:

1. Perform a search.
2. Click on an author link in the search results.
3. Re-sort the results of that author search.

The malformed author search link causes the re-sort to fail, redirecting the user to the advanced search form.
Comment 1 Owen Leonard 2011-02-28 21:11:39 UTC
Created attachment 3228 [details] [review]
Proposed fix

Thanks to Chris Cormack for the solution.
Comment 2 Fridolin Somers 2011-03-01 11:49:58 UTC
(In reply to comment #1)
> Created attachment 3228 [details] [review]
> Proposed fix
> 
> Thanks to Chris Cormack for the solution.

This problem is not only on author ("au:"), but on all simple search indexes : "se:", "su:", ...
No ?
Comment 3 Owen Leonard 2011-03-01 13:42:50 UTC
> This problem is not only on author ("au:"), but on all simple search indexes :
> "se:", "su:", ...

You're right. I noticed the author search was causing this error, but call number searches on the results screen are also affected, as well as similar searches on the detail screen. Follow-up patch forthcoming.
Comment 4 MJ Ray (software.coop) 2011-03-02 18:48:16 UTC
This bug is mentioned in:
Fix for Bug 5817,	Malformed author search link breaks sorting on results page http://lists.koha-community.org/pipermail/koha-patches/2011-February/013951.html
Fix for Bug 5817,	Malformed author search link breaks sorting on results page http://lists.koha-community.org/pipermail/koha-patches/2011-February/013950.html
Comment 5 Jared Camins-Esakov 2011-03-28 16:47:55 UTC
The issue Fridolyn describes is a larger issue which needs to be fixed. However, this can be fixed in the meantime by changing the search links.
Comment 6 Nicole C. Engard 2011-03-28 16:51:51 UTC
Both the patch and the follow up signed off on
Comment 7 Chris Cormack 2011-03-28 19:47:38 UTC
Original patch had already been pushed, pushed follow up
Comment 8 MJ Ray (software.coop) 2011-04-10 11:25:04 UTC
This bug is mentioned in:
Fix for Bug 5817,	Malformed author search link breaks sorting on results page http://lists.koha-community.org/pipermail/koha-patches/2011-March/014280.html
Bug 5817: Follow-up fixing	callnum: on staff results http://lists.koha-community.org/pipermail/koha-patches/2011-March/014279.html