Bug 7401 - Shelving Location facet
authorKyle M Hall <kyle@bywatersolutions.com>
Thu, 16 Feb 2012 17:09:44 +0000 (12:09 -0500)
committerPaul Poulain <paul.poulain@biblibre.com>
Wed, 19 Sep 2012 12:25:04 +0000 (14:25 +0200)
commit881ee1b1a14691db09cce9ef0ce4ad01151e884d
treef993a56c09f8df0e65859c621876924b9fc02323
parent884c8a2b7cceeb13b2478ecd9b941a5ddec6470f
Bug 7401 - Shelving Location facet

This patch enables the shelving location facet as an
alternative to the branches fact in two situations:
A) SingleBranchMode is enabled
B) There is only one branch in the branches table

Test Plan:
1) Catalog multiple items with different shelving locations.
2) Test enable by enabling SingleBranchMode
3) Test enable by deleting all but one branch

Based on initial patch by Ian Walls.

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Tested cases 2) and 3) successfully in OPAC and staff client

Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
C4/Branch.pm
C4/Koha.pm
C4/Search.pm
koha-tmpl/intranet-tmpl/prog/en/includes/facets.inc
koha-tmpl/opac-tmpl/prog/en/includes/opac-facets.inc
opac/opac-search.pl