don't need a network retrieve, we already have the values
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 27 Feb 2006 17:27:02 +0000 (17:27 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 27 Feb 2006 17:27:02 +0000 (17:27 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@3200 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/chrome/content/legacy/_browse.xul

index 6636d0f..e8fdf93 100644 (file)
                        list = util.functional.map_list(
                                list,
                                function (o) {
-                                       var cn =  g.network.simple_request(
-                                               'FM_ACN_RETRIEVE',
-                                               o.getAttribute('volume_id')
-                                       );
-                                       var ou_id = cn.owning_lib();
-                                       var label = cn.label();
+                                       var ou_id = o.getAttribute('ou_id');
+                                       var volume_id = o.getAttribute('volume_id');
+                                       var label = o.getAttribute('callnumber');
                                        if (!copy_shortcut[ou_id]) copy_shortcut[ou_id] = {};
-                                       copy_shortcut[ou_id][label] = 1;
+                                       copy_shortcut[ou_id][ label ] = volume_id;
 
                                        return ou_id;
                                }
                        );
+                       /* quick fix */
+                       list = []; for (var i in copy_shortcut) { list.push( i ); }
 
                        var edit = 0;
                        try {
                                window.xulG.url_prefix(urls.XUL_VOLUME_COPY_CREATOR)
                                        +'?session='+window.escape(g.session)
                                        +'&doc_id=' + window.escape(find_this_id)
-                                       +'&ou_ids=' + window.escape( js2JSON(list) ),
-                                       +'&copy_shortcut=' + window.escape( js2JSON(copy_shortcut) )
+                                       +'&ou_ids=' + window.escape( js2JSON(list) )
+                                       +'&copy_shortcut=' + window.escape( js2JSON(copy_shortcut) ),
                                title,
                                'chrome,modal,resizable'
                        );
-
                        refresh_browse_list();
                }