Bug 20838: (bug 16735 follow-up) Fix search by group of libraries
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 30 May 2018 17:41:14 +0000 (14:41 -0300)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Tue, 5 Jun 2018 11:23:06 +0000 (12:23 +0100)
commit94eb0052ab6c7c3cbf847be7664c5fc661908870
tree29cc4d0c9d75d50360e3dadc225fcb1c1114bda3
parent76752c452dd6a593a3b43a8b80d2b39a21b71aad
Bug 20838: (bug 16735 follow-up) Fix search by group of libraries

In the last patches of bug 16735, we completely broke the feature!

The limit is using library_groups.id instead of branches.branchcode.

Test plan:
Create a group of library with the search feature
Search (OPAC and staff interfaces) using this limit

=> Without this patch you will see that the generated search query does
not contain branchcodes
=> With this patch applied you will see the branchcodes

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
catalogue/search.pl
opac/opac-search.pl