Bug 31543: Use query string, rather than query, to build link
authorNick Clemens <nick@bywatersolutions.com>
Wed, 26 Oct 2022 10:46:12 +0000 (10:46 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Wed, 16 Nov 2022 18:57:28 +0000 (15:57 -0300)
commit1736fe2335c637db066a536be96467cd4bd1e35e
tree068ead8b1a6acae184e0017aef4174d346a4862e
parentc0d92f9e92d3ed8170bcebc2e5f381bac70efab7
Bug 31543: Use query string, rather than query, to build link

This patch returns the query string from build_query_compat
Under Zebra, either works for the link, for ES we need the simple string

I expand the test for get_components_query to test both engines

To test:
1.0) Set search engine to Elasticsearch
1.1) Go to Tools > Stage MARC records for import
1.2) Upload the example file
1.3) In the form, choose the format 'MARCXML'
1.4) Click 'Stage for import'
1.5) Click 'Manage staged records'
1.6) Click 'Import this batch into the catalog'

2) Change MaxComponentRecords to 10
3) In the staff interface, search the catalog for 'easy piano'
4) Click on the record 'Easy piano pieces for children'
5) Click on the 'show all component parts' link at the bottom of the Components tab
--> it searches for HASH(...) - returns no results
6) Try the same in OPAC
--> it searches for HASH(...) - returns no results
7) Apply patch and restart all
8) repeat 3-6
9) Results returned!

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Koha/Biblio.pm
catalogue/detail.pl
opac/opac-detail.pl
t/db_dependent/Koha/Biblio.t