]> git.koha-community.org Git - koha.git/commit
Bug 11158: Add complete field to authority "starts with" search
authorDavid Cook <dcook@prosentient.com.au>
Tue, 5 Jan 2021 00:21:16 +0000 (00:21 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Mon, 18 Jul 2022 13:30:13 +0000 (10:30 -0300)
commite25819723d5b1e99e2334f4b00adafb0a5134eae
tree4cf917a3887349eda2119d9ab2f9fad57a06e9ad
parentf154fb0372d2e24318cad75bb65b993d47da8290
Bug 11158: Add complete field to authority "starts with" search

This patch adds "complete field" to the authority "starts with"
search so that it uses the untokenized "p" register.

Test plan:
1. Apply the patch
2. koha-plack --restart kohadev
3. Go to http://localhost:8081/cgi-bin/koha/authorities/authorities-home.pl
4. Type in "Espen" into the search box and hit "Submit"
5. Note that there are 3 results
6. Change "contains" to "starts with" and hit "Submit"
7. Note that no results are returned
8. Change the search from "Espen" to "Sandberg" and hit "Submit"
9. Note that 3 results are returned
10. Experiment to your heart's content and rejoice at your new found power

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
C4/AuthoritiesMarc.pm