Bug 37057: Restore filtering of unused authorities
authorNick Clemens <nick@bywatersolutions.com>
Tue, 11 Jun 2024 12:29:13 +0000 (12:29 +0000)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Mon, 1 Jul 2024 16:55:53 +0000 (18:55 +0200)
commit30acbb260489555d49e90e3af6da0d1a3440d76e
treefb5e9ecb563a162d2dc8cba040f2cb76c298f0fc
parent99b2fab56918f7e15183627540641a155e315726
Bug 37057: Restore filtering of unused authorities

Bug 12478 commented this code out, however, we do return the 'used' parameter in ES authority searches. While
we should implement the feature for both ES and Zebra as an index, we can restore this behaviour here.

To test:
1 - Search authorities on OPAC with SearchEngine syspref set to both Elasticsearch and Zebra
    I just searched for 'a'
2 - Confirm results with no usage are included
3 - Test with both values of OPACShowUnusedAuthorities
4 - Apply patch
5 - Repeat searches with both engines and syspref settings
6 - Confirm unused authorities not shown in either engine when syspref is "Don't show"
7 - Conifrm unused authorities shown in both engines when syspref is "Show"

Signed-off-by: David Nind <david@davidnind.com>
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