[open-ils-commits] r13365 - in branches/rel_1_4/Open-ILS/xul/staff_client: chrome/content/main server/cat (phasefx)

svn at svn.open-ils.org svn at svn.open-ils.org
Wed Jun 10 12:00:45 EDT 2009


Author: phasefx
Date: 2009-06-10 12:00:43 -0400 (Wed, 10 Jun 2009)
New Revision: 13365

Modified:
   branches/rel_1_4/Open-ILS/xul/staff_client/chrome/content/main/constants.js
   branches/rel_1_4/Open-ILS/xul/staff_client/server/cat/spine_labels.js
Log:
have spine label interface use authoritative copy retrieval to prevent ASSET_COPY_NOT_FOUND race condition

Modified: branches/rel_1_4/Open-ILS/xul/staff_client/chrome/content/main/constants.js
===================================================================
--- branches/rel_1_4/Open-ILS/xul/staff_client/chrome/content/main/constants.js	2009-06-10 16:00:37 UTC (rev 13364)
+++ branches/rel_1_4/Open-ILS/xul/staff_client/chrome/content/main/constants.js	2009-06-10 16:00:43 UTC (rev 13365)
@@ -74,6 +74,7 @@
 	'FM_ACP_RETRIEVE' : { 'app' : 'open-ils.search', 'method' : 'open-ils.search.asset.copy.fleshed2.retrieve', 'secure' : false },
 	//'FM_ACP_RETRIEVE_VIA_BARCODE' : { 'app' : 'open-ils.search', 'method' : 'open-ils.search.asset.copy.find_by_barcode' },
 	'FM_ACP_RETRIEVE_VIA_BARCODE' : { 'app' : 'open-ils.search', 'method' : 'open-ils.search.asset.copy.fleshed2.find_by_barcode', 'secure' : false },
+	'FM_ACP_RETRIEVE_VIA_BARCODE.authoritative' : { 'app' : 'open-ils.search', 'method' : 'open-ils.search.asset.copy.fleshed2.find_by_barcode.authoritative', 'secure' : false },
 	'FM_ACP_FLESHED_BATCH_RETRIEVE' : { 'app' : 'open-ils.search', 'method' : 'open-ils.search.asset.copy.fleshed.batch.retrieve', 'secure' : false },
 	'FM_ACP_FLESHED_BATCH_RETRIEVE.authoritative' : { 'app' : 'open-ils.search', 'method' : 'open-ils.search.asset.copy.fleshed.batch.retrieve.authoritative', 'secure' : false },
 	'FM_ACP_FLESHED_BATCH_UPDATE' : { 'app' : 'open-ils.cat', 'method' : 'open-ils.cat.asset.copy.fleshed.batch.update' },

Modified: branches/rel_1_4/Open-ILS/xul/staff_client/server/cat/spine_labels.js
===================================================================
--- branches/rel_1_4/Open-ILS/xul/staff_client/server/cat/spine_labels.js	2009-06-10 16:00:37 UTC (rev 13364)
+++ branches/rel_1_4/Open-ILS/xul/staff_client/server/cat/spine_labels.js	2009-06-10 16:00:43 UTC (rev 13365)
@@ -31,7 +31,7 @@
 				g.volumes = {};
 
 				for (var i = 0; i < g.barcodes.length; i++) {
-					var copy = g.network.simple_request( 'FM_ACP_RETRIEVE_VIA_BARCODE', [ g.barcodes[i] ] );
+					var copy = g.network.simple_request( 'FM_ACP_RETRIEVE_VIA_BARCODE.authoritative', [ g.barcodes[i] ] );
 					if (typeof copy.ilsevent != 'undefined') throw(copy);
 					if (!g.volumes[ copy.call_number() ]) {
 						var volume = g.network.simple_request( 'FM_ACN_RETRIEVE.authoritative', [ copy.call_number() ] );



More information about the open-ils-commits mailing list