]> git.evergreen-ils.org Git - evergreen/tadl.git/commit
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>
Mon, 11 Mar 2013 20:25:40 +0000 (16:25 -0400)
commitf4cc31e9677c39322c4b9fc24b77862566089456
treea7c2c37d4b8c4c44316e31873e288bbc9b13e561
parentb740e6583c6765bff1f96a660255b46b75193754
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>
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader.pm