TPAC: Add physical_dept arg/cookie
authorJeff Godin <jgodin@tadl.org>
Mon, 11 Mar 2013 20:25:40 +0000 (16:25 -0400)
committerJeff Godin <jgodin@tadl.org>
Tue, 7 Apr 2015 16:22:31 +0000 (12:22 -0400)
commit8f6fe3d4e0c463ce9dc0286f9c1e089d862e5399
treebc8913806d9366af36883b88a0a072788ff6a09a
parente7ea5b3f2e3b2296f687ee0596ec59e0b6b77f10
TPAC: Add physical_dept arg/cookie

Add physical_dept variable to TPAC -- set by url argument, backed by
a session cookie.

This is accessible to TPAC templates as ctx.physical_dept, and can
be used by conditionals to show/hide UI components based on the
provided location of a catalog terminal within a library.

physical_dept is independent from, and can be used in combination
with, physical_loc: /eg/opac/home?physical_loc=2&physical_dept=teen

Signed-off-by: Jeff Godin <jgodin@tadl.org>
Conflicts:
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader.pm
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader.pm