[open-ils-commits] [GIT] Evergreen ILS branch rel_2_7 updated. 55fbf4e3e3bc7921b8aaa3ad084c9c89f9bf7190

Evergreen Git git at git.evergreen-ils.org
Tue Aug 18 23:12:25 EDT 2015


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".

The branch, rel_2_7 has been updated
       via  55fbf4e3e3bc7921b8aaa3ad084c9c89f9bf7190 (commit)
      from  0a294d7453e864e8c6c25ffc8cd9f7884e49e357 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 55fbf4e3e3bc7921b8aaa3ad084c9c89f9bf7190
Author: Bill Erickson <berickxx at gmail.com>
Date:   Mon Mar 30 11:19:55 2015 -0400

    LP#1438252 SIP honor floating copy checkin location
    
    Report the new value for a copy's circ_lib when it's a floating copy
    whose circ_lib is modified during checkin.
    
    This affects the AQ field of the SIP checkin (10) message.
    
    Signed-off-by: Bill Erickson <berickxx at gmail.com>
    Signed-off-by: Ben Shum <bshum at biblio.org>

diff --git a/Open-ILS/src/perlmods/lib/OpenILS/SIP/Transaction/Checkin.pm b/Open-ILS/src/perlmods/lib/OpenILS/SIP/Transaction/Checkin.pm
index ecafcc3..c937892 100644
--- a/Open-ILS/src/perlmods/lib/OpenILS/SIP/Transaction/Checkin.pm
+++ b/Open-ILS/src/perlmods/lib/OpenILS/SIP/Transaction/Checkin.pm
@@ -168,6 +168,20 @@ sub do_checkin {
         $copy = $resp->{payload}->{copy} || '';
     }
 
+    if ($copy) {
+        # Checkin of floating copies changes the circ lib.
+        # Update our SIP "item" to reflect the change.
+
+        if ($copy->circ_lib != $self->item->{copy}->circ_lib->id) {
+            syslog('LOG_INFO', "OILS: updating copy circ lib after checkin");
+
+            $self->item->{copy}->circ_lib(
+                OpenILS::SIP->editor()
+                    ->retrieve_actor_org_unit($copy->circ_lib)
+            );
+        }
+    }
+
     if ($self->item->hold) {
         my ($pickup_lib_id, $pickup_lib_sn);
 

-----------------------------------------------------------------------

Summary of changes:
 .../lib/OpenILS/SIP/Transaction/Checkin.pm         |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list