Bug 17278: Use available limit when requesting zebra when ccl query is used
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 3 Oct 2016 09:45:13 +0000 (10:45 +0100)
committerKyle M Hall <kyle@bywatersolutions.com>
Tue, 22 Nov 2016 17:44:36 +0000 (17:44 +0000)
commit5cc7c17c6444aeef00dd39acdf55c87a23b3e5e9
tree34a06fa135977802e7d6f223d72cb59492fc437d
parentd4383c6bdc6c57ad5735913eb8dad115e90cf143
Bug 17278: Use available limit when requesting zebra when ccl query is used

When a ccl query is used, the buildQuery subroutine does not handle
the available limit (not an index).
This available limit is handle later in the subroutine.
This affect the author links on the detail page for instance (an=xx).
A much better solution would be to keep an 'available' zebra index up-to-date.

Test plan:
(OPAC or staff interface, it does not matter)
- Launch a search, click on a result and then on an author link to
  launch another query (an:xx)
- Limit to available items without the 'facet'
=> Without this patch you won't get any results
=> With this patch applied you should get relevant result (regarding the
known bugs 16970, 13715, 13658, 5463, etc.)

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
C4/Search.pm
t/db_dependent/Search.t