]> 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)
committerArthur Suzuki <arthur.suzuki@biblibre.com>
Wed, 29 Mar 2023 12:53:57 +0000 (14:53 +0200)
commit08b46701d8e89d74f1c6af665ae26a83d646ee85
treeabb224473f2944e55f7701689841854a36a4b2ae
parent17c07ab8094708f8a868ebfb5bd64adf9c2da0e8
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>
(cherry picked from commit 19972170f1330e19d03f1f5ed12a236375bda6a0)
Signed-off-by: Arthur Suzuki <arthur.suzuki@biblibre.com>
opac/opac-search.pl