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;
}
'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 },
'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' },
'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' },
'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 },
'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 },
'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' },
'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' },
'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' },
'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' },
row.my.acp = r_acp;
obj.network.simple_request(
- 'FM_ACN_RETRIEVE',
+ 'FM_ACN_RETRIEVE.authoritative',
[ r_acp.call_number() ],
function(req2) {
try {
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 {
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();
}
}
- 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 {
}
);
- 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,
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); });
'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');
} 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++) {
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); });
}
)
- 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') + '" ';
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 ]
);
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();
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;
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 {
'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;
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 {
acn_callback( { 'getResultObject' : function() { return callnumber; } } );
} else {
g.network.simple_request(
- 'FM_ACN_RETRIEVE',
+ 'FM_ACN_RETRIEVE.authoritative',
[ copy.call_number() ], acn_callback
);
}
'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 {
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;
}
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 );
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++) {
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++) {
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 );
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());
$('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());
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();
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,
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();
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();
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 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();
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 ]);
}
}
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();
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 } ]
);
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 {
}
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; }
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(); ;
}
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();
$('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();
}
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 = [];
}
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 = [];
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)) {
}
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();
$('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();
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;
}
}
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();
$('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();
'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',*/
} 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 }
}
} 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 }
}
}
}
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();
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() ) });
}
obj.network.simple_request(
- 'FM_AHR_COUNT_RETRIEVE',
+ 'FM_AHR_COUNT_RETRIEVE.authoritative',
[ ses(), patron.id() ],
function(req) {
try {
);
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()) {
'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();
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' :
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();
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;
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);
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();
}
}
'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++) {
if (!row.my.circ) {
obj.network.simple_request(
- 'FM_CIRC_DETAILS',
+ 'FM_CIRC_DETAILS.authoritative',
[ row.my.circ_id ],
function(req) {
try {
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);
}
}
);
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') {
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') {
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');
);
/*
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');
}
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');
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 {
}
);
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();
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',
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') {
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);
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');
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');
});