Make bucket content retrieval authoritative
authorMike Rylander <mrylander@gmail.com>
Wed, 22 Jun 2011 14:36:13 +0000 (10:36 -0400)
committerMike Rylander <mrylander@gmail.com>
Wed, 22 Jun 2011 14:36:13 +0000 (10:36 -0400)
LP#492036, we neeed all bucket methods to be authoritative.  Some already were, this finishes the job.

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/src/perlmods/lib/OpenILS/Application/Actor/Container.pm
Open-ILS/src/perlmods/lib/OpenILS/WWW/TemplateBatchBibUpdate.pm
Open-ILS/web/opac/common/js/config.js

index 9126ad8..ec381ab 100644 (file)
@@ -163,6 +163,7 @@ __PACKAGE__->register_method(
        method  => "bucket_retrieve_class",
        api_name        => "open-ils.actor.container.retrieve_by_class",
        argc            => 3, 
+       authoritative   => 1, 
        notes           => <<"  NOTES");
                Retrieves all un-fleshed buckets by class assigned to given user 
                PARAMS(authtoken, bucketOwnerId, class [, type])
index 18cf327..56af440 100644 (file)
@@ -364,7 +364,7 @@ sub show_template {
             var bucketStore = new dojo.data.ItemFileReadStore(
                 { data : cbreb.toStoreData(
                         fieldmapper.standardRequest(
-                            ['open-ils.actor','open-ils.actor.container.retrieve_by_class'],
+                            ['open-ils.actor','open-ils.actor.container.retrieve_by_class.authoritative'],
                             [u.authtoken, u.user.id(), 'biblio', 'staff_client']
                         )
                     )
index 3011c4a..3c4c52d 100644 (file)
@@ -340,8 +340,7 @@ var FETCH_ADV_ISBN_RIDS                     = "open-ils.search:open-ils.search.biblio.isbn:1";
 var FETCH_ADV_ISSN_RIDS                        = "open-ils.search:open-ils.search.biblio.issn:1";
 var FETCH_ADV_TCN_RIDS                 = "open-ils.search:open-ils.search.biblio.tcn";
 var FETCH_CNBROWSE                             = 'open-ils.search:open-ils.search.callnumber.browse';
-var FETCH_CONTAINERS                           = 'open-ils.actor:open-ils.actor.container.retrieve_by_class';
-var FETCH_CONTAINERS                           = 'open-ils.actor:open-ils.actor.container.retrieve_by_class';
+var FETCH_CONTAINERS                           = 'open-ils.actor:open-ils.actor.container.retrieve_by_class.authoritative';
 var CREATE_CONTAINER                           = 'open-ils.actor:open-ils.actor.container.create';
 var DELETE_CONTAINER                           = 'open-ils.actor:open-ils.actor.container.full_delete';
 var CREATE_CONTAINER_ITEM              = 'open-ils.actor:open-ils.actor.container.item.create';