Bug 7441 - search results showing wrong branch?
commit17a103d8a06345ad39e3af9c0d3a50c3f24ce5e7
authorKyle M Hall <kyle@bywatersolutions.com>
Thu, 2 Jun 2016 14:01:56 +0000 (2 14:01 +0000)
committerFrédéric Demians <f.demians@tamil.fr>
Tue, 23 Aug 2016 09:26:13 +0000 (23 11:26 +0200)
tree7333eae47bf6083500241d5afb086b87eecf8d30
parent15d16c5273231190e1d9efcce2a2c7ed34f69207
Bug 7441 - search results showing wrong branch?

When you search in the OPAC it shows you the HOME branch on the location
in XSLT, but if you click through to the detail page it shows you the
CURRENT BRANCH in the holdings table which is very confusing to patrons.
I don't know what's the right solution - home or holding branch, but they
should be the same in both places for the patron's sake. If you do the same
search in the staff client you see the right branch info on the search results
and on the detail page.

Test Plan:
1) Apply this patch
2) Run updatedatabase.pl
3) Search the catalog, you search should include results with items
   that have different home and holding libraries.
4) The results should look the same as before the patch
5) Change the system preference OPACResultsLibrary to "current location"
6) Refresh your page of search results
7) The results show now show the holding library instead of the home library

Signed-off-by: Barbara Walters <bwalters@ncrl.org>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit 4db2e745e244bfc9e8315b4903c30e21142d9cb4)
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
C4/XSLT.pm
installer/data/mysql/atomicupdate/bug_7441.sql [new file with mode: 0644]
installer/data/mysql/sysprefs.sql
koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref
koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl