]> git.koha-community.org Git - koha.git/commit
Bug 32639: Send opac-search.osdx without doing an empty search
authorDavid Cook <dcook@prosentient.com.au>
Mon, 16 Jan 2023 06:03:13 +0000 (06:03 +0000)
committerLucas Gass <lucas@bywatersolutions.com>
Fri, 10 Mar 2023 14:48:27 +0000 (14:48 +0000)
commit19972170f1330e19d03f1f5ed12a236375bda6a0
tree7e4951a634983b3bfb037fa058c9cb1aa961dfa2
parent69cfbbabe39347e33ab9efc3ecf4fd3fd9d5f6f4
Bug 32639: Send opac-search.osdx without doing an empty search

This patch sends out opac-search.osdx without running the entirety
of opac-search.pl without any search query.

This prevents unnecessary computations and warnings from appearing
in the logs.

Test plan:
1. Apply patch
2. Go to
http://kohadev.myDNSname.org:8080/cgi-bin/koha/opac-search.pl?format=opensearchdescription
3. Note that no errors appear in
/var/log/koha/kohadev/plack-opac-error.log
4. Verify that opac-search.pl still works as expected when
doing a search via the web UI

Signed-off-by: David Nind <david@davidnind.com>
JD Amended patch: remove ref to bug number, we use git!

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 0cf434b7a2654c17e60af1969faf99ca77ef42dc)
Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
(cherry picked from commit 9e4bf2945d4547efd9d99229f36633a13514bdda)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
opac/opac-search.pl