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:25:06 +0000 (16:25 -0400)
commit1c25c1646806cce5bf654336f2b5d4ad8d826250
tree10623d2c08434bfe5beaf968a3b197c8467397de
parent35ec0401f884665d53b1c3e28588c3fc28b5c094
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