From c7fc33d4dc1057f5dcd37a4b9acd4c49fb18d8d3 Mon Sep 17 00:00:00 2001 From: phasefx Date: Mon, 10 Mar 2008 02:49:04 +0000 Subject: [PATCH] Switch to .authoritative version of some methods We're getting a 404 with these: open-ils.search.callnumber.retrieve.authoritative open-ils.search.asset.copy.fleshed.batch.retrieve.authoritative open-ils.search.biblio.record.copy_count.staff.authoritative open-ils.circ.copy_location.retrieve.authoritative open-ils.circ.hold.details.retrieve.authoritative open-ils.circ.holds.id_list.retrieve.authoritative open-ils.circ.open_non_cataloged_circulation.user.authoritative open-ils.actor.usergroup.members.retrieve.authoritative open-ils.circ.money.billing.retrieve.all.authoritative open-ils.circ.money.billable_xact_summary.retrieve.authoritative open-ils.circ.money.payment.retrieve.all.authoritative open-ils.search.biblio.record.mods_slim.retrieve.authoritative git-svn-id: svn://svn.open-ils.org/ILS/trunk@8949 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- .../staff_client/chrome/content/OpenILS/data.js | 2 +- .../staff_client/chrome/content/main/constants.js | 28 ++++++++++++++++++++++ .../xul/staff_client/server/admin/transit_list.js | 4 ++-- Open-ILS/xul/staff_client/server/cat/bib_brief.xul | 10 ++++---- .../xul/staff_client/server/cat/copy_browser.js | 10 ++++---- .../xul/staff_client/server/cat/copy_buckets.js | 2 +- .../xul/staff_client/server/cat/copy_editor.js | 15 ++++++------ .../xul/staff_client/server/cat/copy_summary.xul | 2 +- .../xul/staff_client/server/cat/record_buckets.js | 2 +- .../xul/staff_client/server/cat/spine_labels.js | 4 ++-- Open-ILS/xul/staff_client/server/cat/util.js | 6 ++--- Open-ILS/xul/staff_client/server/circ/checkout.js | 2 +- .../xul/staff_client/server/circ/circ_summary.xul | 2 +- .../xul/staff_client/server/circ/copy_details.xul | 2 +- .../xul/staff_client/server/circ/copy_status.js | 16 ++++++------- .../xul/staff_client/server/circ/in_house_use.js | 2 +- Open-ILS/xul/staff_client/server/circ/util.js | 4 ++-- .../staff_client/server/patron/barcode_entry.xul | 2 +- .../staff_client/server/patron/bill_details.xul | 8 +++---- .../staff_client/server/patron/bill_history.xul | 10 ++++---- .../xul/staff_client/server/patron/bill_wizard.xul | 4 ++-- Open-ILS/xul/staff_client/server/patron/bills.js | 10 ++++---- Open-ILS/xul/staff_client/server/patron/display.js | 2 +- .../staff_client/server/patron/hold_notices.xul | 5 ++-- Open-ILS/xul/staff_client/server/patron/holds.js | 8 +++---- .../xul/staff_client/server/patron/info_group.xul | 2 +- .../xul/staff_client/server/patron/info_notes.xul | 4 ++-- Open-ILS/xul/staff_client/server/patron/items.js | 10 ++++---- Open-ILS/xul/staff_client/server/patron/summary.js | 14 +++++------ Open-ILS/xul/staff_client/server/patron/util.js | 8 +++---- 30 files changed, 112 insertions(+), 88 deletions(-) diff --git a/Open-ILS/xul/staff_client/chrome/content/OpenILS/data.js b/Open-ILS/xul/staff_client/chrome/content/OpenILS/data.js index c6e1159f23..bed7aa760d 100644 --- a/Open-ILS/xul/staff_client/chrome/content/OpenILS/data.js +++ b/Open-ILS/xul/staff_client/chrome/content/OpenILS/data.js @@ -172,7 +172,7 @@ OpenILS.data.prototype = { if (obj.hash[key] && obj.hash[key][value]) return obj.hash[key][value]; switch(key) { case 'acpl': - found = obj.network.simple_request('FM_ACPL_RETRIEVE_VIA_ID',[ value ]); + found = obj.network.simple_request('FM_ACPL_RETRIEVE_VIA_ID.authoritative',[ value ]); break; default: return undefined; break; } diff --git a/Open-ILS/xul/staff_client/chrome/content/main/constants.js b/Open-ILS/xul/staff_client/chrome/content/main/constants.js index 0a18fa790e..d743844e2c 100644 --- a/Open-ILS/xul/staff_client/chrome/content/main/constants.js +++ b/Open-ILS/xul/staff_client/chrome/content/main/constants.js @@ -46,21 +46,27 @@ const api = { 'CHECKOUT_RENEW' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.renew' }, 'CIRC_MODIFIER_LIST' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.circ_modifier.retrieve.all' }, 'FM_ACN_RETRIEVE' : { 'app' : 'open-ils.search', 'method' : 'open-ils.search.callnumber.retrieve', 'secure' : false }, + 'FM_ACN_RETRIEVE.authoritative' : { 'app' : 'open-ils.search', 'method' : 'open-ils.search.callnumber.retrieve.authoritative', 'secure' : false }, 'FM_ACN_TREE_UPDATE' : { 'app' : 'open-ils.cat', 'method' : 'open-ils.cat.asset.volume.fleshed.batch.update' }, 'FM_ACN_TREE_LIST_RETRIEVE_VIA_RECORD_ID_AND_ORG_IDS' : { 'app' : 'open-ils.cat', 'method' : 'open-ils.cat.asset.copy_tree.retrieve', 'secure' : false }, + 'FM_ACN_TREE_LIST_RETRIEVE_VIA_RECORD_ID_AND_ORG_IDS.authoritative' : { 'app' : 'open-ils.cat', 'method' : 'open-ils.cat.asset.copy_tree.retrieve.authoritative', 'secure' : false }, 'FM_ACN_TRANSFER' : { 'app' : 'open-ils.cat', 'method' : 'open-ils.cat.asset.volume.batch.transfer' }, 'FM_ACN_FIND_OR_CREATE' : { 'app' : 'open-ils.cat', 'method' : 'open-ils.cat.call_number.find_or_create', 'secure' : false }, 'FM_ACP_DETAILS' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.copy_details.retrieve' }, 'FM_ACP_DETAILS_VIA_BARCODE' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.copy_details.retrieve.barcode' }, + 'FM_ACP_DETAILS_VIA_BARCODE.authoritative' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.copy_details.retrieve.barcode.authoritative' }, //'FM_ACP_RETRIEVE' : { 'app' : 'open-ils.search', 'method' : 'open-ils.search.asset.copy.fleshed.retrieve' }, '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_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' }, 'FM_ACP_COUNT' : { 'app' : 'open-ils.search', 'method' : 'open-ils.search.biblio.record.copy_count.staff', 'secure' : false }, + 'FM_ACP_COUNT.authoritative' : { 'app' : 'open-ils.search', 'method' : 'open-ils.search.biblio.record.copy_count.staff.authoritative', 'secure' : false }, 'FM_ACPL_RETRIEVE' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.copy_location.retrieve.all', 'secure' : false }, 'FM_ACPL_RETRIEVE_VIA_ID' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.copy_location.retrieve', 'secure' : false }, + 'FM_ACPL_RETRIEVE_VIA_ID.authoritative' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.copy_location.retrieve.authoritative', 'secure' : false }, 'FM_ACPN_RETRIEVE_ALL' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.copy_note.retrieve.all', 'secure' : false }, 'FM_ACPN_CREATE' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.copy_note.create' }, 'FM_ACPN_DELETE' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.copy_note.delete', 'secure' : false }, @@ -70,8 +76,10 @@ const api = { 'FM_AHN_RETRIEVE_VIA_AHR' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.hold_notification.retrieve_by_hold' }, 'FM_AHR_RETRIEVE' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.holds.retrieve_by_id' }, 'FM_AHR_BLOB_RETRIEVE' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.hold.details.retrieve' }, + 'FM_AHR_BLOB_RETRIEVE.authoritative' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.hold.details.retrieve.authoritative' }, 'FM_AHR_RETRIEVE_VIA_AU' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.holds.retrieve' }, 'FM_AHR_ID_LIST_RETRIEVE_VIA_AU' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.holds.id_list.retrieve' }, + 'FM_AHR_ID_LIST_RETRIEVE_VIA_AU.authoritative' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.holds.id_list.retrieve.authoritative' }, 'FM_AHR_RETRIEVE_VIA_BRE' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.open_holds.retrieve' }, 'FM_AHR_RETRIEVE_ALL_VIA_BRE' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.holds.retrieve_all_from_title' }, 'FM_AHR_RETRIEVE_VIA_PICKUP_AOU' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.holds.retrieve_by_pickup_lib' }, @@ -81,6 +89,7 @@ const api = { 'FM_AHR_ONSHELF_RETRIEVE' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.captured_holds.on_shelf.retrieve' }, 'FM_AHR_ID_LIST_ONSHELF_RETRIEVE' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.captured_holds.id_list.on_shelf.retrieve', 'secure' : false }, 'FM_AHR_COUNT_RETRIEVE' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.user.hold_requests.count', 'cacheable' : true, 'ttl' : 60000 }, + 'FM_AHR_COUNT_RETRIEVE.authoritative' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.user.hold_requests.count.authoritative', 'cacheable' : true, 'ttl' : 60000 }, 'FM_AHR_CANCEL' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.hold.cancel' }, 'FM_AHR_UPDATE' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.hold.update' }, 'FM_AHR_RESET' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.hold.reset' }, @@ -88,12 +97,14 @@ const api = { 'FM_AIHU_CREATE' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.in_house_use.create' }, 'FM_ANCC_RETRIEVE_VIA_ID' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.non_cataloged_circulation.retrieve' }, 'FM_ANCC_RETRIEVE_VIA_USER' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.open_non_cataloged_circulation.user' }, + 'FM_ANCC_RETRIEVE_VIA_USER.authoritative' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.open_non_cataloged_circulation.user.authoritative' }, 'FM_ANCIHU_CREATE' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.non_cat_in_house_use.create' }, 'FM_AOA_RETRIEVE' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.org_unit.address.retrieve', 'secure' : false }, 'FM_AOU_RETRIEVE' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.org_tree.retrieve', 'secure' : false }, 'FM_AOU_DESCENDANTS_RETRIEVE' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.org_tree.descendants.retrieve', 'secure' : false }, 'FM_AOU_RETRIEVE_RELATED_VIA_SESSION' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.org_unit.full_path.retrieve' }, 'FM_AOU_IDS_RETRIEVE_VIA_RECORD_ID' : { 'app' : 'open-ils.cat', 'method' : 'open-ils.cat.actor.org_unit.retrieve_by_title', 'secure' : false }, + 'FM_AOU_IDS_RETRIEVE_VIA_RECORD_ID.authoritative' : { 'app' : 'open-ils.cat', 'method' : 'open-ils.cat.actor.org_unit.retrieve_by_title.authoritative', 'secure' : false }, 'FM_AOUT_RETRIEVE' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.org_types.retrieve', 'secure' : false }, 'FM_ASC_BATCH_RETRIEVE' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.stat_cat.asset.retrieve.batch', 'secure' : false }, 'FM_ASC_RETRIEVE_VIA_AOU' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.stat_cat.asset.retrieve.all', 'secure' : false }, @@ -106,31 +117,39 @@ const api = { 'FM_ATC_RETRIEVE_VIA_AOU' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.transit.retrieve_by_lib', 'secure' : false }, 'FM_AU_IDS_RETRIEVE_VIA_HASH' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.patron.search.advanced' }, 'FM_AU_LIST_RETRIEVE_VIA_GROUP' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.usergroup.members.retrieve' }, + 'FM_AU_LIST_RETRIEVE_VIA_GROUP.authoritative' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.usergroup.members.retrieve.authoritative' }, 'FM_AU_RETRIEVE_VIA_SESSION' : { 'app' : 'open-ils.auth', 'method' : 'open-ils.auth.session.retrieve' }, 'FM_AU_RETRIEVE_VIA_BARCODE' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.user.fleshed.retrieve_by_barcode', 'cacheable' : true, 'ttl' : 60000 }, + 'FM_AU_RETRIEVE_VIA_BARCODE.authoritative' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.user.fleshed.retrieve_by_barcode.authoritative', 'cacheable' : true, 'ttl' : 60000 }, 'FM_AU_RETRIEVE_VIA_ID' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.user.retrieve', 'cacheable' : true, 'ttl' : 60000 }, 'FM_AU_FLESHED_RETRIEVE_VIA_ID' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.user.fleshed.retrieve', 'cacheable' : true, 'ttl' : 60000 }, 'FM_AU_NEW_USERGROUP' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.usergroup.new' }, 'FM_AU_UPDATE' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.patron.update' }, 'FM_AUN_RETRIEVE_ALL' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.note.retrieve.all', 'cacheable' : false, 'ttl' : 60000 }, + 'FM_AUN_RETRIEVE_ALL.authoritative' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.note.retrieve.all.authoritative', 'cacheable' : false, 'ttl' : 60000 }, 'FM_AUN_CREATE' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.note.create' }, 'FM_AUN_DELETE' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.note.delete' }, 'FM_AUS_RETRIEVE' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.patron.settings.retrieve' }, 'FM_AUS_UPDATE' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.patron.settings.update' }, 'FM_BRE_RETRIEVE_VIA_ID' : { 'app' : 'open-ils.cat', 'method' : 'open-ils.cat.biblio.record.metadata.retrieve', 'secure' : false }, + 'FM_BRE_RETRIEVE_VIA_ID.authoritative' : { 'app' : 'open-ils.cat', 'method' : 'open-ils.cat.biblio.record.metadata.retrieve.authoritative', 'secure' : false }, 'FM_BRE_ID_SEARCH_VIA_BARCODE' : { 'app' : 'open-ils.search', 'method' : 'open-ils.search.biblio.find_by_barcode', 'secure' : false }, 'FM_BRE_ID_SEARCH_VIA_TCN' : { 'app' : 'open-ils.search', 'method' : 'open-ils.search.biblio.tcn', 'secure' : false }, 'FM_BRE_DELETE' : { 'app' : 'open-ils.cat', 'method' : 'open-ils.cat.biblio.record_entry.delete', 'secure' : false }, 'FM_BRN_FROM_MARCXML' : { 'app' : 'open-ils.search', 'method' : 'open-ils.search.z3950.marcxml_to_brn', 'secure' : false }, 'FM_CCS_RETRIEVE' : { 'app' : 'open-ils.search', 'method' : 'open-ils.search.config.copy_status.retrieve.all', 'secure' : false }, 'FM_CIRC_DETAILS' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.fleshed.retrieve' }, + 'FM_CIRC_DETAILS.authoritative' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.fleshed.retrieve.authoritative' }, 'FM_CIRC_RETRIEVE_VIA_ID' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.retrieve' }, /*'FM_CIRC_RETRIEVE_VIA_USER' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.actor.user.checked_out.slim' },*/ 'FM_CIRC_IN_WITH_FINES_VIA_USER' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.user.checked_in_with_fines' }, + 'FM_CIRC_IN_WITH_FINES_VIA_USER.authoritative' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.user.checked_in_with_fines.authoritative' }, 'FM_CIRC_RETRIEVE_VIA_USER' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.user.checked_out' }, + 'FM_CIRC_RETRIEVE_VIA_USER.authoritative' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.user.checked_out.authoritative' }, 'FM_CIRC_RETRIEVE_VIA_COPY' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.copy_checkout_history.retrieve' }, /*'FM_CIRC_COUNT_RETRIEVE_VIA_USER' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.user.checked_out.count' },*/ 'FM_CIRC_COUNT_RETRIEVE_VIA_USER' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.user.checked_out.count', 'cacheable' : true, 'ttl' : 60000 }, + 'FM_CIRC_COUNT_RETRIEVE_VIA_USER.authoritative' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.user.checked_out.count.authoritative', 'cacheable' : true, 'ttl' : 60000 }, 'FM_CIRC_COUNT_RETRIEVE_VIA_COPY' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.circulation.count' }, 'FM_CIRC_EDIT_DUE_DATE' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.circulation.due_date.update' }, 'FM_CIT_RETRIEVE' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.user.ident_types.retrieve', 'secure' : false }, @@ -141,15 +160,21 @@ const api = { 'FM_CST_RETRIEVE' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.standings.retrieve', 'secure' : false }, 'FM_MB_CREATE' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.money.billing.create' }, 'FM_MB_RETRIEVE_VIA_MBTS_ID' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.money.billing.retrieve.all' }, + 'FM_MB_RETRIEVE_VIA_MBTS_ID.authoritative' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.money.billing.retrieve.all.authoritative' }, 'FM_MB_VOID' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.money.billing.void' }, 'FM_MBTS_RETRIEVE' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.money.billable_xact_summary.retrieve' }, + 'FM_MBTS_RETRIEVE.authoritative' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.money.billable_xact_summary.retrieve.authoritative' }, 'FM_MBTS_IDS_RETRIEVE_ALL' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.user.transactions.history' }, 'FM_MBTS_IDS_RETRIEVE_ALL_HAVING_CHARGE' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.user.transactions.history.have_charge' }, 'FM_MBTS_IDS_RETRIEVE_ALL_HAVING_BALANCE' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.user.transactions.history.have_balance' }, + 'FM_MBTS_IDS_RETRIEVE_ALL_HAVING_BALANCE.authoritative' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.user.transactions.history.have_balance.authoritative' }, 'FM_MBTS_IDS_RETRIEVE_ALL_STILL_OPEN' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.user.transactions.history.still_open' }, 'FM_MBTS_IDS_RETRIEVE_ALL_HAVING_BILL' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.user.transactions.history.have_bill' }, + 'FM_MBTS_IDS_RETRIEVE_ALL_HAVING_BILL.authoritative' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.user.transactions.history.have_bill.authoritative' }, 'FM_MBTS_IDS_RETRIEVE_FOR_HISTORY' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.user.transactions.history.have_bill' }, + 'FM_MBTS_IDS_RETRIEVE_FOR_HISTORY.authoritative' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.user.transactions.history.have_bill.authoritative' }, 'FM_MP_RETRIEVE_VIA_MBTS_ID' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.money.payment.retrieve.all' }, + 'FM_MP_RETRIEVE_VIA_MBTS_ID.authoritative' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.money.payment.retrieve.all.authoritative' }, 'FM_MG_CREATE' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.money.grocery.create' }, 'FM_MG_RETRIEVE' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.money.grocery.retrieve' }, 'FM_MOBTS_HAVING_BALANCE' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.user.transactions.have_balance' }, @@ -159,6 +184,7 @@ const api = { 'FM_MOBTS_TOTAL_OPEN' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.user.transactions.total' }, 'FM_MOBTS_COUNT_OPEN' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.user.transactions.count' }, 'FM_MOUS_RETRIEVE' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.user.fines.summary', 'cacheable' : true, 'ttl' : 60000 }, + 'FM_MOUS_RETRIEVE.authoritative' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.user.fines.summary.authoritative', 'cacheable' : true, 'ttl' : 60000 }, 'FM_PGT_RETRIEVE' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.groups.tree.retrieve', 'secure' : false }, 'MARC_HTML_RETRIEVE' : { 'app' : 'open-ils.search', 'method' : 'open-ils.search.biblio.record.html', 'secure' : false }, 'FM_BLOB_RETRIEVE_VIA_Z3950_SEARCH' : { 'app' : 'open-ils.search', 'method' : 'open-ils.search.z3950.search_class' }, @@ -170,6 +196,7 @@ const api = { 'MARK_ITEM_CLAIM_RETURNED' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.circulation.set_claims_returned' }, 'MODS_SLIM_METARECORD_RETRIEVE' : { 'app' : 'open-ils.search', 'method' : 'open-ils.search.biblio.metarecord.mods_slim.retrieve', 'secure' : false }, 'MODS_SLIM_RECORD_RETRIEVE' : { 'app' : 'open-ils.search', 'method' : 'open-ils.search.biblio.record.mods_slim.retrieve', 'secure' : false }, + 'MODS_SLIM_RECORD_RETRIEVE.authoritative' : { 'app' : 'open-ils.search', 'method' : 'open-ils.search.biblio.record.mods_slim.retrieve.authoritative', 'secure' : false }, 'MODS_SLIM_RECORD_RETRIEVE_VIA_COPY' : { 'app' : 'open-ils.search', 'method' : 'open-ils.search.biblio.mods_from_copy', 'secure' : false }, 'PERM_CHECK' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.user.perm.check' }, 'PERM_MULTI_ORG_CHECK' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.user.perm.check.multi_org' }, @@ -182,6 +209,7 @@ const api = { 'MARC_XML_TEMPLATE_LIST' : { 'app' : 'open-ils.cat', 'method' : 'open-ils.cat.marc_template.types.retrieve', 'secure' : false }, 'MERGE_RECORDS' : { 'app' : 'open-ils.cat', 'method' : 'open-ils.cat.biblio.records.merge' }, 'PATRON_BARCODE_EXISTS' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.barcode.exists' }, + 'PATRON_BARCODE_EXISTS.authoritative' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.barcode.exists.authoritative' }, 'RECALCULATE_STANDING_PENALTIES' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.user.penalties.update' }, 'USER_ORG_UNIT_OPT_IN_FEATURE' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.user.org_unit_opt_in.enabled' }, 'USER_ORG_UNIT_OPT_IN_CHECK' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.user.org_unit_opt_in.check' }, diff --git a/Open-ILS/xul/staff_client/server/admin/transit_list.js b/Open-ILS/xul/staff_client/server/admin/transit_list.js index e3a8519e19..8e27ffbbdb 100644 --- a/Open-ILS/xul/staff_client/server/admin/transit_list.js +++ b/Open-ILS/xul/staff_client/server/admin/transit_list.js @@ -324,7 +324,7 @@ admin.transit_list.prototype = { row.my.acp = r_acp; obj.network.simple_request( - 'FM_ACN_RETRIEVE', + 'FM_ACN_RETRIEVE.authoritative', [ r_acp.call_number() ], function(req2) { try { @@ -334,7 +334,7 @@ admin.transit_list.prototype = { if (row.my.acn.record() > 0) { obj.network.simple_request( - 'MODS_SLIM_RECORD_RETRIEVE', + 'MODS_SLIM_RECORD_RETRIEVE.authoritative', [ r_acn.record() ], function(req3) { try { diff --git a/Open-ILS/xul/staff_client/server/cat/bib_brief.xul b/Open-ILS/xul/staff_client/server/cat/bib_brief.xul index fa11522938..f532736cd9 100644 --- a/Open-ILS/xul/staff_client/server/cat/bib_brief.xul +++ b/Open-ILS/xul/staff_client/server/cat/bib_brief.xul @@ -66,9 +66,8 @@ data.last_record = docid; data.stash('last_record'); - g.network.request( - api.MODS_SLIM_RECORD_RETRIEVE.app, - api.MODS_SLIM_RECORD_RETRIEVE.method, + g.network.simple_request( + 'MODS_SLIM_RECORD_RETRIEVE.authoritative', [ docid ], function (req) { var mods = req.getResultObject(); @@ -97,9 +96,8 @@ } } - g.network.request( - api.FM_BRE_RETRIEVE_VIA_ID.app, - api.FM_BRE_RETRIEVE_VIA_ID.method, + g.network.simple_request( + 'FM_BRE_RETRIEVE_VIA_ID.authoritative', [ ses(), [ docid ] ], function (req) { try { diff --git a/Open-ILS/xul/staff_client/server/cat/copy_browser.js b/Open-ILS/xul/staff_client/server/cat/copy_browser.js index ba4cb3b95c..0f1f4541bb 100644 --- a/Open-ILS/xul/staff_client/server/cat/copy_browser.js +++ b/Open-ILS/xul/staff_client/server/cat/copy_browser.js @@ -800,7 +800,7 @@ cat.copy_browser.prototype = { } ); - var volume = obj.network.simple_request('FM_ACN_RETRIEVE',[ obj.data.marked_volume ]); + var volume = obj.network.simple_request('FM_ACN_RETRIEVE.authoritative',[ obj.data.marked_volume ]); JSAN.use('cat.util'); cat.util.transfer_copies( { 'copy_ids' : list, @@ -821,7 +821,7 @@ cat.copy_browser.prototype = { obj.list_init(params); - obj.org_ids = obj.network.simple_request('FM_AOU_IDS_RETRIEVE_VIA_RECORD_ID',[ obj.docid ]); + obj.org_ids = obj.network.simple_request('FM_AOU_IDS_RETRIEVE_VIA_RECORD_ID.authoritative',[ obj.docid ]); if (typeof obj.org_ids.ilsevent != 'undefined') throw(obj.org_ids); JSAN.use('util.functional'); obj.org_ids = util.functional.map_list( obj.org_ids, function (o) { return Number(o); }); @@ -913,7 +913,7 @@ cat.copy_browser.prototype = { 'show_consortial_count' : function() { var obj = this; try { - obj.network.simple_request('FM_ACP_COUNT',[ obj.data.tree.aou.id(), obj.docid ],function(req){ + obj.network.simple_request('FM_ACP_COUNT.authoritative',[ obj.data.tree.aou.id(), obj.docid ],function(req){ try { var robj = req.getResultObject(); var x = document.getElementById('consortial_total'); @@ -1237,7 +1237,7 @@ cat.copy_browser.prototype = { } else { var v_count = 0; var c_count = 0; acn_tree_list = obj.network.simple_request( - 'FM_ACN_TREE_LIST_RETRIEVE_VIA_RECORD_ID_AND_ORG_IDS', + 'FM_ACN_TREE_LIST_RETRIEVE_VIA_RECORD_ID_AND_ORG_IDS.authoritative', [ ses(), obj.docid, [ org.id() ] ] ); for (var i = 0; i < acn_tree_list.length; i++) { @@ -1620,7 +1620,7 @@ cat.copy_browser.prototype = { obj.map_tree = {}; obj.map_acn = {}; obj.map_acp = {}; - obj.org_ids = obj.network.simple_request('FM_AOU_IDS_RETRIEVE_VIA_RECORD_ID',[ obj.docid ]); + obj.org_ids = obj.network.simple_request('FM_AOU_IDS_RETRIEVE_VIA_RECORD_ID.authoritative',[ obj.docid ]); if (typeof obj.org_ids.ilsevent != 'undefined') throw(obj.org_ids); JSAN.use('util.functional'); obj.org_ids = util.functional.map_list( obj.org_ids, function (o) { return Number(o); }); diff --git a/Open-ILS/xul/staff_client/server/cat/copy_buckets.js b/Open-ILS/xul/staff_client/server/cat/copy_buckets.js index a24cb092d2..64a40f41ca 100644 --- a/Open-ILS/xul/staff_client/server/cat/copy_buckets.js +++ b/Open-ILS/xul/staff_client/server/cat/copy_buckets.js @@ -481,7 +481,7 @@ cat.copy_buckets.prototype = { } ) - var volume = obj.network.simple_request('FM_ACN_RETRIEVE',[ obj.data.marked_volume ]); + var volume = obj.network.simple_request('FM_ACN_RETRIEVE.authoritative',[ obj.data.marked_volume ]); var msg = 'Transfer the items in bucket "'; msg += obj.controller.view.bucket_menulist.getAttribute('label') + '" '; diff --git a/Open-ILS/xul/staff_client/server/cat/copy_editor.js b/Open-ILS/xul/staff_client/server/cat/copy_editor.js index 63812f3ab5..b95994b266 100644 --- a/Open-ILS/xul/staff_client/server/cat/copy_editor.js +++ b/Open-ILS/xul/staff_client/server/cat/copy_editor.js @@ -29,7 +29,7 @@ function my_init() { if (!copy_ids) copy_ids = []; if (copy_ids.length > 0) g.copies = g.network.simple_request( - 'FM_ACP_FLESHED_BATCH_RETRIEVE', + 'FM_ACP_FLESHED_BATCH_RETRIEVE.authoritative', [ copy_ids ] ); @@ -74,7 +74,7 @@ function my_init() { lib = o.circ_lib(); // base perms on circ_lib instead of owning_lib if pre-cat } else { if (! g.map_acn[ cn_id ]) { - var req = g.network.simple_request('FM_ACN_RETRIEVE',[ cn_id ]); + var req = g.network.simple_request('FM_ACN_RETRIEVE.authoritative',[ cn_id ]); if (typeof req.ilsevent == 'undefined') { g.map_acn[ cn_id ] = req; lib = g.map_acn[ cn_id ].owning_lib(); @@ -432,7 +432,7 @@ g.apply_owning_lib = function(ou_id) { var copy = g.copies[i]; try { if (!g.map_acn[copy.call_number()]) { - var volume = g.network.simple_request('FM_ACN_RETRIEVE',[ copy.call_number() ]); + var volume = g.network.simple_request('FM_ACN_RETRIEVE.authoritative',[ copy.call_number() ]); if (typeof volume.ilsevent != 'undefined') { g.error.standard_unexpected_error_alert('Error retrieving Volume information for copy ' + copy.barcode() + ". The owning library for this copy won't be changed.",volume); continue; @@ -559,7 +559,7 @@ g.get_acpl_list = function() { var cn_id = typeof callnumber == 'object' ? callnumber.id() : callnumber; if (cn_id > 0) { if (! g.map_acn[ cn_id ]) { - var req = g.network.simple_request('FM_ACN_RETRIEVE',[ cn_id ]); + var req = g.network.simple_request('FM_ACN_RETRIEVE.authoritative',[ cn_id ]); if (typeof req.ilsevent == 'undefined') { g.map_acn[ cn_id ] = req; } else { @@ -659,9 +659,8 @@ g.special_exception = { 'Owning Lib : Call Number' : function(label,value) { JSAN.use('util.widgets'); if (value>0) { /* an existing call number */ - g.network.request( - api.FM_ACN_RETRIEVE.app, - api.FM_ACN_RETRIEVE.method, + g.network.simple_request( + 'FM_ACN_RETRIEVE.authoritative', [ value ], function(req) { var cn = '??? id = ' + value; @@ -1395,7 +1394,7 @@ g.populate_stat_cats = function() { var cn_id = g.copies[i].call_number(); if (cn_id > 0) { if (! g.map_acn[ cn_id ]) { - var req = g.network.simple_request('FM_ACN_RETRIEVE',[ cn_id ]); + var req = g.network.simple_request('FM_ACN_RETRIEVE.authoritative',[ cn_id ]); if (typeof req.ilsevent == 'undefined') { g.map_acn[ cn_id ] = req; } else { diff --git a/Open-ILS/xul/staff_client/server/cat/copy_summary.xul b/Open-ILS/xul/staff_client/server/cat/copy_summary.xul index 69517188c2..3d65ba5aaf 100644 --- a/Open-ILS/xul/staff_client/server/cat/copy_summary.xul +++ b/Open-ILS/xul/staff_client/server/cat/copy_summary.xul @@ -126,7 +126,7 @@ acn_callback( { 'getResultObject' : function() { return callnumber; } } ); } else { g.network.simple_request( - 'FM_ACN_RETRIEVE', + 'FM_ACN_RETRIEVE.authoritative', [ copy.call_number() ], acn_callback ); } diff --git a/Open-ILS/xul/staff_client/server/cat/record_buckets.js b/Open-ILS/xul/staff_client/server/cat/record_buckets.js index c8698c47d5..b43a59c503 100644 --- a/Open-ILS/xul/staff_client/server/cat/record_buckets.js +++ b/Open-ILS/xul/staff_client/server/cat/record_buckets.js @@ -746,7 +746,7 @@ cat.record_buckets.prototype = { 'flesh_item_for_list' : function(docid,bucket_item_id) { var obj = this; try { - var record = obj.network.simple_request( 'MODS_SLIM_RECORD_RETRIEVE', [ docid ]); + var record = obj.network.simple_request( 'MODS_SLIM_RECORD_RETRIEVE.authoritative', [ docid ]); if (record == null || typeof(record.ilsevent) != 'undefined') { throw(record); } else { diff --git a/Open-ILS/xul/staff_client/server/cat/spine_labels.js b/Open-ILS/xul/staff_client/server/cat/spine_labels.js index 45ae03e80d..4dd1299087 100644 --- a/Open-ILS/xul/staff_client/server/cat/spine_labels.js +++ b/Open-ILS/xul/staff_client/server/cat/spine_labels.js @@ -34,9 +34,9 @@ var copy = g.network.simple_request( 'FM_ACP_RETRIEVE_VIA_BARCODE', [ 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', [ copy.call_number() ] ); + var volume = g.network.simple_request( 'FM_ACN_RETRIEVE.authoritative', [ copy.call_number() ] ); if (typeof volume.ilsevent != 'undefined') throw(volume); - var record = g.network.simple_request('MODS_SLIM_RECORD_RETRIEVE', [ volume.record() ]); + var record = g.network.simple_request('MODS_SLIM_RECORD_RETRIEVE.authoritative', [ volume.record() ]); volume.record( record ); g.volumes[ volume.id() ] = volume; } diff --git a/Open-ILS/xul/staff_client/server/cat/util.js b/Open-ILS/xul/staff_client/server/cat/util.js index 11dc97a327..b009b86a36 100644 --- a/Open-ILS/xul/staff_client/server/cat/util.js +++ b/Open-ILS/xul/staff_client/server/cat/util.js @@ -113,7 +113,7 @@ cat.util.transfer_copies = function(params) { JSAN.use('util.functional'); - var copies = network.simple_request('FM_ACP_FLESHED_BATCH_RETRIEVE', [ params.copy_ids ]); + var copies = network.simple_request('FM_ACP_FLESHED_BATCH_RETRIEVE.authoritative', [ params.copy_ids ]); for (var i = 0; i < copies.length; i++) { copies[i].call_number( data.marked_volume ); @@ -259,7 +259,7 @@ cat.util.mark_item_damaged = function(copy_ids) { JSAN.use('util.error'); error = new util.error(); JSAN.use('util.functional'); JSAN.use('util.network'); var network = new util.network(); - var copies = network.simple_request('FM_ACP_FLESHED_BATCH_RETRIEVE', [ copy_ids ]); + var copies = network.simple_request('FM_ACP_FLESHED_BATCH_RETRIEVE.authoritative', [ copy_ids ]); if (typeof copies.ilsevent != 'undefined') throw(copies); var magic_status = false; for (var i = 0; i < copies.length; i++) { @@ -301,7 +301,7 @@ cat.util.mark_item_missing = function(copy_ids) { JSAN.use('util.error'); error = new util.error(); JSAN.use('util.functional'); JSAN.use('util.network'); var network = new util.network(); - var copies = network.simple_request('FM_ACP_FLESHED_BATCH_RETRIEVE', [ copy_ids ]); + var copies = network.simple_request('FM_ACP_FLESHED_BATCH_RETRIEVE.authoritative', [ copy_ids ]); if (typeof copies.ilsevent != 'undefined') throw(copies); var magic_status = false; for (var i = 0; i < copies.length; i++) { diff --git a/Open-ILS/xul/staff_client/server/circ/checkout.js b/Open-ILS/xul/staff_client/server/circ/checkout.js index 82a8c5f9ec..6df2f820ea 100644 --- a/Open-ILS/xul/staff_client/server/circ/checkout.js +++ b/Open-ILS/xul/staff_client/server/circ/checkout.js @@ -256,7 +256,7 @@ circ.checkout.prototype = { this.check_disable(); var robj = obj.network.simple_request( - 'FM_CIRC_COUNT_RETRIEVE_VIA_USER', + 'FM_CIRC_COUNT_RETRIEVE_VIA_USER.authoritative', [ ses(), obj.patron_id ] ); obj.items_out_count = (robj.out + robj.overdue + robj.claims_returned + robj.long_overdue ); diff --git a/Open-ILS/xul/staff_client/server/circ/circ_summary.xul b/Open-ILS/xul/staff_client/server/circ/circ_summary.xul index 47e60f1369..193aae759a 100644 --- a/Open-ILS/xul/staff_client/server/circ/circ_summary.xul +++ b/Open-ILS/xul/staff_client/server/circ/circ_summary.xul @@ -59,7 +59,7 @@ g.copy = g.network.simple_request('FM_ACP_RETRIEVE',[ g.copy_id ]); if (typeof g.copy.ilsevent != 'undefined') throw(g.copy); - g.callnumber = g.network.simple_request('FM_ACN_RETRIEVE',[ g.copy.call_number() ]); + g.callnumber = g.network.simple_request('FM_ACN_RETRIEVE.authoritative',[ g.copy.call_number() ]); if (typeof g.callnumber.ilsevent != 'undefined') throw(g.callnumber); $('top').setAttribute('src',urls.XUL_BIB_BRIEF);// + '?docid=' + g.callnumber.record()); diff --git a/Open-ILS/xul/staff_client/server/circ/copy_details.xul b/Open-ILS/xul/staff_client/server/circ/copy_details.xul index a7387ae68c..3122a5c94c 100644 --- a/Open-ILS/xul/staff_client/server/circ/copy_details.xul +++ b/Open-ILS/xul/staff_client/server/circ/copy_details.xul @@ -81,7 +81,7 @@ $('circ_caption').setAttribute('tooltiptext', tt_msg); } - //g.callnumber = g.network.simple_request('FM_ACN_RETRIEVE',[ g.copy.call_number() ]); + //g.callnumber = g.network.simple_request('FM_ACN_RETRIEVE.authoritative',[ g.copy.call_number() ]); //if (typeof g.callnumber.ilsevent != 'undefined') throw(g.callnumber); $('top').setAttribute('src',urls.XUL_BIB_BRIEF); // + '?docid=' + g.callnumber.record()); diff --git a/Open-ILS/xul/staff_client/server/circ/copy_status.js b/Open-ILS/xul/staff_client/server/circ/copy_status.js index 575bc7cf9e..6116d23305 100644 --- a/Open-ILS/xul/staff_client/server/circ/copy_status.js +++ b/Open-ILS/xul/staff_client/server/circ/copy_status.js @@ -378,7 +378,7 @@ circ.copy_status.prototype = { continue; /* ignore magic pre-cat volume */ } if (! map_acn[volume_id]) { - map_acn[ volume_id ] = obj.network.simple_request('FM_ACN_RETRIEVE',[ volume_id ]); + map_acn[ volume_id ] = obj.network.simple_request('FM_ACN_RETRIEVE.authoritative',[ volume_id ]); } var record_id = map_acn[ volume_id ].record(); var ou_id = map_acn[ volume_id ].owning_lib(); @@ -507,7 +507,7 @@ circ.copy_status.prototype = { var list = util.functional.map_list( obj.selection_list, function(o) { return o.copy_id; } ); - var volume = obj.network.simple_request('FM_ACN_RETRIEVE',[ obj.data.marked_volume ]); + var volume = obj.network.simple_request('FM_ACN_RETRIEVE.authoritative',[ obj.data.marked_volume ]); JSAN.use('cat.util'); cat.util.transfer_copies( { 'copy_ids' : list, @@ -538,7 +538,7 @@ circ.copy_status.prototype = { continue; /* ignore magic pre-cat volume */ } if (! map_acn[volume_id]) { - map_acn[ volume_id ] = obj.network.simple_request('FM_ACN_RETRIEVE',[ volume_id ]); + map_acn[ volume_id ] = obj.network.simple_request('FM_ACN_RETRIEVE.authoritative',[ volume_id ]); } var record_id = map_acn[ volume_id ].record(); var ou_id = map_acn[ volume_id ].owning_lib(); @@ -609,7 +609,7 @@ circ.copy_status.prototype = { continue; /* ignore magic pre-cat volume */ } if (! map_acn[volume_id]) { - map_acn[ volume_id ] = obj.network.simple_request('FM_ACN_RETRIEVE',[ volume_id ]); + map_acn[ volume_id ] = obj.network.simple_request('FM_ACN_RETRIEVE.authoritative',[ volume_id ]); map_acn[ volume_id ].copies( [] ); } var record_id = map_acn[ volume_id ].record(); @@ -735,7 +735,7 @@ circ.copy_status.prototype = { continue; /* ignore magic pre-cat volume */ } if (! map_acn[volume_id]) { - map_acn[ volume_id ] = obj.network.simple_request('FM_ACN_RETRIEVE',[ volume_id ]); + map_acn[ volume_id ] = obj.network.simple_request('FM_ACN_RETRIEVE.authoritative',[ volume_id ]); } } @@ -825,7 +825,7 @@ circ.copy_status.prototype = { var list = util.functional.map_list( obj.selection_list, function(o) { return o.acn_id; } ); if (list.length == 1) { - var v = obj.network.simple_request('FM_ACN_RETRIEVE',[list[0]]); + var v = obj.network.simple_request('FM_ACN_RETRIEVE.authoritative',[list[0]]); var owning_lib = v.owning_lib(); if (typeof owning_lib == 'object') { owning_lib = owning_lib.id(); @@ -872,7 +872,7 @@ circ.copy_status.prototype = { continue; /* ignore magic pre-cat volume */ } if (! map_acn[volume_id]) { - map_acn[ volume_id ] = obj.network.simple_request('FM_ACN_RETRIEVE',[ volume_id ]); + map_acn[ volume_id ] = obj.network.simple_request('FM_ACN_RETRIEVE.authoritative',[ volume_id ]); } } @@ -1096,7 +1096,7 @@ circ.copy_status.prototype = { obj.error.standard_unexpected_error_alert('barcode = ' + barcode,E); } } - var result = obj.network.simple_request('FM_ACP_DETAILS_VIA_BARCODE', [ ses(), barcode ]); + var result = obj.network.simple_request('FM_ACP_DETAILS_VIA_BARCODE.authoritative', [ ses(), barcode ]); handle_req({'getResultObject':function(){return result;}}); // used to be async obj.controller.view.copy_status_barcode_entry_textbox.value = ''; obj.controller.view.copy_status_barcode_entry_textbox.focus(); diff --git a/Open-ILS/xul/staff_client/server/circ/in_house_use.js b/Open-ILS/xul/staff_client/server/circ/in_house_use.js index baa4e8472d..8fae509dcb 100644 --- a/Open-ILS/xul/staff_client/server/circ/in_house_use.js +++ b/Open-ILS/xul/staff_client/server/circ/in_house_use.js @@ -279,7 +279,7 @@ circ.in_house_use.prototype = { return; } - var mods = obj.network.simple_request('MODS_SLIM_RECORD_RETRIEVE_VIA_COPY',[ copy.id() ]); + var mods = obj.network.simple_request('MODS_SLIM_RECORD_RETRIEVE.authoritative_VIA_COPY',[ copy.id() ]); var result = obj.network.simple_request('FM_AIHU_CREATE', [ ses(), { 'copyid' : copy.id(), 'location' : obj.data.list.au[0].ws_ou(), 'count' : multiplier } ] ); diff --git a/Open-ILS/xul/staff_client/server/circ/util.js b/Open-ILS/xul/staff_client/server/circ/util.js index c6b904465c..7af0870b19 100644 --- a/Open-ILS/xul/staff_client/server/circ/util.js +++ b/Open-ILS/xul/staff_client/server/circ/util.js @@ -517,7 +517,7 @@ circ.util.columns = function(modify,params) { return document.getElementById('circStrings').getString('staff.circ.utils.not_cataloged'); } else { if (!my.acn) { - var x = network.simple_request("FM_ACN_RETRIEVE",[ my.acp.call_number() ]); + var x = network.simple_request("FM_ACN_RETRIEVE.authoritative",[ my.acp.call_number() ]); if (x.ilsevent) { return document.getElementById('circStrings').getString('staff.circ.utils.not_cataloged'); } else { @@ -1946,7 +1946,7 @@ circ.util.checkin_via_barcode2 = function(session,params,backdate,auto_print,che } if (check.circ) { - network.simple_request('FM_MBTS_RETRIEVE',[ses(),check.circ.id()], function(req) { + network.simple_request('FM_MBTS_RETRIEVE.authoritative',[ses(),check.circ.id()], function(req) { JSAN.use('util.money'); var bill = req.getResultObject(); if (Number(bill.balance_owed()) == 0) { return; } diff --git a/Open-ILS/xul/staff_client/server/patron/barcode_entry.xul b/Open-ILS/xul/staff_client/server/patron/barcode_entry.xul index b2f1094097..1ba13b299f 100644 --- a/Open-ILS/xul/staff_client/server/patron/barcode_entry.xul +++ b/Open-ILS/xul/staff_client/server/patron/barcode_entry.xul @@ -93,7 +93,7 @@ tb.disabled = true; document.getElementById('progress').setAttribute('hidden','false'); - net.simple_request('PATRON_BARCODE_EXISTS',[ ses(), barcode ], + net.simple_request('PATRON_BARCODE_EXISTS.authoritative',[ ses(), barcode ], function(req) { document.getElementById('progress').setAttribute('hidden','true'); tb.disabled = false; tb.select(); tb.focus(); ; diff --git a/Open-ILS/xul/staff_client/server/patron/bill_details.xul b/Open-ILS/xul/staff_client/server/patron/bill_details.xul index cf7e5d13ce..6e97a268a3 100644 --- a/Open-ILS/xul/staff_client/server/patron/bill_details.xul +++ b/Open-ILS/xul/staff_client/server/patron/bill_details.xul @@ -56,7 +56,7 @@ } function retrieve_mbts() { - g.network.simple_request('FM_MBTS_RETRIEVE',[ses(),g.mbts_id], + g.network.simple_request('FM_MBTS_RETRIEVE.authoritative',[ses(),g.mbts_id], function(req) { try { g.mbts = req.getResultObject(); @@ -120,7 +120,7 @@ $('copy_summary').hidden=false; g.network.simple_request( - 'MODS_SLIM_RECORD_RETRIEVE_VIA_COPY', + 'MODS_SLIM_RECORD_RETRIEVE.authoritative_VIA_COPY', [ r_circ.target_copy() ], function (rreq) { var r_mvr = rreq.getResultObject(); @@ -180,7 +180,7 @@ } function retrieve_mb() { - g.mb_list = g.network.simple_request( 'FM_MB_RETRIEVE_VIA_MBTS_ID', [ ses(), g.mbts_id ] ); + g.mb_list = g.network.simple_request( 'FM_MB_RETRIEVE_VIA_MBTS_ID.authoritative', [ ses(), g.mbts_id ] ); //g.error.sdump('D_DEBUG',g.error.pretty_print( js2JSON(g.mb_list) )); var mb_funcs = []; @@ -200,7 +200,7 @@ } function retrieve_mp() { - var mp_list = g.network.simple_request( 'FM_MP_RETRIEVE_VIA_MBTS_ID', [ ses(), g.mbts_id ]); + var mp_list = g.network.simple_request( 'FM_MP_RETRIEVE_VIA_MBTS_ID.authoritative', [ ses(), g.mbts_id ]); //g.error.sdump('D_DEBUG',g.error.pretty_print( js2JSON(mp_list) )); var mp_funcs = []; diff --git a/Open-ILS/xul/staff_client/server/patron/bill_history.xul b/Open-ILS/xul/staff_client/server/patron/bill_history.xul index 053404a486..05066d4648 100644 --- a/Open-ILS/xul/staff_client/server/patron/bill_history.xul +++ b/Open-ILS/xul/staff_client/server/patron/bill_history.xul @@ -57,8 +57,8 @@ function retrieve_mbts_for_list() { //var method = 'FM_MBTS_IDS_RETRIEVE_ALL_HAVING_CHARGE'; - var method = 'FM_MBTS_IDS_RETRIEVE_FOR_HISTORY'; - if (xul_param('current')) method = 'FM_MBTS_IDS_RETRIEVE_ALL_HAVING_BALANCE'; + var method = 'FM_MBTS_IDS_RETRIEVE_FOR_HISTORY.authoritative'; + if (xul_param('current')) method = 'FM_MBTS_IDS_RETRIEVE_ALL_HAVING_BALANCE.authoritative'; g.mbts_ids = g.network.simple_request(method,[ses(),g.patron_id]); if (g.mbts_ids.ilsevent) { switch(Number(g.mbts_ids.ilsevent)) { @@ -108,7 +108,7 @@ } function retrieve_specific_mbts() { - if (g.mbts_id) g.network.simple_request('FM_MBTS_RETRIEVE',[ses(),g.mbts_id], + if (g.mbts_id) g.network.simple_request('FM_MBTS_RETRIEVE.authoritative',[ses(),g.mbts_id], function(req) { try { g.mbts = req.getResultObject(); @@ -164,7 +164,7 @@ $('copy_summary').hidden=false; g.network.simple_request( - 'MODS_SLIM_RECORD_RETRIEVE_VIA_COPY', + 'MODS_SLIM_RECORD_RETRIEVE.authoritative_VIA_COPY', [ r_circ.target_copy() ], function (rreq) { var r_mvr = rreq.getResultObject(); @@ -217,7 +217,7 @@ if (id) { if (typeof row.my == 'undefined') row.my = {}; if ( typeof row.my.mbts == 'undefined' ) { - var mbts_obj = g.network.simple_request('FM_MBTS_RETRIEVE',[ses(),id]); + var mbts_obj = g.network.simple_request('FM_MBTS_RETRIEVE.authoritative',[ses(),id]); row.my.mbts = mbts_obj; } } diff --git a/Open-ILS/xul/staff_client/server/patron/bill_wizard.xul b/Open-ILS/xul/staff_client/server/patron/bill_wizard.xul index a633947c4e..0161d9788f 100644 --- a/Open-ILS/xul/staff_client/server/patron/bill_wizard.xul +++ b/Open-ILS/xul/staff_client/server/patron/bill_wizard.xul @@ -38,7 +38,7 @@ function $(id) { return document.getElementById(id); } function retrieve_mbts() { - g.network.simple_request('FM_MBTS_RETRIEVE',[ses(),g.mbts_id], + g.network.simple_request('FM_MBTS_RETRIEVE.authoritative',[ses(),g.mbts_id], function(req) { try { g.mbts = req.getResultObject(); @@ -73,7 +73,7 @@ $('due').value = r_circ.due_date() ? r_circ.due_date().toString().substr(0,10) : ''; g.network.simple_request( - 'MODS_SLIM_RECORD_RETRIEVE_VIA_COPY', + 'MODS_SLIM_RECORD_RETRIEVE.authoritative_VIA_COPY', [ r_circ.target_copy() ], function (rreq) { var r_mvr = rreq.getResultObject(); diff --git a/Open-ILS/xul/staff_client/server/patron/bills.js b/Open-ILS/xul/staff_client/server/patron/bills.js index 763f8bff0e..74bfee7059 100644 --- a/Open-ILS/xul/staff_client/server/patron/bills.js +++ b/Open-ILS/xul/staff_client/server/patron/bills.js @@ -21,7 +21,7 @@ patron.bills.prototype = { 'current_payments' : [], - 'SHOW_ME_THE_BILLS' : 'FM_MBTS_IDS_RETRIEVE_ALL_HAVING_BALANCE', + 'SHOW_ME_THE_BILLS' : 'FM_MBTS_IDS_RETRIEVE_ALL_HAVING_BALANCE.authoritative', //'SHOW_ME_THE_BILLS' : 'FM_MBTS_IDS_RETRIEVE_ALL_STILL_OPEN', //'SHOW_ME_THE_BILLS' : 'FM_MOBTS_HAVING_BALANCE', /*'SHOW_ME_THE_BILLS' : 'FM_MOBTS_OPEN',*/ @@ -45,7 +45,7 @@ patron.bills.prototype = { } else if (instanceOf(obj.bills[i],mbts)) { obj.bills[i] = { 'transaction' : obj.bills[i] } } else { - var robj = obj.network.simple_request('FM_MBTS_RETRIEVE',[ses(),obj.bills[i]]); + var robj = obj.network.simple_request('FM_MBTS_RETRIEVE.authoritative',[ses(),obj.bills[i]]); //alert('refresh robj = ' + js2JSON(robj)); obj.bills[i] = { 'transaction' : robj } } @@ -672,7 +672,7 @@ patron.bills.prototype = { } else if (instanceOf(obj.bills[i],mbts)) { obj.bills[i] = { 'transaction' : obj.bills[i] } } else { - var robj = obj.network.simple_request('FM_MBTS_RETRIEVE',[ses(),obj.bills[i]]); + var robj = obj.network.simple_request('FM_MBTS_RETRIEVE.authoritative',[ses(),obj.bills[i]]); //alert('robj = ' + js2JSON(robj)); obj.bills[i] = { 'transaction' : robj } } @@ -886,7 +886,7 @@ patron.bills.prototype = { } } obj.network.simple_request( - 'MODS_SLIM_RECORD_RETRIEVE_VIA_COPY', + 'MODS_SLIM_RECORD_RETRIEVE.authoritative_VIA_COPY', [ r_circ.target_copy() ], function (rreq) { var r_mvr = rreq.getResultObject(); @@ -1044,7 +1044,7 @@ patron.bills.prototype = { var obj = this; JSAN.use('util.functional'); - var mb_list = obj.network.simple_request( 'FM_MB_RETRIEVE_VIA_MBTS_ID', [ ses(), mobts_id ] ); + var mb_list = obj.network.simple_request( 'FM_MB_RETRIEVE_VIA_MBTS_ID.authoritative', [ ses(), mobts_id ] ); if (typeof mb_list.ilsevent != 'undefined') throw(mb_list); mb_list = util.functional.filter_list( mb_list, function(o) { return ! get_bool( o.voided() ) }); diff --git a/Open-ILS/xul/staff_client/server/patron/display.js b/Open-ILS/xul/staff_client/server/patron/display.js index 014c7d26a9..c17acfc16d 100644 --- a/Open-ILS/xul/staff_client/server/patron/display.js +++ b/Open-ILS/xul/staff_client/server/patron/display.js @@ -392,7 +392,7 @@ patron.display.prototype = { } obj.network.simple_request( - 'FM_AHR_COUNT_RETRIEVE', + 'FM_AHR_COUNT_RETRIEVE.authoritative', [ ses(), patron.id() ], function(req) { try { diff --git a/Open-ILS/xul/staff_client/server/patron/hold_notices.xul b/Open-ILS/xul/staff_client/server/patron/hold_notices.xul index dc9203102b..4a9361a5ae 100644 --- a/Open-ILS/xul/staff_client/server/patron/hold_notices.xul +++ b/Open-ILS/xul/staff_client/server/patron/hold_notices.xul @@ -112,9 +112,8 @@ ); break; default: - row.my.mvr = g.network.request( - api.MODS_SLIM_RECORD_RETRIEVE.app, - api.MODS_SLIM_RECORD_RETRIEVE.method, + row.my.mvr = g.network.simple_request( + 'MODS_SLIM_RECORD_RETRIEVE.authoritative', [ row.my.ahr.target() ] ); if (row.my.ahr.current_copy()) { diff --git a/Open-ILS/xul/staff_client/server/patron/holds.js b/Open-ILS/xul/staff_client/server/patron/holds.js index 6523fe1632..dba1b17ecc 100644 --- a/Open-ILS/xul/staff_client/server/patron/holds.js +++ b/Open-ILS/xul/staff_client/server/patron/holds.js @@ -59,7 +59,7 @@ patron.holds.prototype = { 'retrieve_row' : function(params) { var row = params.row; try { - obj.network.simple_request('FM_AHR_BLOB_RETRIEVE', [ ses(), row.my.hold_id ], + obj.network.simple_request('FM_AHR_BLOB_RETRIEVE.authoritative', [ ses(), row.my.hold_id ], function(blob_req) { try { var blob = blob_req.getResultObject(); @@ -648,7 +648,7 @@ patron.holds.prototype = { opac_url = xulG.url_prefix( urls.opac_rdetail ) + '?r=' + htarget; break; case 'V' : - var my_acn = obj.network.simple_request( 'FM_ACN_RETRIEVE', [ htarget ]); + var my_acn = obj.network.simple_request( 'FM_ACN_RETRIEVE.authoritative', [ htarget ]); opac_url = xulG.url_prefix( urls.opac_rdetail) + '?r=' + my_acn.record(); break; case 'C' : @@ -657,7 +657,7 @@ patron.holds.prototype = { if (typeof my_acp.call_number() == 'object') { my_acn = my.acp.call_number(); } else { - my_acn = obj.network.simple_request( 'FM_ACN_RETRIEVE', + my_acn = obj.network.simple_request( 'FM_ACN_RETRIEVE.authoritative', [ my_acp.call_number() ]); } opac_url = xulG.url_prefix( urls.opac_rdetail) + '?r=' + my_acn.record(); @@ -785,7 +785,7 @@ patron.holds.prototype = { var method; var params = [ ses() ]; switch(obj.hold_interface_type) { case 'patron' : - method = 'FM_AHR_ID_LIST_RETRIEVE_VIA_AU'; + method = 'FM_AHR_ID_LIST_RETRIEVE_VIA_AU.authoritative'; params.push( obj.patron_id ); obj.controller.view.cmd_retrieve_patron.setAttribute('hidden','true'); break; diff --git a/Open-ILS/xul/staff_client/server/patron/info_group.xul b/Open-ILS/xul/staff_client/server/patron/info_group.xul index ab259da979..277eaa5c9e 100644 --- a/Open-ILS/xul/staff_client/server/patron/info_group.xul +++ b/Open-ILS/xul/staff_client/server/patron/info_group.xul @@ -147,7 +147,7 @@ var p = patron.util.retrieve_au_via_id(ses(),g.patron_id); if ((p == null) || (typeof p.ilsevent != 'undefined') ) throw(p); var robj = g.network.simple_request( - 'FM_AU_LIST_RETRIEVE_VIA_GROUP', + 'FM_AU_LIST_RETRIEVE_VIA_GROUP.authoritative', [ ses(), p.usrgroup() ] ); if ((robj == null) || (typeof robj.ilsevent != 'undefined') ) throw(robj); diff --git a/Open-ILS/xul/staff_client/server/patron/info_notes.xul b/Open-ILS/xul/staff_client/server/patron/info_notes.xul index 6f735fa40b..dd203089ec 100644 --- a/Open-ILS/xul/staff_client/server/patron/info_notes.xul +++ b/Open-ILS/xul/staff_client/server/patron/info_notes.xul @@ -68,10 +68,10 @@ function retrieve_notes() { if (g.new_note) { - g.notes = g.network.simple_request('FM_AUN_RETRIEVE_ALL',[ ses(), { 'patronid' : g.patron_id } ]).reverse(); + g.notes = g.network.simple_request('FM_AUN_RETRIEVE_ALL.authoritative',[ ses(), { 'patronid' : g.patron_id } ]).reverse(); g.new_note = false; } else { - g.notes = g.network.simple_request('FM_AUN_RETRIEVE_ALL',[ ses(), { 'patronid' : g.patron_id } ]).reverse(); + g.notes = g.network.simple_request('FM_AUN_RETRIEVE_ALL.authoritative',[ ses(), { 'patronid' : g.patron_id } ]).reverse(); } } diff --git a/Open-ILS/xul/staff_client/server/patron/items.js b/Open-ILS/xul/staff_client/server/patron/items.js index 75182d1fc1..04f1443c61 100644 --- a/Open-ILS/xul/staff_client/server/patron/items.js +++ b/Open-ILS/xul/staff_client/server/patron/items.js @@ -140,7 +140,7 @@ patron.items.prototype = { 'show_noncats' : function() { var obj = this; var checkout = {}; try { - var robj = obj.network.simple_request('FM_ANCC_RETRIEVE_VIA_USER',[ ses(), obj.patron_id ]); + var robj = obj.network.simple_request('FM_ANCC_RETRIEVE_VIA_USER.authoritative',[ ses(), obj.patron_id ]); if (typeof robj.ilsevent != 'undefined') throw(robj); for (var ii = 0; ii < robj.length; ii++) { @@ -560,7 +560,7 @@ patron.items.prototype = { if (!row.my.circ) { obj.network.simple_request( - 'FM_CIRC_DETAILS', + 'FM_CIRC_DETAILS.authoritative', [ row.my.circ_id ], function(req) { try { @@ -590,7 +590,7 @@ patron.items.prototype = { params.on_retrieve(row); } } catch(E) { - obj.error.standard_unexpected_error_alert('Error in callback for FM_CIRC_DETAILS in patron/items.js',E); + obj.error.standard_unexpected_error_alert('Error in callback for FM_CIRC_DETAILS.authoritative in patron/items.js',E); } } ); @@ -700,7 +700,7 @@ patron.items.prototype = { obj.checkouts = []; obj.checkouts2 = []; var robj = obj.network.simple_request( - 'FM_CIRC_RETRIEVE_VIA_USER', + 'FM_CIRC_RETRIEVE_VIA_USER.authoritative', [ ses(), obj.patron_id ] ); if (typeof robj.ilsevent!='undefined') { @@ -713,7 +713,7 @@ patron.items.prototype = { obj.checkouts2 = obj.checkouts2.concat( robj.long_overdue ); } var robj = obj.network.simple_request( - 'FM_CIRC_IN_WITH_FINES_VIA_USER', + 'FM_CIRC_IN_WITH_FINES_VIA_USER.authoritative', [ ses(), obj.patron_id ] ); if (typeof robj.ilsevent!='undefined') { diff --git a/Open-ILS/xul/staff_client/server/patron/summary.js b/Open-ILS/xul/staff_client/server/patron/summary.js index 6c83512493..6ba1747bb5 100644 --- a/Open-ILS/xul/staff_client/server/patron/summary.js +++ b/Open-ILS/xul/staff_client/server/patron/summary.js @@ -128,7 +128,7 @@ patron.summary.prototype = { return function() { e.setAttribute('value','...'); obj.network.simple_request( - 'FM_MOUS_RETRIEVE', + 'FM_MOUS_RETRIEVE.authoritative', [ ses(), obj.patron.id() ], function(req) { JSAN.use('util.money'); @@ -138,7 +138,7 @@ patron.summary.prototype = { ); /* obj.network.simple_request( - 'FM_MBTS_IDS_RETRIEVE_ALL_HAVING_BALANCE', + 'FM_MBTS_IDS_RETRIEVE_ALL_HAVING_BALANCE.authoritative', [ ses(), obj.patron.id() ], function(req) { JSAN.use('util.money'); @@ -149,7 +149,7 @@ patron.summary.prototype = { } var sum = 0; for (var i = 0; i < list.length; i++) { - var robj = typeof list[i] == 'object' ? list[i] : obj.network.simple_request('FM_MBTS_RETRIEVE',[ses(),list[i]]); + var robj = typeof list[i] == 'object' ? list[i] : obj.network.simple_request('FM_MBTS_RETRIEVE.authoritative',[ses(),list[i]]); sum += util.money.dollars_float_to_cents_integer( robj.balance_owed() ); } if (sum > 0) addCSSClass(document.documentElement,'PATRON_HAS_BILLS'); @@ -172,7 +172,7 @@ patron.summary.prototype = { var e5 = document.getElementById( 'patron_lost' ); if (e5) e5.setAttribute('value','...'); var e6 = document.getElementById( 'patron_noncat' ); if (e6) e6.setAttribute('value','...'); obj.network.simple_request( - 'FM_CIRC_COUNT_RETRIEVE_VIA_USER', + 'FM_CIRC_COUNT_RETRIEVE_VIA_USER.authoritative', [ ses(), obj.patron.id() ], function(req) { try { @@ -188,7 +188,7 @@ patron.summary.prototype = { } ); obj.network.simple_request( - 'FM_ANCC_RETRIEVE_VIA_USER', + 'FM_ANCC_RETRIEVE_VIA_USER.authoritative', [ ses(), obj.patron.id() ], function(req) { var robj = req.getResultObject(); @@ -214,7 +214,7 @@ patron.summary.prototype = { var e2 = document.getElementById('patron_holds_available'); if (e2) e2.setAttribute('value','...'); obj.network.simple_request( - 'FM_AHR_COUNT_RETRIEVE', + 'FM_AHR_COUNT_RETRIEVE.authoritative', [ ses(), obj.patron.id() ], function(req) { e.setAttribute('value', @@ -572,7 +572,7 @@ patron.summary.prototype = { var robj; if (obj.barcode && obj.barcode != 'null') { robj = obj.network.simple_request( - 'FM_AU_RETRIEVE_VIA_BARCODE', + 'FM_AU_RETRIEVE_VIA_BARCODE.authoritative', [ ses(), obj.barcode ] ); } else if (obj.id && obj.id != 'null') { diff --git a/Open-ILS/xul/staff_client/server/patron/util.js b/Open-ILS/xul/staff_client/server/patron/util.js index 8a58e3f71a..b358136984 100644 --- a/Open-ILS/xul/staff_client/server/patron/util.js +++ b/Open-ILS/xul/staff_client/server/patron/util.js @@ -484,7 +484,7 @@ patron.util.retrieve_fleshed_au_via_barcode = function(session, id) { JSAN.use('util.network'); var network = new util.network(); var patron_obj = network.simple_request( - 'FM_AU_RETRIEVE_VIA_BARCODE', + 'FM_AU_RETRIEVE_VIA_BARCODE.authoritative', [ session, id ] ); patron.util.set_penalty_css(patron_obj); @@ -525,10 +525,10 @@ patron.util.set_penalty_css = function(patron) { removeCSSClass(document.documentElement,'PATRON_NET_ACCESS_3'); JSAN.use('util.network'); var net = new util.network(); - net.simple_request('FM_MOUS_RETRIEVE',[ ses(), patron.id() ], function(req) { + net.simple_request('FM_MOUS_RETRIEVE.authoritative',[ ses(), patron.id() ], function(req) { if (req.getResultObject().balance_owed() > 0) addCSSClass(document.documentElement,'PATRON_HAS_BILLS'); }); - net.simple_request('FM_CIRC_COUNT_RETRIEVE_VIA_USER',[ ses(), patron.id() ], function(req) { + net.simple_request('FM_CIRC_COUNT_RETRIEVE_VIA_USER.authoritative',[ ses(), patron.id() ], function(req) { try { var co = req.getResultObject(); if (co.overdue > 0 || co.long_overdue > 0) addCSSClass(document.documentElement,'PATRON_HAS_OVERDUES'); @@ -536,7 +536,7 @@ patron.util.set_penalty_css = function(patron) { alert(E); } }); - net.simple_request('FM_AUN_RETRIEVE_ALL',[ ses(), { 'patronid' : patron.id() } ], function(req) { + net.simple_request('FM_AUN_RETRIEVE_ALL.authoritative',[ ses(), { 'patronid' : patron.id() } ], function(req) { var notes = req.getResultObject(); if (notes.length > 0) addCSSClass(document.documentElement,'PATRON_HAS_NOTES'); }); -- 2.11.0