patch from Lebbeous Fogle-Weekley to finalize the show-item-details-opens-new-copy...
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 19 Nov 2009 22:04:20 +0000 (22:04 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 19 Nov 2009 22:04:20 +0000 (22:04 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@14984 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/cat/copy_browser.js

index 975a55a..b306de0 100644 (file)
@@ -132,17 +132,14 @@ cat.copy_browser.prototype = {
                                     }
                                 );
 
-                                list = util.functional.map_list(
-                                    list,
-                                    function (o) {
-                                        return o.split(/_/)[1];
-                                    }
-                                );
-    
                                 JSAN.use('circ.util');
-                                for (var i = 0; i < list.length; i++) {
-                                    circ.util.show_copy_details( list[i] );
-                                }
+                                circ.util.item_details_new(
+                                    util.functional.map_list(
+                                        list, function (o) {
+                                            return obj.map_acp[o].barcode();
+                                        }
+                                    )
+                                );
                             }
                         ],
                         'cmd_add_items' : [