[open-ils-commits] r15257 - branches/rel_1_6/Open-ILS/xul/staff_client/server/circ (phasefx)

svn at svn.open-ils.org svn at svn.open-ils.org
Mon Jan 4 10:44:04 EST 2010


Author: phasefx
Date: 2010-01-04 10:44:02 -0500 (Mon, 04 Jan 2010)
New Revision: 15257

Modified:
   branches/rel_1_6/Open-ILS/xul/staff_client/server/circ/copy_details.xul
Log:
In the 'Captured for Hold' section of the Item Details, use the uber hold details method to populate the notify_count field ('Notices' column)

Modified: branches/rel_1_6/Open-ILS/xul/staff_client/server/circ/copy_details.xul
===================================================================
--- branches/rel_1_6/Open-ILS/xul/staff_client/server/circ/copy_details.xul	2010-01-04 15:19:11 UTC (rev 15256)
+++ branches/rel_1_6/Open-ILS/xul/staff_client/server/circ/copy_details.xul	2010-01-04 15:44:02 UTC (rev 15257)
@@ -131,7 +131,8 @@
 				$('r_hold').disabled = true;
 				if (g.hold) {
 					$('r_hold').disabled = false;
-					var status_robj = g.network.simple_request('FM_AHR_STATUS',[ ses(), g.hold.id() ]);
+					var better_fleshed_hold_blob = g.network.simple_request('FM_AHR_BLOB_RETRIEVE.authoritative',[ ses(), g.hold.id() ]);
+                    var status_robj = better_fleshed_hold_blob.status;
 					JSAN.use('circ.util');
 					var columns = circ.util.hold_columns( 
 						{ 
@@ -147,7 +148,7 @@
 
 					JSAN.use('util.list'); g.list = new util.list('hold');
 					g.list.init( { 'columns' : columns, 'map_row_to_columns' : circ.util.std_map_row_to_columns(), });
-					g.list.append( { 'row' : { 'my' : { 'ahr' : g.hold, 'acp' : g.copy, 'status' : status_robj, } } });
+					g.list.append( { 'row' : { 'my' : { 'ahr' : better_fleshed_hold_blob.hold, 'acp' : g.copy, 'status' : status_robj, } } });
 	
 					JSAN.use('patron.util'); 
 					var au_obj = patron.util.retrieve_fleshed_au_via_id( ses(), g.hold.usr() );



More information about the open-ils-commits mailing list