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>
Sun, 22 May 2016 03:59:06 +0000 (23:59 -0400)
commit01fe24b7e77fa3a3796f305969375aee8aeef2df
tree143bbd2d7acea1f1329b05f4871ca0a61178998e
parent83e95534b7ab7d57ca59f6b0d4b2cce732f900c1
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