TPAC LDAP: include loc(g) param in login form user/dbs/ldap_tpac
authorDan Scott <dscott@laurentian.ca>
Tue, 10 Jul 2012 17:46:45 +0000 (13:46 -0400)
committerDan Scott <dscott@laurentian.ca>
Tue, 10 Jul 2012 17:48:10 +0000 (13:48 -0400)
commit449f46e253b5d3ee311a2af6f44a394b9a18b1dd
treee49ca963fc7fa7f2c97ac29cc34a0ed05e257207
parent067e35fd06563429366e1026ce9c0ecfb7d8c70c
TPAC LDAP: include loc(g) param in login form

The "loc" CGI param has largely been supplanted by the "locg" CGI param.
In addition, we need to pass that parameter as part of the login
credentials, otherwise we always get the tip of the org_unit tree. There
may be other parameters we need to consider, as changing the search
location does not necessarily reflect the home library of the user in
question.

Perhaps a better approach would be to define a value in config.tt2 that
gets used here, so that sites with multiple skins & corresponding
authentication proxy setups can just configure config.tt2 on a per-skin
basis rather than having to override the entire login form.tt2?

Sprinkle some timelog messages around for the sake of checking
performance and debugging parameters.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader.pm
Open-ILS/src/templates/opac/parts/login/form.tt2