]> 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)
committerTomas Cohen Arazi <tomascohen@theke.io>
Thu, 2 Mar 2023 12:37:40 +0000 (09:37 -0300)
commit0cf434b7a2654c17e60af1969faf99ca77ef42dc
treeb316af083b4cfd9ef4cc6f438f70a80c829fa6f8
parent6c5c35aa32a7ff61e46d9198dee55a0239f55f96
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>
opac/opac-search.pl