]> git.evergreen-ils.org Git - Evergreen.git/commit
TPAC: First part of locg param can be branch shortname
authorLebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Mon, 22 Oct 2012 22:02:23 +0000 (18:02 -0400)
committerDan Scott <dscott@laurentian.ca>
Thu, 6 Jun 2013 14:44:09 +0000 (10:44 -0400)
commitdcf9cb39d3243ea3a59035c150d521cf5816b9c8
treed972e5bae493ad258588907bc9dfead4d1992a5b
parent05bda47c168e25fcd0aed5444a8995b3c9895efb
TPAC: First part of locg param can be branch shortname

Addresses LP #1020625.  You can use the locg param, which can set an
an OU for search context (and which has other implications related to
location/scope) by shortname now.

As long as your shortnames are something that work in an HTTP query
string, don't contain colons, and as long as you don't have numeric
shortnames for any orgs that would mask orgs with the sames numbers
as an ID (but that would be a lousy setup anyway), this should work.

Now case insensitive per recommendation by Michael Peters.  In the
event that you have org units with names that are the same except
for case (probably a bad practice), the locg parameter will simply
fail to set your context, rather than try to guess which org unit
you meant.

Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Signed-off-by: Pasi Kallinen <pasi.kallinen@pttk.fi>
Signed-off-by: Dan Scott <dscott@laurentian.ca>
Conflicts:
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Util.pm
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Util.pm
Open-ILS/src/templates/opac/parts/misc_util.tt2