[open-ils-commits] [GIT] Evergreen ILS branch rel_3_3 updated. 0a87c9f53a43b80808f3103d0990d19aaf0f3d77

Evergreen Git git at git.evergreen-ils.org
Fri Feb 21 13:44:15 EST 2020


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_3_3 has been updated
       via  0a87c9f53a43b80808f3103d0990d19aaf0f3d77 (commit)
      from  10e607d6da26c537b3cc80c4da8ab0b58f55b80d (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 0a87c9f53a43b80808f3103d0990d19aaf0f3d77
Author: Bill Erickson <berickxx at gmail.com>
Date:   Mon Dec 2 17:44:14 2019 -0500

    LP1854197 Add Vols and Copies honors owning lib
    
    Fixes a bug in the Add Volumes and Copies action where there vol/copy
    editor was unable to extract the owning library of the selected volumes,
    thus leading to no differentation between owning libraries in the editor
    and having all of the new volumes/copies linked (by default) to the
    first owning library in the list.
    
    To test:
    
    1. Navigate to Item Status UI
    2. Scan multiple (say, 3) barcodes, each with a different owning lib.
    3. Select all 3 items and chose "Add Callnumbers and Items"
    4. The holdings edit page that results should show one volume and copy
       row per owning library instead of all rows linked to the first owning
       library in the set.
    
    Signed-off-by: Bill Erickson <berickxx at gmail.com>
    Signed-off-by: Jessica Woolford <jwoolford at biblio.org>
    Signed-off-by: Chris Sharp <csharp at georgialibraries.org>

diff --git a/Open-ILS/web/js/ui/default/staff/circ/services/item.js b/Open-ILS/web/js/ui/default/staff/circ/services/item.js
index 51107bd82f..223ba1d8ca 100644
--- a/Open-ILS/web/js/ui/default/staff/circ/services/item.js
+++ b/Open-ILS/web/js/ui/default/staff/circ/services/item.js
@@ -717,7 +717,12 @@ function(egCore , egCirc , $uibModal , $q , $timeout , $window , egConfirmDialog
                     service.gatherSelectedHoldingsIds(items,r),
                     function (i) {
                         angular.forEach(items, function(item) {
-                            if (i == item.id) raw.push({owner : item['call_number.owning_lib']});
+                            if (i == item.id) {
+                                // owning_lib may be fleshed.
+                                var owner = item['call_number.owning_lib.id']
+                                    || item['call_number.owning_lib'];
+                                raw.push({owner : owner});
+                            }
                         });
                     }
                 );

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

Summary of changes:
 Open-ILS/web/js/ui/default/staff/circ/services/item.js | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list