From eb288607de9a70e2026a2046ef0501ec88e53267 Mon Sep 17 00:00:00 2001 From: phasefx Date: Mon, 27 Feb 2006 17:27:02 +0000 Subject: [PATCH] don't need a network retrieve, we already have the values git-svn-id: svn://svn.open-ils.org/ILS/trunk@3200 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- .../chrome/content/legacy/_browse.xul | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/Open-ILS/xul/staff_client/chrome/content/legacy/_browse.xul b/Open-ILS/xul/staff_client/chrome/content/legacy/_browse.xul index 6636d0fdbf..e8fdf934ad 100644 --- a/Open-ILS/xul/staff_client/chrome/content/legacy/_browse.xul +++ b/Open-ILS/xul/staff_client/chrome/content/legacy/_browse.xul @@ -530,18 +530,17 @@ 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 { @@ -568,12 +567,11 @@ 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) ), - +'©_shortcut=' + window.escape( js2JSON(copy_shortcut) ) + +'&ou_ids=' + window.escape( js2JSON(list) ) + +'©_shortcut=' + window.escape( js2JSON(copy_shortcut) ), title, 'chrome,modal,resizable' ); - refresh_browse_list(); } -- 2.43.2