[Koha-bugs] [Bug 29048] Incorrect search for linked authority records from authority search result list in OPAC

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Sep 14 23:31:06 CEST 2022


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29048

--- Comment #11 from David Nind <david at davidnind.com> ---
I've tested and signed off (using KTD and the sample data).

This on the assumption that it fixes the actual URL link in the records column
(X record) on the OPAC authority search results listing page by changing it
from &q=an:3 to &q=an,phr:3.

Apologies if I have misunderstood what this is fixing!

Testing notes
-------------

1. Both before and after patch: searching for Ritchie (authid=3) shows "1
record" in the records column in the authority search results listing page.

2. Link for '1 record' in the records column in the authority search results
page BEFORE the patch is applied:
http://127.0.0.1:8080/cgi-bin/koha/opac-search.pl?type=opac&op=do_search&q=an:3

3. Link for '1 record' in the records column in the authority search results
page AFTER the patch is applied:
http://127.0.0.1:8080/cgi-bin/koha/opac-search.pl?type=opac&op=do_search&q=an,phr:3

4. Both before and after the patch is applied: in the details page for the
authority record it shows "Number of records used in: 44"

5. Both before and after the patch is applied: if I click the link in the
authority search results listing page, I get 44 search results.

6. For all the above (1-5) QueryAutoTruncate was set to "automatically".

7. If QueryAutoTruncate is set to "only if * is added.", then the number of
results displays as expected: 1. (I also linked the authority to another
record, and this displayed as expected with 2 records.)

8. Bugs that will fix other issues:
   . Bug 26608 - Authorities: linked biblios is inconsistent using
elasticsearch and QueryAutoTruncate
   . Bug 30641 - Authority detail page shows wrong number of records using the
authority

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list