TPAC - add library scoping to shelf browser
authorBen Shum <bshum@biblio.org>
Sun, 12 Aug 2012 07:25:49 +0000 (03:25 -0400)
committerDan Scott <dscott@laurentian.ca>
Mon, 13 Aug 2012 20:20:27 +0000 (16:20 -0400)
commitff490fbc2c552d33ee11065fe249c0e9e4aa9b8e
treea58d8569d2512504654988ad3b23ebb9237c03a7
parent767fcaa324a97288663cf29809264e1d1b42423a
TPAC - add library scoping to shelf browser

The shelf browser currently uses the 'loc' variable to define scoping and
limit browsing to specific org units. However, since much of the scoping
actually uses 'locg', the scoping was broken for the shelf browser.

Additionally, under Advanced Search's Numeric Search, the option for
'Call Number (Shelf Browse)' only applies the 'cn' variable to searches
and never adds the search scope, despite the search library now being
an available filter choice.

Based on suggestion by Dan Scott in IRC, this patch uses the function for
_get_search_lib() to retrieve the search library and add it to both parts
of the shelf browser.

Signed-off-by: Ben Shum <bshum@biblio.org>
Signed-off-by: Dan Scott <dscott@laurentian.ca>
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Record.pm
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Search.pm