Make "show item details" consistent for top AND bottom of patron items out
authorsenator <senator@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 30 Aug 2010 14:57:56 +0000 (14:57 +0000)
committersenator <senator@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 30 Aug 2010 14:57:56 +0000 (14:57 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@17373 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/patron/items.js

index d9a804e..50eeb7b 100644 (file)
@@ -132,7 +132,12 @@ patron.items.prototype = {
                     'sel_copy_details2' : [ ['command'],
                         function() {
                             JSAN.use('circ.util');
-                            for (var i = 0; i < obj.retrieve_ids2.length; i++) { circ.util.show_copy_details( obj.retrieve_ids2[i].copy_id ); }
+                            circ.util.item_details_new(
+                                util.functional.map_list(
+                                    obj.retrieve_ids2,
+                                    function(o) { return o.barcode; }
+                                )
+                            );
                         }
                     ],
                     'cmd_items_print' : [ ['command'], function() { obj.items_print(1); } ],