]> git.koha-community.org Git - koha.git/commit
Bug 35578: Validate "Where" in OPAC Authority search
authorDavid Cook <dcook@prosentient.com.au>
Fri, 15 Dec 2023 00:14:05 +0000 (00:14 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Thu, 1 Feb 2024 14:50:38 +0000 (15:50 +0100)
commitf234d67ca6c9ddf882390c16cca40cc1255808d0
treeb53ddd2a0ae0f9647d7215732576ec730625c34f
parentd6ad2785de6eb40a38ba6969c1d14f67282ffb51
Bug 35578: Validate "Where" in OPAC Authority search

This patch adds validation to the "Where" field in OPAC Authority search.

Test plan:
0. Apply the patch and koha-plack --reload kohadev
1. Go to http://localhost:8080/cgi-bin/koha/opac-authorities-home.pl
2. Type "test" into "Term(s)" field
3. Click "Submit"
4. Confirm a result is found

5. Repeat the above using "Where" values of "in the complete record",
"in any heading", and "in main entry"

6. Using the HTML inspector in the browser, change the value of
the selected option of the "marclist" select element to
"this is broken"
7. Click "Submit"
8. Confirm a result is found (ie it's not throwing a fatal error
anymore)

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 0ecb02eff9564908aaed8eb76169e714568e7df1)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
opac/opac-authorities-home.pl