]> 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)
committerMatt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
Fri, 3 Mar 2023 12:04:24 +0000 (12:04 +0000)
commit9e4bf2945d4547efd9d99229f36633a13514bdda
tree80b6e11fc61fdb19ba56415cf464e044ff50bd3b
parenta076542019dee21a64e18a43977d7256d266c80c
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>
opac/opac-search.pl