Pass activity_who from the config to the ILS user/miker/sip-user-tracking
authorMike Rylander <mrylander@gmail.com>
Mon, 10 Nov 2014 16:13:14 +0000 (11:13 -0500)
committerMike Rylander <mrylander@gmail.com>
Mon, 10 Nov 2014 16:13:14 +0000 (11:13 -0500)
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/examples/oils_sip.xml.example
Open-ILS/src/perlmods/lib/OpenILS/SIP.pm

index ee37152..29fde83 100644 (file)
@@ -28,7 +28,7 @@
        </listeners>
 
        <accounts>
-               <login id="scclient" password="clientpwd" institution="gapines"/>
+               <login id="scclient" password="clientpwd" institution="gapines" activity_who="testclient"/>
        </accounts>
 
        <!-- Institution tags will hold stuff used to interface to -->
@@ -39,7 +39,7 @@
        <institutions>
 
 
-               <institution id="gapines" implementation="OpenILS::SIP">
+               <institution id="gapines" implementation="OpenILS::SIP" activity_who="pinesclient">
 
                        <!-- This defines what actions we want to allow 
                                remote clients (self-check machines) to perform -->
@@ -56,6 +56,7 @@
                        <implementation_config>
                                <bootstrap>SYSCONFDIR/opensrf_core.xml</bootstrap>
                                <currency>USD</currency>
+                               <default_activity_who>sipclient</default_activity_who>
 
                                <!-- The default encoding defined in the SIP specification is -->
                                <!-- ASCII, which isn't great for French, Spanish, Armenian. -->
index bd11e19..f0106e6 100644 (file)
@@ -245,7 +245,8 @@ sub login {
             username => $username, 
             password => md5_hex($seed . md5_hex($password)), 
             type     => 'opac',
-            nonce    => $nonce
+            nonce    => $nonce,
+            agent    => OpenILS::SIP::Patron->get_act_who()
         }
     );