From 97d305433d1adaa5eca3882f82e516857ecf8b8a Mon Sep 17 00:00:00 2001 From: Dan Scott Date: Fri, 31 Aug 2012 17:31:17 -0400 Subject: [PATCH] TPAC: Fall back on physical_loc, if set, for org selector If "SetEnv physical_loc 123" is set for a given VirtualHost in the Apache configuration, that's a useful fallback for cases where a good default is not otherwise available to us. Signed-off-by: Dan Scott --- Open-ILS/src/templates/opac/parts/misc_util.tt2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Open-ILS/src/templates/opac/parts/misc_util.tt2 b/Open-ILS/src/templates/opac/parts/misc_util.tt2 index 1a393c7b05..f699f87c9b 100644 --- a/Open-ILS/src/templates/opac/parts/misc_util.tt2 +++ b/Open-ILS/src/templates/opac/parts/misc_util.tt2 @@ -278,9 +278,9 @@ IF show_loc_groups; loc_name = 'locg'; END; END; IF !loc_value; - loc_value = CGI.param('loc') || ctx.search_ou; + loc_value = CGI.param('loc') || ctx.search_ou || env.physical_loc; IF show_loc_groups; - loc_value = CGI.param('locg') || ctx.search_ou; + loc_value = CGI.param('locg') || ctx.search_ou || env.physical_loc; END; END; END; -- 2.11.0