Bug 11334: add ability to control which library fields are used for facets
authorKyle M Hall <kyle@bywatersolutions.com>
Tue, 3 Dec 2013 19:13:24 +0000 (14:13 -0500)
committerGalen Charlton <gmc@esilibrary.com>
Tue, 29 Apr 2014 15:57:53 +0000 (15:57 +0000)
commit3d7e6850816af7de58a9b9c9ed9938fbd1b19098
tree0d41a77f79143ada4156bc016f9d39d90137b38d
parent81cc05cbd6ea31151a03989edd1ffb3f775c3582
Bug 11334: add ability to control which library fields are used for facets

The current "Library" facet is somewhat ambiguous for Koha installations
with multiple libraries. It refers to the holdingbranch, but does not
explicitly state this. It would be beneficial to allow the administrator
to choose to show facets for the holding library, home library, or both.
In addition, the facets should be more explicitly labeled.  This patch
adds this flexibility.

Test plan:
1) Apply this patch
2) Check that the facets label "Libraries" now reads "Holding libraries"
3) Update the system preference DisplayLibraryFacets to "home library"
4) Check that the facet now reads "Home libraries"
5) Update the preference again to "both home and holding library"
6) Check that both the facets for home and holding library are now
   displayed.

Signed-off-by: Jen DeMuth <jdemuth@roseville.ca.us>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Passes all tests and QA script.
Changes apply to both prog and bootstrap OPAC and staff client.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
C4/Koha.pm
installer/data/mysql/sysprefs.sql
installer/data/mysql/updatedatabase.pl
koha-tmpl/intranet-tmpl/prog/en/includes/facets.inc
koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/searching.pref
koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-facets.inc
koha-tmpl/opac-tmpl/prog/en/includes/opac-facets.inc