[Koha-bugs] [Bug 2422] Cataloging searches with more than 1 page results show blank pages after page 1
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu Jun 11 10:41:31 CEST 2015
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=2422
Nicholas van Oudtshoorn <vanoudt at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|WORKSFORME |---
Status|CLOSED |REOPENED
CC| |vanoudt at gmail.com
--- Comment #1 from Nicholas van Oudtshoorn <vanoudt at gmail.com> ---
We've had this issue on both 3.18 and now 3.20. Doing a search that brings up
pages yields the first page of results. But clicking on another page takes you
to a dreaded "No results found page". It seems that the browser (Firefox, if it
helps) seems to be thrown by what's in the query_cgi parameter. For instance,
this link to the second page -
http://library.pbc.wa.edu.au/cgi-bin/koha/opac-search.pl?q=bible%20theology%20%23relevance_asc&offset=20&sort_by=relevance_asc
- doesn't work.
I've fixed it by adjusting the file , changing very instance of
[% query_cgi |html %]
to
[% query_cgi |html |replace('%23.*', '') %]
The generated link -
http://library.pbc.wa.edu.au/cgi-bin/koha/opac-search.pl?q=bible%20theology%20&offset=20&sort_by=relevance_asc
- now works as expected... It seems that this removes the sort order from the
query - which is fine, since we put it in again.
Thoughts? I'm not sure modifying page-numbers.inc is the best place to be doing
this...
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list