[open-ils-commits] r8931 -
trunk/Open-ILS/xul/staff_client/server/cat
svn at svn.open-ils.org
svn at svn.open-ils.org
Sat Mar 8 20:44:54 EST 2008
Author: phasefx
Date: 2008-03-08 20:12:03 -0500 (Sat, 08 Mar 2008)
New Revision: 8931
Modified:
trunk/Open-ILS/xul/staff_client/server/cat/copy_browser.js
Log:
working around Number vs String from JSON again.. might be a better way to handle this
Modified: trunk/Open-ILS/xul/staff_client/server/cat/copy_browser.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/cat/copy_browser.js 2008-03-09 01:03:32 UTC (rev 8930)
+++ trunk/Open-ILS/xul/staff_client/server/cat/copy_browser.js 2008-03-09 01:12:03 UTC (rev 8931)
@@ -823,6 +823,8 @@
obj.org_ids = obj.network.simple_request('FM_AOU_IDS_RETRIEVE_VIA_RECORD_ID',[ obj.docid ]);
if (typeof obj.org_ids.ilsevent != 'undefined') throw(obj.org_ids);
+ JSAN.use('util.functional');
+ obj.org_ids = util.functional.map_list( obj.org_ids, function (o) { return Number(o); });
var org = obj.data.hash.aou[ obj.data.list.au[0].ws_ou() ];
//obj.show_libs( org );
@@ -1224,7 +1226,7 @@
};
var acn_tree_list;
- if ( obj.org_ids.indexOf( org.id() ) == -1 ) {
+ if ( obj.org_ids.indexOf( Number( org.id() ) ) == -1 ) {
if ( get_bool( obj.data.hash.aout[ org.ou_type() ].can_have_vols() ) ) {
data.row.my.volume_count = '0';
data.row.my.copy_count = '<0>';
@@ -1619,6 +1621,9 @@
obj.map_acn = {};
obj.map_acp = {};
obj.org_ids = obj.network.simple_request('FM_AOU_IDS_RETRIEVE_VIA_RECORD_ID',[ obj.docid ]);
+ if (typeof obj.org_ids.ilsevent != 'undefined') throw(obj.org_ids);
+ JSAN.use('util.functional');
+ obj.org_ids = util.functional.map_list( obj.org_ids, function (o) { return Number(o); });
/*
var org = obj.data.hash.aou[ obj.data.list.au[0].ws_ou() ];
obj.show_libs( org );
More information about the open-ils-commits
mailing list