]> 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)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Mon, 29 Jan 2024 11:25:02 +0000 (12:25 +0100)
commit0ecb02eff9564908aaed8eb76169e714568e7df1
tree9d352de619b037faa678c532e19fff1502e114f2
parent7ef044cffda97c2318829a06d5ff76f0b67a13fa
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>
opac/opac-authorities-home.pl