[open-ils-commits] r18638 - in branches/rel_2_0/Open-ILS: web/js/dojo/openils/acq web/js/ui/default/acq/common web/js/ui/default/acq/invoice web/js/ui/default/acq/lineitem web/js/ui/default/acq/picklist web/js/ui/default/acq/search xul/staff_client/server/circ (gmc)

svn at svn.open-ils.org svn at svn.open-ils.org
Fri Nov 5 13:56:33 EDT 2010


Author: gmc
Date: 2010-11-05 13:56:29 -0400 (Fri, 05 Nov 2010)
New Revision: 18638

Modified:
   branches/rel_2_0/Open-ILS/web/js/dojo/openils/acq/Lineitem.js
   branches/rel_2_0/Open-ILS/web/js/dojo/openils/acq/Picklist.js
   branches/rel_2_0/Open-ILS/web/js/ui/default/acq/common/li_table.js
   branches/rel_2_0/Open-ILS/web/js/ui/default/acq/invoice/view.js
   branches/rel_2_0/Open-ILS/web/js/ui/default/acq/lineitem/related.js
   branches/rel_2_0/Open-ILS/web/js/ui/default/acq/picklist/brief_record.js
   branches/rel_2_0/Open-ILS/web/js/ui/default/acq/picklist/user_request.js
   branches/rel_2_0/Open-ILS/web/js/ui/default/acq/picklist/view.js
   branches/rel_2_0/Open-ILS/web/js/ui/default/acq/picklist/view_list.js
   branches/rel_2_0/Open-ILS/web/js/ui/default/acq/search/picklist.js
   branches/rel_2_0/Open-ILS/xul/staff_client/server/circ/util.js
Log:
switch to authoritative methods for various acq retrievals

Avoid race condition when using Slony replication

Signed-off-by: Galen Charlton <gmc at esilibrary.com>


Modified: branches/rel_2_0/Open-ILS/web/js/dojo/openils/acq/Lineitem.js
===================================================================
--- branches/rel_2_0/Open-ILS/web/js/dojo/openils/acq/Lineitem.js	2010-11-05 17:56:01 UTC (rev 18637)
+++ branches/rel_2_0/Open-ILS/web/js/dojo/openils/acq/Lineitem.js	2010-11-05 17:56:29 UTC (rev 18638)
@@ -119,7 +119,7 @@
     });
 
     fieldmapper.standardRequest(
-        ['open-ils.acq', 'open-ils.acq.lineitem.retrieve'],
+        ['open-ils.acq', 'open-ils.acq.lineitem.retrieve.authoritative'],
         {
             params : [ openils.User.authtoken, liId, args ],
 

Modified: branches/rel_2_0/Open-ILS/web/js/dojo/openils/acq/Picklist.js
===================================================================
--- branches/rel_2_0/Open-ILS/web/js/dojo/openils/acq/Picklist.js	2010-11-05 17:56:01 UTC (rev 18637)
+++ branches/rel_2_0/Open-ILS/web/js/dojo/openils/acq/Picklist.js	2010-11-05 17:56:29 UTC (rev 18638)
@@ -57,7 +57,7 @@
         //
         // Fetch the picklist information
         fieldmapper.standardRequest(
-            ['open-ils.acq', 'open-ils.acq.picklist.retrieve'],
+            ['open-ils.acq', 'open-ils.acq.picklist.retrieve.authoritative'],
             {   async: false,
                 params: [openils.User.authtoken, pl_id, {flesh_lineitem_count:1}],
                 oncomplete: function(r) {

Modified: branches/rel_2_0/Open-ILS/web/js/ui/default/acq/common/li_table.js
===================================================================
--- branches/rel_2_0/Open-ILS/web/js/ui/default/acq/common/li_table.js	2010-11-05 17:56:01 UTC (rev 18637)
+++ branches/rel_2_0/Open-ILS/web/js/ui/default/acq/common/li_table.js	2010-11-05 17:56:29 UTC (rev 18638)
@@ -323,7 +323,7 @@
                 this.plCache[li.picklist()] = 
                 this.plCache[li.picklist()] || 
                 fieldmapper.standardRequest(
-                    ['open-ils.acq', 'open-ils.acq.picklist.retrieve'],
+                    ['open-ils.acq', 'open-ils.acq.picklist.retrieve.authoritative'],
                     {params: [this.authtoken, li.picklist()]});
             if (pl) {
                 if (pl.name() == "") {

Modified: branches/rel_2_0/Open-ILS/web/js/ui/default/acq/invoice/view.js
===================================================================
--- branches/rel_2_0/Open-ILS/web/js/ui/default/acq/invoice/view.js	2010-11-05 17:56:01 UTC (rev 18637)
+++ branches/rel_2_0/Open-ILS/web/js/ui/default/acq/invoice/view.js	2010-11-05 17:56:29 UTC (rev 18638)
@@ -52,7 +52,7 @@
 
     } else {
         fieldmapper.standardRequest(
-            ['open-ils.acq', 'open-ils.acq.invoice.retrieve'],
+            ['open-ils.acq', 'open-ils.acq.invoice.retrieve.authoritative'],
             {
                 params : [openils.User.authtoken, invoiceId],
                 oncomplete : function(r) {

Modified: branches/rel_2_0/Open-ILS/web/js/ui/default/acq/lineitem/related.js
===================================================================
--- branches/rel_2_0/Open-ILS/web/js/ui/default/acq/lineitem/related.js	2010-11-05 17:56:01 UTC (rev 18637)
+++ branches/rel_2_0/Open-ILS/web/js/ui/default/acq/lineitem/related.js	2010-11-05 17:56:29 UTC (rev 18638)
@@ -14,7 +14,7 @@
 
 function fetchLi() {
     fieldmapper.standardRequest(
-        ["open-ils.acq", "open-ils.acq.lineitem.retrieve"], {
+        ["open-ils.acq", "open-ils.acq.lineitem.retrieve.authoritative"], {
             "async": true,
             "params": [openils.User.authtoken, targetId, {
                 "flesh_attrs": true,

Modified: branches/rel_2_0/Open-ILS/web/js/ui/default/acq/picklist/brief_record.js
===================================================================
--- branches/rel_2_0/Open-ILS/web/js/ui/default/acq/picklist/brief_record.js	2010-11-05 17:56:01 UTC (rev 18637)
+++ branches/rel_2_0/Open-ILS/web/js/ui/default/acq/picklist/brief_record.js	2010-11-05 17:56:29 UTC (rev 18638)
@@ -30,7 +30,7 @@
         openils.Util.hide('acq-brief-record-po-row');
 
         fieldmapper.standardRequest(
-            ['open-ils.acq', 'open-ils.acq.picklist.retrieve'],
+            ['open-ils.acq', 'open-ils.acq.picklist.retrieve.authoritative'],
             {   async: true,
                 params: [openils.User.authtoken, paramPL], 
                 oncomplete : function(r) {

Modified: branches/rel_2_0/Open-ILS/web/js/ui/default/acq/picklist/user_request.js
===================================================================
--- branches/rel_2_0/Open-ILS/web/js/ui/default/acq/picklist/user_request.js	2010-11-05 17:56:01 UTC (rev 18637)
+++ branches/rel_2_0/Open-ILS/web/js/ui/default/acq/picklist/user_request.js	2010-11-05 17:56:29 UTC (rev 18638)
@@ -90,7 +90,7 @@
 
 function viewPicklist() {
     var lineitem = fieldmapper.standardRequest(
-        [ 'open-ils.acq', 'open-ils.acq.lineitem.retrieve' ],
+        [ 'open-ils.acq', 'open-ils.acq.lineitem.retrieve.authoritative' ],
         {
             params: [openils.User.authtoken, aur_obj.lineitem()]
         }

Modified: branches/rel_2_0/Open-ILS/web/js/ui/default/acq/picklist/view.js
===================================================================
--- branches/rel_2_0/Open-ILS/web/js/ui/default/acq/picklist/view.js	2010-11-05 17:56:01 UTC (rev 18637)
+++ branches/rel_2_0/Open-ILS/web/js/ui/default/acq/picklist/view.js	2010-11-05 17:56:29 UTC (rev 18638)
@@ -14,7 +14,7 @@
     liTable = new AcqLiTable();
     liTable.isPL = plId;
     fieldmapper.standardRequest(
-        ['open-ils.acq', 'open-ils.acq.picklist.retrieve'],
+        ['open-ils.acq', 'open-ils.acq.picklist.retrieve.authoritative'],
         {   async: true,
             params: [openils.User.authtoken, plId, 
                 {flesh_lineitem_count:true, flesh_owner:true}],

Modified: branches/rel_2_0/Open-ILS/web/js/ui/default/acq/picklist/view_list.js
===================================================================
--- branches/rel_2_0/Open-ILS/web/js/ui/default/acq/picklist/view_list.js	2010-11-05 17:56:01 UTC (rev 18637)
+++ branches/rel_2_0/Open-ILS/web/js/ui/default/acq/picklist/view_list.js	2010-11-05 17:56:29 UTC (rev 18638)
@@ -68,7 +68,7 @@
         function(plId) {
             fieldmapper.standardRequest(
 
-                ['open-ils.acq', 'open-ils.acq.picklist.retrieve'],
+                ['open-ils.acq', 'open-ils.acq.picklist.retrieve.authoritative'],
                 {   async: true,
                     params: [openils.User.authtoken, plId,
                         {flesh_lineitem_count:1, flesh_owner:1}],

Modified: branches/rel_2_0/Open-ILS/web/js/ui/default/acq/search/picklist.js
===================================================================
--- branches/rel_2_0/Open-ILS/web/js/ui/default/acq/search/picklist.js	2010-11-05 17:56:01 UTC (rev 18637)
+++ branches/rel_2_0/Open-ILS/web/js/ui/default/acq/search/picklist.js	2010-11-05 17:56:29 UTC (rev 18638)
@@ -165,7 +165,7 @@
     openils.acq.Picklist.create(fields,
         function(plId) {
             fieldmapper.standardRequest(
-                ["open-ils.acq", "open-ils.acq.picklist.retrieve"], {
+                ["open-ils.acq", "open-ils.acq.picklist.retrieve.authoritative"], {
                     "async": true,
                     "params": [
                         openils.User.authtoken, plId,

Modified: branches/rel_2_0/Open-ILS/xul/staff_client/server/circ/util.js
===================================================================
--- branches/rel_2_0/Open-ILS/xul/staff_client/server/circ/util.js	2010-11-05 17:56:01 UTC (rev 18637)
+++ branches/rel_2_0/Open-ILS/xul/staff_client/server/circ/util.js	2010-11-05 17:56:29 UTC (rev 18638)
@@ -3378,7 +3378,7 @@
 circ.util.find_acq_po = function(session, copy_id) {
     dojo.require("openils.Util");
     fieldmapper.standardRequest(
-        ["open-ils.acq", "open-ils.acq.lineitem.retrieve.by_copy_id"], {
+        ["open-ils.acq", "open-ils.acq.lineitem.retrieve.by_copy_id.authoritative"], {
             "params": [session, copy_id, {"clear_marc": true}],
             "onresponse": function(r) {
                 if (r = openils.Util.readResponse(r)) {



More information about the open-ils-commits mailing list