[open-ils-commits] r13364 - in trunk/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:39 EDT 2009
Author: phasefx
Date: 2009-06-10 12:00:37 -0400 (Wed, 10 Jun 2009)
New Revision: 13364
Modified:
trunk/Open-ILS/xul/staff_client/chrome/content/main/constants.js
trunk/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: trunk/Open-ILS/xul/staff_client/chrome/content/main/constants.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/chrome/content/main/constants.js 2009-06-10 14:27:20 UTC (rev 13363)
+++ trunk/Open-ILS/xul/staff_client/chrome/content/main/constants.js 2009-06-10 16:00:37 UTC (rev 13364)
@@ -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: trunk/Open-ILS/xul/staff_client/server/cat/spine_labels.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/cat/spine_labels.js 2009-06-10 14:27:20 UTC (rev 13363)
+++ trunk/Open-ILS/xul/staff_client/server/cat/spine_labels.js 2009-06-10 16:00:37 UTC (rev 13364)
@@ -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