]> git.koha-community.org Git - koha.git/commit
Bug 11489: in OPAC search, display "no results" when the only search result is suppressed
authorKyle M Hall <kyle@bywatersolutions.com>
Tue, 7 Jan 2014 17:19:37 +0000 (10:19 -0700)
committerFridolin Somers <fridolin.somers@biblibre.com>
Wed, 13 Aug 2014 07:32:30 +0000 (09:32 +0200)
commitb3c73cff32c99f12b77a9b110e2a928f5dfd1679
tree46325d087e1ac388afc4da23970abe07ceba55d1
parent5d5c15f873f6285ef1fdd900c2a15cdac3a9e2c5
Bug 11489: in OPAC search, display "no results" when the only search result is suppressed

If hidelostitems is enabled, and the result of an opac search is a single
lost item, then the OPAC will display a 404 error, rather than a
"no results" screen.

Test Plan:
1) Catalog a record/item such that it is the only result for some search
   e.g. Give it the title 'zxcvb'
2) Enable hidelostitems
3) Mark this item as lost
4) Perform an OPAC search that should result in a redirect to this record
5) Notice you a redirected to a 404 error
6) Apply this patch
7) Repeat step 4
8) Note you new get a "No results found!" page instead

Signed-off-by: Christopher Brannon <cbrannon@cdalibrary.org>
Signed-off-by: Michot <nmichot@voila.fr>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
(cherry picked from commit 2277a42c565e18475c49fde031268b8038575e1a)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
opac/opac-search.pl