]> git.evergreen-ils.org Git - Evergreen.git/commit
TPAC: Fix org_unit location detection for login
authorDan Wells <dbw2@calvin.edu>
Tue, 24 Jul 2012 16:39:49 +0000 (12:39 -0400)
committerDan Scott <dan@coffeecode.net>
Mon, 30 Jul 2012 03:52:42 +0000 (23:52 -0400)
commit3670571e47fba3dc38aeec11a5f73ddc6cbea0ce
tree97dbef62fd26c8910b67e40252818057c9af1720
parenta93650be26cfcd0118c8c816955a2cb2e8724acc
TPAC: Fix org_unit location detection for login

The TPAC login function currently looks for a 'loc' param to pass
to the login service.  This isn't right because:

A. 'loc' is a search-related param, and shouldn't affect logins
B. The login form doesn't actually pass through the 'loc' param
C. The 'loc' param has been more or less replaced by 'locg'

No, this isn't multiple choice, it's all of the above.  Our best
option at this point is to use the 'physical_loc' value instead.
This matches what was done in JSPAC (though it was called 'ol' for
"original location" back then).

Finally, this commit is 95% the work of Dan Scott, including the
additions of logging info and a few whitespace fixes.

Signed-off-by: Dan Wells <dbw2@calvin.edu>
Signed-off-by: Dan Scott <dan@coffeecode.net>
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader.pm