Physical Location Fixes/Enhancements user/tsbere/pref_lib_fixes
authorThomas Berezansky <tsbere@mvlc.org>
Tue, 14 Aug 2012 14:50:11 +0000 (10:50 -0400)
committerThomas Berezansky <tsbere@mvlc.org>
Tue, 14 Aug 2012 14:50:11 +0000 (10:50 -0400)
commitdc1af19feaeb0e1af1affe33d98573d7dca86e0f
treea192e8abad7631aca3981a5776b33add62aa19b0
parentaac4d806af6b3eaebc15a660c99c0f39eb49f14d
Physical Location Fixes/Enhancements

Teach the physical location retrieval function about using an ENV var.

This allows a subdomain to force a specific physical location, say by adding
to their apache config:

SetEnv physical_loc 4

Rewriterules could also be used for more dynamic configuration.

Also, as a fix:

Have preferred library use the stored physical location instead of assuming
that CGI has the setting all the time.

Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader.pm
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Util.pm