[open-ils-commits] r17508 - in trunk/Open-ILS/xul/staff_client: chrome/content/OpenILS server/patron (phasefx)
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed Sep 8 02:49:38 EDT 2010
Author: phasefx
Date: 2010-09-08 02:49:34 -0400 (Wed, 08 Sep 2010)
New Revision: 17508
Modified:
trunk/Open-ILS/xul/staff_client/chrome/content/OpenILS/data.js
trunk/Open-ILS/xul/staff_client/server/patron/summary.js
Log:
give OpenILS.data.lookup the ability to handle actor stat cats
Modified: trunk/Open-ILS/xul/staff_client/chrome/content/OpenILS/data.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/chrome/content/OpenILS/data.js 2010-09-08 04:07:32 UTC (rev 17507)
+++ trunk/Open-ILS/xul/staff_client/chrome/content/OpenILS/data.js 2010-09-08 06:49:34 UTC (rev 17508)
@@ -184,6 +184,9 @@
case 'acpl':
found = obj.network.simple_request('FM_ACPL_RETRIEVE_VIA_ID.authoritative',[ value ]);
break;
+ case 'actsc':
+ found = obj.network.simple_request('FM_ACTSC_RETRIEVE_VIA_PCRUD',[ ses(), { 'id' : { '=' : value } }]);
+ break;
default: return undefined; break;
}
if (typeof found.ilsevent != 'undefined') throw(found);
Modified: trunk/Open-ILS/xul/staff_client/server/patron/summary.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/patron/summary.js 2010-09-08 04:07:32 UTC (rev 17507)
+++ trunk/Open-ILS/xul/staff_client/server/patron/summary.js 2010-09-08 06:49:34 UTC (rev 17508)
@@ -131,16 +131,8 @@
for (var i = 0; i < entries.length; i++) {
var stat_cat = obj.OpenILS.data.hash.my_actsc[ entries[i].stat_cat() ];
if (!stat_cat) {
- stat_cat = obj.OpenILS.data.hash.actsc[ entries[i].stat_cat() ];
+ stat_cat = obj.OpenILS.data.lookup('actsc',entries[i].stat_cat());
}
- if (!stat_cat) {
- var robj = obj.network.simple_request('FM_ACTSC_RETRIEVE_VIA_PCRUD',[ ses(), { 'id' : { '=' : entries[i].stat_cat() } }]);
- if (typeof robj == 'object' && typeof robj.ilsevent != 'undefined') {
- obj.OpenILS.data.hash.actsc[ entries[i].stat_cat() ] = robj;
- obj.OpenILS.data.stash( 'hash' );
- stat_cat = robj;
- }
- }
if (!stat_cat) { continue; }
if (get_bool( stat_cat.usr_summary() )) {
obj.stat_cat_list.append( {
More information about the open-ils-commits
mailing list