From 9544ad05dc0d30ed5782b528fac3e2bdfa90e4dd Mon Sep 17 00:00:00 2001 From: Mike Rylander Date: Wed, 22 Jun 2011 10:36:13 -0400 Subject: [PATCH] Make bucket content retrieval authoritative LP#492036, we neeed all bucket methods to be authoritative. Some already were, this finishes the job. Signed-off-by: Mike Rylander --- Open-ILS/src/perlmods/lib/OpenILS/Application/Actor/Container.pm | 1 + Open-ILS/src/perlmods/lib/OpenILS/WWW/TemplateBatchBibUpdate.pm | 2 +- Open-ILS/web/opac/common/js/config.js | 3 +-- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Actor/Container.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Actor/Container.pm index 9126ad824f..ec381abf02 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Actor/Container.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Actor/Container.pm @@ -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]) diff --git a/Open-ILS/src/perlmods/lib/OpenILS/WWW/TemplateBatchBibUpdate.pm b/Open-ILS/src/perlmods/lib/OpenILS/WWW/TemplateBatchBibUpdate.pm index 18cf327292..56af440465 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/TemplateBatchBibUpdate.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/TemplateBatchBibUpdate.pm @@ -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'] ) ) diff --git a/Open-ILS/web/opac/common/js/config.js b/Open-ILS/web/opac/common/js/config.js index 3011c4a776..3c4c52de11 100644 --- a/Open-ILS/web/opac/common/js/config.js +++ b/Open-ILS/web/opac/common/js/config.js @@ -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'; -- 2.11.0