[open-ils-commits] [GIT] Evergreen ILS branch rel_3_0 updated. 1344d186ae23f6f8eeb6d11a2251f29fb4874f4a

Evergreen Git git at git.evergreen-ils.org
Thu Jan 4 12:04:57 EST 2018


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_0 has been updated
       via  1344d186ae23f6f8eeb6d11a2251f29fb4874f4a (commit)
      from  9a86a51a29bb0000c174591c28977161ad7612f2 (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 1344d186ae23f6f8eeb6d11a2251f29fb4874f4a
Author: Cesar Velez <cesar.velez at equinoxinitiative.org>
Date:   Tue Oct 24 14:16:33 2017 -0400

    LP#1691861 - make Item Status edit items in batch in volcopy
    
    This makes the Item Status grid action of "Edit Items" work
    like the Copy Buckets grid "Edit Selected Items", in that the
    copies open in the volcopy editor in batch, with no record summary.
    
    Signed-off by: Cesar Velez <cesar.velez at equinoxinitiative.org>
    
    Signed-off-by: Kathy Lussier <klussier at masslnc.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 d674836..2b99b46 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
@@ -669,26 +669,30 @@ function(egCore , egCirc , $uibModal , $q , $timeout , $window , egConfirmDialog
     }
 
     service.spawnHoldingsEdit = function (items,hide_vols,hide_copies){
-        angular.forEach(service.gatherSelectedRecordIds(items), function (r) {
-            egCore.net.request(
-                'open-ils.actor',
-                'open-ils.actor.anon_cache.set_value',
-                null, 'edit-these-copies', {
-                    record_id: r,
-                    copies: service.gatherSelectedHoldingsIds(items,r),
-                    raw: {},
-                    hide_vols : hide_vols,
-                    hide_copies : hide_copies
-                }
-            ).then(function(key) {
-                if (key) {
-                    var url = egCore.env.basePath + 'cat/volcopy/' + key;
-                    $timeout(function() { $window.open(url, '_blank') });
-                } else {
-                    alert('Could not create anonymous cache key!');
-                }
-            });
+        var item_ids = [];
+        angular.forEach(items, function(i){
+	    item_ids.push(i.id);
         });
+	
+	egCore.net.request(
+	    'open-ils.actor',
+	    'open-ils.actor.anon_cache.set_value',
+	    null,
+	    'edit-these-copies',
+	    {
+	        record_id: 0,  // disables record summary
+	        copies: item_ids,
+	        raw: {},
+	        hide_vols : hide_vols,
+	        hide_copies : hide_copies
+            }).then(function(key) {
+		if (key) {
+		    var url = egCore.env.basePath + 'cat/volcopy/' + key;
+		    $timeout(function() { $window.open(url, '_blank') });
+		} else {
+		    alert('Could not create anonymous cache key!');
+		}
+	    });
     }
 
     service.replaceBarcodes = function(items) {

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

Summary of changes:
 .../web/js/ui/default/staff/circ/services/item.js  |   42 +++++++++++---------
 1 files changed, 23 insertions(+), 19 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list