<!--
#
# Copyright (C) 2006-2008 Georgia Public Library Service
-# Copyright (C) 2013 Equinox Software, Inc.
+# Copyright (C) 2013,2016 Equinox Software, Inc.
#
# Author: David J. Fiander
# Author: Mike Rylander
timeout="60" />
</listeners>
- <!-- One or more Memecache servers are required for Mulitplex mode. -->
+ <!-- One or more Memecache servers are required for Multiplex mode. -->
<!-- Cache server(s) are ignored in non-Multiplex mode -->
<cache>
<server>127.0.0.1:11211</server>
<login id="scclient-2" password="clientpwd-2"
institution="UWOLS" />
<login id="lpl-sc" password="1234" institution="LPL" />
- <login id="lpl-sc-beacock" password="xyzzy"
+ <login id="lpl-sc-beacock" password="xyzzy" location_code="WORKSTATION5"
delimiter="|" error-detect="enabled" institution="LPL" />
</accounts>
<institution id="UWOLS" implementation="ILS" parms="">
<policy checkin="true" renewal="false"
status_update="false" offline="false"
- timeout="600"
+ timeout="600" client_location_code="true"
retries="3" />
<relais_extensions_to_msg24 enabled="false" />
</institution>
syslog("LOG_WARNING", "MsgType::handle_login: Invalid password for login '$uid'");
$status = 0;
} else {
- $sc_loc ||= $server->{config}->{accounts}->{$uid}->{location_code};
+ if (to_bool(
+ $server
+ ->{config}
+ ->{institutions}
+ ->{ $server->{config}->{accounts}->{$uid}->{institution} }
+ ->{policy}
+ ->{client_location_code}
+ )) {
+ $sc_loc ||= $server->{config}->{accounts}->{$uid}->{location_code};
+ } else {
+ $sc_loc = $server->{config}->{accounts}->{$uid}->{location_code} || $sc_loc;
+ }
_load_ils_handler($server, $uid, $sc_loc);
}