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:53 +0000 (16:20 -0400)
commit8ab1bd5f05da9dd91a94ad3c1b7f1acf9303496e
tree6606b9ed562b64ceda6061003dd5466687ff669c
parent4070d823f4f073fc3ae54891fa005a69d1a54a5f
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