From 4140bebe5b8b51118e463b781dde519c2f3d6559 Mon Sep 17 00:00:00 2001
From: phasefx Note: %note% Specific bills: ',
- 'line_item' : '
\r\nBarcode: %barcode%\r\n',
- 'footer' : '
%SHORTNAME% %TODAY_TRIM%
\r\n
\r\n'
- },
- 'transit_list' : {
- 'type' : 'transits',
- 'header' : 'Transits:',
- 'line_item' : '
\r\nWhen: %transit_source_send_time%
\r\nBarcode: %transit_item_barcode% Title: %transit_item_title%
\r\n',
- 'footer' : '
%SHORTNAME% %TODAY_TRIM%
\r\n
\r\n'
- },
- 'items_out' : {
- 'type' : 'items',
- 'header' : 'Welcome to %LIBRARY%!
\r\nYou have the following items:',
- 'line_item' : '
\r\nBarcode: %barcode% Due: %due_date%\r\n',
- 'footer' : '
%SHORTNAME% %TODAY_TRIM%
\r\nYou were helped by %STAFF_FIRSTNAME%
\r\n
\r\n'
- },
- 'checkout' : {
- 'type' : 'items',
- 'header' : 'Welcome to %LIBRARY%!
\r\nYou checked out the following items:',
- 'line_item' : '
\r\nBarcode: %barcode% Due: %due_date%\r\n',
- 'footer' : '
%SHORTNAME% %TODAY_TRIM%
\r\nYou were helped by %STAFF_FIRSTNAME%
\r\n
\r\n'
- },
- 'offline_checkout' : {
- 'type' : 'offline_checkout',
- 'header' : 'Patron %patron_barcode%
\r\nYou checked out the following items:',
- 'line_item' : '
\r\nDue: %due_date%\r\n',
- 'footer' : '
%TODAY_TRIM%
\r\n
\r\n'
- },
- 'checkin' : {
- 'type' : 'items',
- 'header' : 'You checked in the following items:',
- 'line_item' : '
\r\nBarcode: %barcode% Call Number: %call_number%\r\n',
- 'footer' : '
%SHORTNAME% %TODAY_TRIM%
\r\n
\r\n'
- },
- 'bill_payment' : {
- 'type' : 'payment',
- 'header' : 'Welcome to %LIBRARY%!
A receipt of your transaction:
Original Balance: $%original_balance% Payment Method: %payment_type% Payment Received: $%payment_received% Payment Applied: $%payment_applied% Billings Voided: %voided_balance% Change Given: $%change_given% New Balance: $%new_balance% ',
- 'line_item' : 'Bill #%bill_id% %last_billing_type% Received: $%payment%
%barcode% %title%
',
- 'footer' : '
| Date: | %xact_start% |
| Type: | %xact_type% |
| Last Billing: | %last_billing_type% %last_billing_note% |
| Total Billed: | $%total_owed% |
| Last Payment: | %last_payment_type% %last_payment_note% |
| Total Paid: | $%total_paid% |
| Balance: | $%balance_owed% |
| Date: | %xact_start% |
| Type: | %xact_type% |
| Last Billing: | %last_billing_type% %last_billing_note% |
| Total Billed: | $%total_owed% |
| Last Payment: | %last_payment_type% %last_payment_note% |
| Total Paid: | $%total_paid% |
| Balance: | $%balance_owed% |
| Date: | %xact_start% |
| Type: | %xact_type% |
| Last Billing: | %last_billing_type% %last_billing_note% |
| Total Billed: | $%total_owed% |
| Last Payment: | %last_payment_type% %last_payment_note% |
| Total Paid: | $%total_paid% |
| Balance: | $%balance_owed% |
| Original Balance: | $%original_balance% |
| Payment Method: | %payment_type% |
| Payment Received: | $%payment_received% |
| Payment Applied: | $%payment_applied% |
| Billings Voided: | %voided_balance% |
| Change Given: | $%change_given% |
| New Balance: | $%new_balance% |
Note: %note%
Specific bills:
', + 'line_item' : 'Bill #%bill_id% %last_billing_type% Received: $%payment%
%barcode% %title%
', + 'footer' : '
| Date: | %xact_start% |
| Type: | %xact_type% |
| Last Billing: | %last_billing_type% %last_billing_note% |
| Total Billed: | $%total_owed% |
| Last Payment: | %last_payment_type% %last_payment_note% |
| Total Paid: | $%total_paid% |
| Balance: | $%balance_owed% |
| Date: | %xact_start% |
| Type: | %xact_type% |
| Last Billing: | %last_billing_type% %last_billing_note% |
| Total Billed: | $%total_owed% |
| Last Payment: | %last_payment_type% %last_payment_note% |
| Total Paid: | $%total_paid% |
| Balance: | $%balance_owed% |
| Date: | %xact_start% |
| Type: | %xact_type% |
| Last Billing: | %last_billing_type% %last_billing_note% |
| Total Billed: | $%total_owed% |
| Last Payment: | %last_payment_type% %last_payment_note% |
| Total Paid: | $%total_paid% |
| Balance: | $%balance_owed% |
GNU GENERAL PUBLIC LICENSE
- Version 2, June 1991
+ Version 2, June 1991
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
- Preamble
+ Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
@@ -100,7 +100,7 @@ patent must be licensed for everyone's free use or not licensed at all.
The precise terms and conditions for copying, distribution and
modification follow.
- GNU GENERAL PUBLIC LICENSE
+ GNU GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License applies to any program or other work which contains
@@ -299,7 +299,7 @@ make exceptions for this. Our decision will be guided by the two goals
of preserving the free status of all derivatives of our free software and
of promoting the sharing and reuse of software generally.
- NO WARRANTY
+ NO WARRANTY
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
@@ -321,9 +321,9 @@ YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.
- END OF TERMS AND CONDITIONS
+ END OF TERMS AND CONDITIONS
- How to Apply These Terms to Your New Programs
+ How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
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 03f5a6c0ce..cfa2b9ed4a 100644
--- a/Open-ILS/xul/staff_client/chrome/content/main/constants.js
+++ b/Open-ILS/xul/staff_client/chrome/content/main/constants.js
@@ -3,16 +3,16 @@ dump('Loading constants.js\n');
/* Get locale from preferences */
var LOCALE = '';
try {
- netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
- var pref = Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefBranch);
- LOCALE = pref.getCharPref('general.useragent.locale');
+ netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
+ var pref = Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefBranch);
+ LOCALE = pref.getCharPref('general.useragent.locale');
} catch (E) {
- dump("Failed to fetch a locale from preferences: " + E + "\n");
+ dump("Failed to fetch a locale from preferences: " + E + "\n");
}
/* Fall back to en-US if we didn't get a locale from the preferences */
if (!LOCALE) {
- LOCALE = 'en-US';
+ LOCALE = 'en-US';
}
const MODE_RDONLY = 0x01;
@@ -26,223 +26,223 @@ const PERMS_FILE = 0644;
const PERMS_DIR = 0755;
const my_constants = {
- 'magical_statuses' : {
- '1' : { 'disable_in_copy_editor' : true, 'block_mark_item_damaged' : false, 'block_mark_item_action' : true }, /* | Checked out | t */
- '3' : { 'disable_in_copy_editor' : true, 'block_mark_item_damaged' : false, 'block_mark_item_action' : true }, /* | Lost | f */
- '6' : { 'disable_in_copy_editor' : true, 'block_mark_item_damaged' : false, 'block_mark_item_action' : true }, /* | In transit | t */
- '8' : { 'disable_in_copy_editor' : true, 'block_mark_item_damaged' : false, 'block_mark_item_action' : false } /* | On holds shelf | t */
- }
+ 'magical_statuses' : {
+ '1' : { 'disable_in_copy_editor' : true, 'block_mark_item_damaged' : false, 'block_mark_item_action' : true }, /* | Checked out | t */
+ '3' : { 'disable_in_copy_editor' : true, 'block_mark_item_damaged' : false, 'block_mark_item_action' : true }, /* | Lost | f */
+ '6' : { 'disable_in_copy_editor' : true, 'block_mark_item_damaged' : false, 'block_mark_item_action' : true }, /* | In transit | t */
+ '8' : { 'disable_in_copy_editor' : true, 'block_mark_item_damaged' : false, 'block_mark_item_action' : false } /* | On holds shelf | t */
+ }
}
const api = {
- 'TEST_SECURE' : { 'app' : 'open-ils.actor', 'method' : 'opensrf.system.time' },
- 'TEST_UNSECURE' : { 'app' : 'open-ils.actor', 'method' : 'opensrf.system.time', 'secure' : false },
- 'AUTH_INIT' : { 'app' : 'open-ils.auth', 'method' : 'open-ils.auth.authenticate.init' },
- 'AUTH_COMPLETE' : { 'app' : 'open-ils.auth', 'method' : 'open-ils.auth.authenticate.complete' },
- 'AUTH_DELETE' : { 'app' : 'open-ils.auth', 'method' : 'open-ils.auth.session.delete' },
- 'AUTH_WORKSTATION' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.workstation.register' },
- 'AUTH_VERIFY_CREDENTIALS' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.verify_user_password' },
- 'BILL_PAY' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.money.payment' },
- 'BLOB_AU_PARTS_RETRIEVE' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.user.retrieve.parts', 'cacheable' : true, 'ttl' : 120000 },
- 'BLOB_MARC_CALLNUMBERS_RETRIEVE' : { 'app' : 'open-ils.cat', 'method' : 'open-ils.cat.biblio.record.marc_cn.retrieve', 'secure' : false },
- 'BLOB_MOBTS_CIRC_MVR_HAVING_BALANCE' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.user.transactions.have_balance.fleshed' },
- 'BLOB_MOBTS_CIRC_MVR_OPEN' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.user.transactions.fleshed' },
- 'BUCKET_CREATE' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.container.create' },
- 'BUCKET_FLESH' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.container.flesh.authoritative' },
- 'BUCKET_DELETE' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.container.full_delete' },
- 'BUCKET_RETRIEVE_VIA_USER' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.container.all.retrieve_by_user.authoritative' },
- 'BUCKET_ITEM_CREATE' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.container.item.create' },
- 'BUCKET_ITEM_DELETE' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.container.item.delete' },
- 'CAPTURE_COPY_FOR_HOLD_VIA_BARCODE' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.hold.capture_copy.barcode' },
- 'CHECKIN_VIA_BARCODE' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.checkin' },
- 'CHECKOUT' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.checkout' },
- 'CHECKOUT_FULL' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.checkout.full' },
- 'CHECKOUT_PERMIT' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.checkout.permit' },
- '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_RETRIEVE_VIA_BARCODE.authoritative' : { 'app' : 'open-ils.search', 'method' : 'open-ils.search.asset.copy.fleshed2.find_by_barcode.authoritative', '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_ACTSC_RETRIEVE_BATCH' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.stat_cat.actor.retrieve.batch', 'secure' : false },
- 'FM_ACTSC_RETRIEVE_VIA_AOU' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.stat_cat.actor.retrieve.all', 'secure' : false },
- 'FM_AHN_CREATE' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.hold_notification.create' },
- '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_ID_LIST_RETRIEVE_VIA_PICKUP_AOU' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.holds.id_list.retrieve_by_pickup_lib' },
- 'FM_AHR_PULL_LIST' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.hold_pull_list.retrieve' },
- 'FM_AHR_ID_LIST_PULL_LIST' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.hold_pull_list.id_list.retrieve', 'secure' : false },
- '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_AHR_STATUS' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.hold.status.retrieve' },
- '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 },
+ 'TEST_SECURE' : { 'app' : 'open-ils.actor', 'method' : 'opensrf.system.time' },
+ 'TEST_UNSECURE' : { 'app' : 'open-ils.actor', 'method' : 'opensrf.system.time', 'secure' : false },
+ 'AUTH_INIT' : { 'app' : 'open-ils.auth', 'method' : 'open-ils.auth.authenticate.init' },
+ 'AUTH_COMPLETE' : { 'app' : 'open-ils.auth', 'method' : 'open-ils.auth.authenticate.complete' },
+ 'AUTH_DELETE' : { 'app' : 'open-ils.auth', 'method' : 'open-ils.auth.session.delete' },
+ 'AUTH_WORKSTATION' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.workstation.register' },
+ 'AUTH_VERIFY_CREDENTIALS' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.verify_user_password' },
+ 'BILL_PAY' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.money.payment' },
+ 'BLOB_AU_PARTS_RETRIEVE' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.user.retrieve.parts', 'cacheable' : true, 'ttl' : 120000 },
+ 'BLOB_MARC_CALLNUMBERS_RETRIEVE' : { 'app' : 'open-ils.cat', 'method' : 'open-ils.cat.biblio.record.marc_cn.retrieve', 'secure' : false },
+ 'BLOB_MOBTS_CIRC_MVR_HAVING_BALANCE' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.user.transactions.have_balance.fleshed' },
+ 'BLOB_MOBTS_CIRC_MVR_OPEN' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.user.transactions.fleshed' },
+ 'BUCKET_CREATE' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.container.create' },
+ 'BUCKET_FLESH' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.container.flesh.authoritative' },
+ 'BUCKET_DELETE' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.container.full_delete' },
+ 'BUCKET_RETRIEVE_VIA_USER' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.container.all.retrieve_by_user.authoritative' },
+ 'BUCKET_ITEM_CREATE' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.container.item.create' },
+ 'BUCKET_ITEM_DELETE' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.container.item.delete' },
+ 'CAPTURE_COPY_FOR_HOLD_VIA_BARCODE' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.hold.capture_copy.barcode' },
+ 'CHECKIN_VIA_BARCODE' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.checkin' },
+ 'CHECKOUT' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.checkout' },
+ 'CHECKOUT_FULL' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.checkout.full' },
+ 'CHECKOUT_PERMIT' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.checkout.permit' },
+ '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_RETRIEVE_VIA_BARCODE.authoritative' : { 'app' : 'open-ils.search', 'method' : 'open-ils.search.asset.copy.fleshed2.find_by_barcode.authoritative', '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_ACTSC_RETRIEVE_BATCH' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.stat_cat.actor.retrieve.batch', 'secure' : false },
+ 'FM_ACTSC_RETRIEVE_VIA_AOU' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.stat_cat.actor.retrieve.all', 'secure' : false },
+ 'FM_AHN_CREATE' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.hold_notification.create' },
+ '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_ID_LIST_RETRIEVE_VIA_PICKUP_AOU' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.holds.id_list.retrieve_by_pickup_lib' },
+ 'FM_AHR_PULL_LIST' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.hold_pull_list.retrieve' },
+ 'FM_AHR_ID_LIST_PULL_LIST' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.hold_pull_list.id_list.retrieve', 'secure' : false },
+ '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_AHR_STATUS' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.hold.status.retrieve' },
+ '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_AOUS_RETRIEVE' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.org_unit_setting.values.ranged.retrieve' },
- '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_ASV_CREATE' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.survey.create' },
- 'FM_ASV_RETRIEVE' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.survey.retrieve.all', 'secure' : false },
- 'FM_ASV_RETRIEVE_REQUIRED' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.survey.retrieve.required' },
- 'FM_ASVR_RETRIEVE' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.survey.response.retrieve' },
- 'FM_ATC_VOID' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.transit.abort' },
- 'FM_ATC_RETRIEVE' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.transit.retrieve', 'secure' : false },
- 'FM_ATC_RETRIEVE_VIA_AOU' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.transit.retrieve_by_lib', '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_ASV_CREATE' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.survey.create' },
+ 'FM_ASV_RETRIEVE' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.survey.retrieve.all', 'secure' : false },
+ 'FM_ASV_RETRIEVE_REQUIRED' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.survey.retrieve.required' },
+ 'FM_ASVR_RETRIEVE' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.survey.response.retrieve' },
+ 'FM_ATC_VOID' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.transit.abort' },
+ 'FM_ATC_RETRIEVE' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.transit.retrieve', 'secure' : false },
+ 'FM_ATC_RETRIEVE_VIA_AOU' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.transit.retrieve_by_lib', 'secure' : false },
'FM_AU_ID_RETRIEVE_VIA_BARCODE_OR_USERNAME' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.user.retrieve_id_by_barcode_or_username' },
- '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_RETRIEVE_VIA_ID.authoritative' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.user.retrieve.authoritative', '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_FLESHED_RETRIEVE_VIA_ID.authoritative' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.user.fleshed.retrieve.authoritative', 'cacheable' : true, 'ttl' : 60000 },
+ '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_RETRIEVE_VIA_ID.authoritative' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.user.retrieve.authoritative', '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_FLESHED_RETRIEVE_VIA_ID.authoritative' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.user.fleshed.retrieve.authoritative', 'cacheable' : true, 'ttl' : 60000 },
'FM_AU_MERGE' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.user.merge' },
- '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_AUSP_APPLY' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.user.penalty.apply' },
- 'FM_AUSP_REMOVE' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.user.penalty.remove' },
- 'FM_AUSP_UPDATE_NOTE' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.user.penalty.note.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_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_AUSP_APPLY' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.user.penalty.apply' },
+ 'FM_AUSP_REMOVE' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.user.penalty.remove' },
+ 'FM_AUSP_UPDATE_NOTE' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.user.penalty.note.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_MULTICLASS_QUERY' : { 'app' : 'open-ils.search', 'method' : 'open-ils.search.biblio.multiclass.query.staff' },
- '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_BRE_UNDELETE' : { 'app' : 'open-ils.cat', 'method' : 'open-ils.cat.biblio.record_entry.undelete', 'secure' : false },
- 'FM_BRN_FROM_MARCXML' : { 'app' : 'open-ils.search', 'method' : 'open-ils.search.z3950.marcxml_to_brn', 'secure' : false },
- 'FM_CBT_RETRIEVE' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.billing_type.ranged.retrieve.all', '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_CITM_RETRIEVE' : { 'app' : 'open-ils.search', 'method' : 'open-ils.search.biblio.item_type_map.retrieve.all', 'secure' : false },
- 'FM_CNAL_RETRIEVE' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.net_access_level.retrieve.all', 'secure' : false },
- 'FM_CNCT_RETRIEVE' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.non_cat_types.retrieve.all', 'secure' : false },
- 'FM_CRAHP_RETRIEVE' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.config.rules.age_hold_protect.retrieve.all', '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_BRE_UNDELETE' : { 'app' : 'open-ils.cat', 'method' : 'open-ils.cat.biblio.record_entry.undelete', 'secure' : false },
+ 'FM_BRN_FROM_MARCXML' : { 'app' : 'open-ils.search', 'method' : 'open-ils.search.z3950.marcxml_to_brn', 'secure' : false },
+ 'FM_CBT_RETRIEVE' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.billing_type.ranged.retrieve.all', '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_CITM_RETRIEVE' : { 'app' : 'open-ils.search', 'method' : 'open-ils.search.biblio.item_type_map.retrieve.all', 'secure' : false },
+ 'FM_CNAL_RETRIEVE' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.net_access_level.retrieve.all', 'secure' : false },
+ 'FM_CNCT_RETRIEVE' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.non_cat_types.retrieve.all', 'secure' : false },
+ 'FM_CRAHP_RETRIEVE' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.config.rules.age_hold_protect.retrieve.all', 'secure' : false },
'FM_CSP_PCRUD_SEARCH' : { 'app' : 'open-ils.pcrud', 'method' : 'open-ils.pcrud.search.csp.atomic', '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_HAVING_BALANCE.authoritative' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.user.transactions.have_balance.authoritative' },
- 'FM_MOBTS_TOTAL_HAVING_BALANCE' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.user.transactions.have_balance.total' },
- 'FM_MOBTS_COUNT_HAVING_BALANCE' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.user.transactions.have_balance.count' },
- 'FM_MOBTS_OPEN' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.user.transactions' },
- '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' },
- 'FM_BLOB_RETRIEVE_VIA_Z3950_RAW_SEARCH' : { 'app' : 'open-ils.search', 'method' : 'open-ils.search.z3950.search_service' },
- 'RETRIEVE_Z3950_SERVICES' : { 'app' : 'open-ils.search', 'method' : 'open-ils.search.z3950.retrieve_services', 'secure' : false },
- 'MARK_ITEM_DAMAGED' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.mark_item_damaged' },
- 'MARK_ITEM_MISSING' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.mark_item_missing' },
- 'MARK_ITEM_LOST' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.circulation.set_lost' },
- '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 },
- 'MODS_SLIM_RECORD_RETRIEVE_VIA_COPY.authoritative' : { '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' },
- 'PERM_RETRIEVE_HIGHEST_ORG' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.user.perm.highest_org' },
- 'PERM_RETRIEVE_WORK_OU' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.user.has_work_perm_at' },
- 'BATCH_PERM_RETRIEVE_WORK_OU' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.user.has_work_perm_at.batch' },
- 'MARC_XML_RECORD_CREATE' : { 'app' : 'open-ils.cat', 'method' : 'open-ils.cat.biblio.record.xml.create' },
- 'MARC_XML_RECORD_IMPORT' : { 'app' : 'open-ils.cat', 'method' : 'open-ils.cat.biblio.record.xml.import' },
- 'MARC_XML_RECORD_REPLACE' : { 'app' : 'open-ils.cat', 'method' : 'open-ils.cat.biblio.record.marc.replace' },
- 'MARC_XML_RECORD_UPDATE' : { 'app' : 'open-ils.cat', 'method' : 'open-ils.cat.biblio.record.xml.update' },
- 'MARC_XML_TEMPLATE_RETRIEVE' : { 'app' : 'open-ils.cat', 'method' : 'open-ils.cat.biblio.marc_template.retrieve', 'secure' : false },
- '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' },
+ '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_HAVING_BALANCE.authoritative' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.user.transactions.have_balance.authoritative' },
+ 'FM_MOBTS_TOTAL_HAVING_BALANCE' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.user.transactions.have_balance.total' },
+ 'FM_MOBTS_COUNT_HAVING_BALANCE' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.user.transactions.have_balance.count' },
+ 'FM_MOBTS_OPEN' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.user.transactions' },
+ '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' },
+ 'FM_BLOB_RETRIEVE_VIA_Z3950_RAW_SEARCH' : { 'app' : 'open-ils.search', 'method' : 'open-ils.search.z3950.search_service' },
+ 'RETRIEVE_Z3950_SERVICES' : { 'app' : 'open-ils.search', 'method' : 'open-ils.search.z3950.retrieve_services', 'secure' : false },
+ 'MARK_ITEM_DAMAGED' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.mark_item_damaged' },
+ 'MARK_ITEM_MISSING' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.mark_item_missing' },
+ 'MARK_ITEM_LOST' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.circulation.set_lost' },
+ '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 },
+ 'MODS_SLIM_RECORD_RETRIEVE_VIA_COPY.authoritative' : { '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' },
+ 'PERM_RETRIEVE_HIGHEST_ORG' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.user.perm.highest_org' },
+ 'PERM_RETRIEVE_WORK_OU' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.user.has_work_perm_at' },
+ 'BATCH_PERM_RETRIEVE_WORK_OU' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.user.has_work_perm_at.batch' },
+ 'MARC_XML_RECORD_CREATE' : { 'app' : 'open-ils.cat', 'method' : 'open-ils.cat.biblio.record.xml.create' },
+ 'MARC_XML_RECORD_IMPORT' : { 'app' : 'open-ils.cat', 'method' : 'open-ils.cat.biblio.record.xml.import' },
+ 'MARC_XML_RECORD_REPLACE' : { 'app' : 'open-ils.cat', 'method' : 'open-ils.cat.biblio.record.marc.replace' },
+ 'MARC_XML_RECORD_UPDATE' : { 'app' : 'open-ils.cat', 'method' : 'open-ils.cat.biblio.record.xml.update' },
+ 'MARC_XML_TEMPLATE_RETRIEVE' : { 'app' : 'open-ils.cat', 'method' : 'open-ils.cat.biblio.marc_template.retrieve', 'secure' : false },
+ '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' },
'USER_ORG_UNIT_OPT_IN_CREATE' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.user.org_unit_opt_in.create' }
@@ -250,101 +250,101 @@ const api = {
const urls = {
- 'opac' : '/opac/' + LOCALE + '/skin/default/xml/advanced.xml?nps=1',
- 'opac_rdetail' : '/opac/' + LOCALE + '/skin/default/xml/rdetail.xml',
- 'opac_rresult' : '/opac/' + LOCALE + '/skin/default/xml/rresult.xml',
- 'org_tree' : '/opac/common/js/' + LOCALE + '/OrgTree.js',
- 'browser' : '/opac/' + LOCALE + '/skin/default/xml/advanced.xml?nps=1',
- 'fieldmapper' : '/opac/common/js/fmall.js',
- 'isodate_lib_remote' : '/opac/common/js/DP_DateExtensions.js',
- 'isodate_lib_local' : 'chrome://open_ils_staff_client/content/OpenILS/util/DP_DateExtensions.js',
- 'xsl_marc2html' : '/opac/extras/xsl/oilsMARC21slim2HTML.xsl',
+ 'opac' : '/opac/' + LOCALE + '/skin/default/xml/advanced.xml?nps=1',
+ 'opac_rdetail' : '/opac/' + LOCALE + '/skin/default/xml/rdetail.xml',
+ 'opac_rresult' : '/opac/' + LOCALE + '/skin/default/xml/rresult.xml',
+ 'org_tree' : '/opac/common/js/' + LOCALE + '/OrgTree.js',
+ 'browser' : '/opac/' + LOCALE + '/skin/default/xml/advanced.xml?nps=1',
+ 'fieldmapper' : '/opac/common/js/fmall.js',
+ 'isodate_lib_remote' : '/opac/common/js/DP_DateExtensions.js',
+ 'isodate_lib_local' : 'chrome://open_ils_staff_client/content/OpenILS/util/DP_DateExtensions.js',
+ 'xsl_marc2html' : '/opac/extras/xsl/oilsMARC21slim2HTML.xsl',
- 'AUDIO_GOOD_SOUND' : '/xul/server/skin/media/audio/bonus.wav',
- 'AUDIO_BAD_SOUND' : '/xul/server/skin/media/audio/question.wav',
- 'AUDIO_HORRIBLE_SOUND' : '/xul/server/skin/media/audio/redalert.wav',
- 'AUDIO_CIRC_GOOD_SOUND' : '/xul/server/skin/media/audio/toggled.wav',
- 'AUDIO_CIRC_BAD_SOUND' : '/xul/server/skin/media/audio/question.wav',
+ 'AUDIO_GOOD_SOUND' : '/xul/server/skin/media/audio/bonus.wav',
+ 'AUDIO_BAD_SOUND' : '/xul/server/skin/media/audio/question.wav',
+ 'AUDIO_HORRIBLE_SOUND' : '/xul/server/skin/media/audio/redalert.wav',
+ 'AUDIO_CIRC_GOOD_SOUND' : '/xul/server/skin/media/audio/toggled.wav',
+ 'AUDIO_CIRC_BAD_SOUND' : '/xul/server/skin/media/audio/question.wav',
- 'XUL_AUTH_SIMPLE' : '/xul/server/main/simple_auth.xul',
- 'XUL_BIB_BRIEF' : '/xul/server/cat/bib_brief.xul',
- 'XUL_BROWSER' : 'chrome://open_ils_staff_client/content/util/browser.xul',
- 'XUL_CHECKIN' : '/xul/server/circ/checkin.xul',
- 'XUL_CHECKOUT' : '/xul/server/circ/checkout.xul',
- 'XUL_CIRC_BRIEF' : '/xul/server/circ/circ_brief.xul',
- 'XUL_CIRC_SUMMARY' : '/xul/server/circ/circ_summary.xul',
- 'XUL_COPY_BUCKETS_QUICK' : '/xul/server/cat/copy_buckets_quick.xul',
- 'XUL_COPY_BUCKETS' : '/xul/server/cat/copy_buckets.xul',
- 'XUL_COPY_DETAILS' : '/xul/server/circ/copy_details.xul',
- 'XUL_COPY_EDITOR' : '/xul/server/cat/copy_editor.xul',
- 'XUL_COPY_LOCATION_EDIT' : '/xul/server/admin/copy_locations.xhtml',
- 'XUL_COPY_NOTES' : '/xul/server/cat/copy_notes.xul',
- 'XUL_COPY_STATUS' : '/xul/server/circ/copy_status.xul',
- 'XUL_COPY_SUMMARY' : '/xul/server/cat/copy_summary.xul',
- 'XUL_COPY_VOLUME_BROWSE' : '/xul/server/cat/copy_browser.xul',
- 'XUL_DEBUG_CONSOLE' : 'chrome://global/content/console.xul',
- 'XUL_DEBUG_FIELDMAPPER' : '/xul/server/util/fm_view.xul',
- 'XUL_DEBUG_FILTER_CONSOLE' : '/xul/server/util/filter_console.xul',
- 'XUL_DEBUG_SHELL' : '/xul/server/util/shell.html',
- 'XUL_DEBUG_XULEDITOR' : '/xul/server/util/xuledit.xul',
- 'XUL_FANCY_PROMPT' : '/xul/server/util/fancy_prompt.xul',
- 'XUL_HOLD_CAPTURE' : '/xul/server/circ/hold_capture.xul',
- 'XUL_HOLD_PULL_LIST' : '/xul/server/admin/hold_pull_list.xhtml',
- 'XUL_HOLDS_BROWSER' : '/xul/server/patron/holds.xul',
- 'XUL_HOLD_NOTICES' : '/xul/server/patron/hold_notices.xul',
- 'XUL_IN_HOUSE_USE' : '/xul/server/circ/in_house_use.xul',
- 'XUL_LIST_CLIPBOARD' : '/xul/server/util/list_clipboard.xul',
- 'XUL_LOCAL_ADMIN' : '/xul/server/admin/index.xhtml',
- 'XUL_MARC_NEW' : '/xul/server/cat/marc_new.xul',
- 'XUL_MARC_EDIT' : '/xul/server/cat/marcedit.xul',
- 'XUL_MARC_VIEW' : '/xul/server/cat/marc_view.xul',
- 'XUL_MENU_FRAME' : 'chrome://open_ils_staff_client/content/main/menu_frame.xul',
- 'XUL_NON_CAT_LABEL_EDIT' : '/xul/server/admin/non_cat_types.xhtml',
- 'XUL_OFFLINE_UPLOAD_XACTS' : '/xul/server/admin/upload_xacts.xhtml',
- 'XUL_OFFLINE_MANAGE_XACTS' : '/xul/server/admin/offline_manage_xacts.xul',
- 'XUL_OFFLINE_MANAGE_XACTS_CGI' : '/cgi-bin/offline/offline.pl',
- 'XUL_OFFLINE_GENERATE_WIDGETS' : '/xul/server/main/gen_offline_widgets.xul',
- 'XUL_REMOTE_OPAC_WRAPPER' : '/xul/server/cat/opac.xul',
- 'XUL_OPAC_WRAPPER' : 'chrome://open_ils_staff_client/content/cat/opac.xul',
- 'XUL_PATRON_BARCODE_ENTRY' : '/xul/server/patron/barcode_entry.xul',
- 'XUL_PATRON_BILLS' : '/xul/server/patron/bills.xul',
- 'XUL_PATRON_BILL_CC_INFO' : '/xul/server/patron/bill_cc_info.xul',
- 'XUL_PATRON_BILL_CHECK_INFO' : '/xul/server/patron/bill_check_info.xul',
- 'XUL_PATRON_BILL_DETAILS' : '/xul/server/patron/bill_details.xul',
- 'XUL_PATRON_BILL_HISTORY' : '/xul/server/patron/bill_history.xul',
- 'XUL_PATRON_BILL_WIZARD' : '/xul/server/patron/bill_wizard.xul',
- 'XUL_PATRON_DISPLAY' : '/xul/server/patron/display.xul',
- 'XUL_PATRON_HORIZ_DISPLAY' : '/xul/server/patron/display_horiz.xul',
- 'XUL_PATRON_EDIT' : '/xul/server/patron/ue.xhtml',
- 'XUL_USER_PERM_EDITOR' : '/xul/server/patron/user_edit.xhtml',
- 'XUL_PATRON_HOLDS' : '/xul/server/patron/holds.xul',
- 'XUL_PATRON_INFO_NOTES' : '/xul/server/patron/info_notes.xul',
- 'XUL_PATRON_INFO_STAT_CATS' : '/xul/server/patron/info_stat_cats.xul',
- 'XUL_PATRON_INFO_SURVEYS' : '/xul/server/patron/info_surveys.xul',
- 'XUL_PATRON_INFO_GROUP' : '/xul/server/patron/info_group.xul',
- 'XUL_PATRON_ITEMS' : '/xul/server/patron/items.xul',
- 'XUL_PATRON_SEARCH_FORM' : '/xul/server/patron/search_form.xul',
- 'XUL_PATRON_HORIZONTAL_SEARCH_FORM' : '/xul/server/patron/search_form_horiz.xul',
- 'XUL_PATRON_SEARCH_RESULT' : '/xul/server/patron/search_result.xul',
- 'XUL_PATRON_SUMMARY' : '/xul/server/patron/summary.xul',
- 'XUL_PRE_CAT' : '/xul/server/circ/pre_cat_fields.xul',
- 'XUL_PRINT_LIST_TEMPLATE_EDITOR' : '/xul/server/circ/print_list_template_editor.xul',
- 'XUL_RECORD_BUCKETS' : '/xul/server/cat/record_buckets.xul',
- 'XUL_RECORD_BUCKETS_QUICK' : '/xul/server/cat/record_buckets_quick.xul',
- 'XUL_REMOTE_BROWSER' : '/xul/server/util/rbrowser.xul',
- 'XUL_SPINE_LABEL' : '/xul/server/cat/spine_labels.xul',
- 'XUL_STANDALONE' : 'chrome://open_ils_staff_client/content/circ/offline.xul',
- 'XUL_STANDING_PENALTIES' : '/xul/server/patron/standing_penalties.xul',
- 'XUL_STAT_CAT_EDIT' : '/xul/server/admin/stat_cat_editor.xhtml',
- 'XUL_SURVEY_WIZARD' : 'chrome://open_ils_staff_client/content/admin/survey_wizard.xul',
- 'XUL_USER_BUCKETS' : '/xul/server/patron/user_buckets.xul',
- 'XUL_VERIFY_CREDENTIALS' : '/xul/server/main/verify_credentials.xul',
- 'XUL_VOLUME_BUCKETS' : '/xul/server/cat/volume_buckets.xul',
- 'XUL_VOLUME_COPY_CREATOR' : '/xul/server/cat/volume_copy_creator.xul',
- 'XUL_VOLUME_EDITOR' : '/xul/server/cat/volume_editor.xul',
- 'XUL_Z3950_IMPORT' : '/xul/server/cat/z3950.xul',
- 'TEST_HTML' : '/xul/server/main/test.html',
- 'TEST_XUL' : '/xul/server/main/test.xul',
+ 'XUL_AUTH_SIMPLE' : '/xul/server/main/simple_auth.xul',
+ 'XUL_BIB_BRIEF' : '/xul/server/cat/bib_brief.xul',
+ 'XUL_BROWSER' : 'chrome://open_ils_staff_client/content/util/browser.xul',
+ 'XUL_CHECKIN' : '/xul/server/circ/checkin.xul',
+ 'XUL_CHECKOUT' : '/xul/server/circ/checkout.xul',
+ 'XUL_CIRC_BRIEF' : '/xul/server/circ/circ_brief.xul',
+ 'XUL_CIRC_SUMMARY' : '/xul/server/circ/circ_summary.xul',
+ 'XUL_COPY_BUCKETS_QUICK' : '/xul/server/cat/copy_buckets_quick.xul',
+ 'XUL_COPY_BUCKETS' : '/xul/server/cat/copy_buckets.xul',
+ 'XUL_COPY_DETAILS' : '/xul/server/circ/copy_details.xul',
+ 'XUL_COPY_EDITOR' : '/xul/server/cat/copy_editor.xul',
+ 'XUL_COPY_LOCATION_EDIT' : '/xul/server/admin/copy_locations.xhtml',
+ 'XUL_COPY_NOTES' : '/xul/server/cat/copy_notes.xul',
+ 'XUL_COPY_STATUS' : '/xul/server/circ/copy_status.xul',
+ 'XUL_COPY_SUMMARY' : '/xul/server/cat/copy_summary.xul',
+ 'XUL_COPY_VOLUME_BROWSE' : '/xul/server/cat/copy_browser.xul',
+ 'XUL_DEBUG_CONSOLE' : 'chrome://global/content/console.xul',
+ 'XUL_DEBUG_FIELDMAPPER' : '/xul/server/util/fm_view.xul',
+ 'XUL_DEBUG_FILTER_CONSOLE' : '/xul/server/util/filter_console.xul',
+ 'XUL_DEBUG_SHELL' : '/xul/server/util/shell.html',
+ 'XUL_DEBUG_XULEDITOR' : '/xul/server/util/xuledit.xul',
+ 'XUL_FANCY_PROMPT' : '/xul/server/util/fancy_prompt.xul',
+ 'XUL_HOLD_CAPTURE' : '/xul/server/circ/hold_capture.xul',
+ 'XUL_HOLD_PULL_LIST' : '/xul/server/admin/hold_pull_list.xhtml',
+ 'XUL_HOLDS_BROWSER' : '/xul/server/patron/holds.xul',
+ 'XUL_HOLD_NOTICES' : '/xul/server/patron/hold_notices.xul',
+ 'XUL_IN_HOUSE_USE' : '/xul/server/circ/in_house_use.xul',
+ 'XUL_LIST_CLIPBOARD' : '/xul/server/util/list_clipboard.xul',
+ 'XUL_LOCAL_ADMIN' : '/xul/server/admin/index.xhtml',
+ 'XUL_MARC_NEW' : '/xul/server/cat/marc_new.xul',
+ 'XUL_MARC_EDIT' : '/xul/server/cat/marcedit.xul',
+ 'XUL_MARC_VIEW' : '/xul/server/cat/marc_view.xul',
+ 'XUL_MENU_FRAME' : 'chrome://open_ils_staff_client/content/main/menu_frame.xul',
+ 'XUL_NON_CAT_LABEL_EDIT' : '/xul/server/admin/non_cat_types.xhtml',
+ 'XUL_OFFLINE_UPLOAD_XACTS' : '/xul/server/admin/upload_xacts.xhtml',
+ 'XUL_OFFLINE_MANAGE_XACTS' : '/xul/server/admin/offline_manage_xacts.xul',
+ 'XUL_OFFLINE_MANAGE_XACTS_CGI' : '/cgi-bin/offline/offline.pl',
+ 'XUL_OFFLINE_GENERATE_WIDGETS' : '/xul/server/main/gen_offline_widgets.xul',
+ 'XUL_REMOTE_OPAC_WRAPPER' : '/xul/server/cat/opac.xul',
+ 'XUL_OPAC_WRAPPER' : 'chrome://open_ils_staff_client/content/cat/opac.xul',
+ 'XUL_PATRON_BARCODE_ENTRY' : '/xul/server/patron/barcode_entry.xul',
+ 'XUL_PATRON_BILLS' : '/xul/server/patron/bills.xul',
+ 'XUL_PATRON_BILL_CC_INFO' : '/xul/server/patron/bill_cc_info.xul',
+ 'XUL_PATRON_BILL_CHECK_INFO' : '/xul/server/patron/bill_check_info.xul',
+ 'XUL_PATRON_BILL_DETAILS' : '/xul/server/patron/bill_details.xul',
+ 'XUL_PATRON_BILL_HISTORY' : '/xul/server/patron/bill_history.xul',
+ 'XUL_PATRON_BILL_WIZARD' : '/xul/server/patron/bill_wizard.xul',
+ 'XUL_PATRON_DISPLAY' : '/xul/server/patron/display.xul',
+ 'XUL_PATRON_HORIZ_DISPLAY' : '/xul/server/patron/display_horiz.xul',
+ 'XUL_PATRON_EDIT' : '/xul/server/patron/ue.xhtml',
+ 'XUL_USER_PERM_EDITOR' : '/xul/server/patron/user_edit.xhtml',
+ 'XUL_PATRON_HOLDS' : '/xul/server/patron/holds.xul',
+ 'XUL_PATRON_INFO_NOTES' : '/xul/server/patron/info_notes.xul',
+ 'XUL_PATRON_INFO_STAT_CATS' : '/xul/server/patron/info_stat_cats.xul',
+ 'XUL_PATRON_INFO_SURVEYS' : '/xul/server/patron/info_surveys.xul',
+ 'XUL_PATRON_INFO_GROUP' : '/xul/server/patron/info_group.xul',
+ 'XUL_PATRON_ITEMS' : '/xul/server/patron/items.xul',
+ 'XUL_PATRON_SEARCH_FORM' : '/xul/server/patron/search_form.xul',
+ 'XUL_PATRON_HORIZONTAL_SEARCH_FORM' : '/xul/server/patron/search_form_horiz.xul',
+ 'XUL_PATRON_SEARCH_RESULT' : '/xul/server/patron/search_result.xul',
+ 'XUL_PATRON_SUMMARY' : '/xul/server/patron/summary.xul',
+ 'XUL_PRE_CAT' : '/xul/server/circ/pre_cat_fields.xul',
+ 'XUL_PRINT_LIST_TEMPLATE_EDITOR' : '/xul/server/circ/print_list_template_editor.xul',
+ 'XUL_RECORD_BUCKETS' : '/xul/server/cat/record_buckets.xul',
+ 'XUL_RECORD_BUCKETS_QUICK' : '/xul/server/cat/record_buckets_quick.xul',
+ 'XUL_REMOTE_BROWSER' : '/xul/server/util/rbrowser.xul',
+ 'XUL_SPINE_LABEL' : '/xul/server/cat/spine_labels.xul',
+ 'XUL_STANDALONE' : 'chrome://open_ils_staff_client/content/circ/offline.xul',
+ 'XUL_STANDING_PENALTIES' : '/xul/server/patron/standing_penalties.xul',
+ 'XUL_STAT_CAT_EDIT' : '/xul/server/admin/stat_cat_editor.xhtml',
+ 'XUL_SURVEY_WIZARD' : 'chrome://open_ils_staff_client/content/admin/survey_wizard.xul',
+ 'XUL_USER_BUCKETS' : '/xul/server/patron/user_buckets.xul',
+ 'XUL_VERIFY_CREDENTIALS' : '/xul/server/main/verify_credentials.xul',
+ 'XUL_VOLUME_BUCKETS' : '/xul/server/cat/volume_buckets.xul',
+ 'XUL_VOLUME_COPY_CREATOR' : '/xul/server/cat/volume_copy_creator.xul',
+ 'XUL_VOLUME_EDITOR' : '/xul/server/cat/volume_editor.xul',
+ 'XUL_Z3950_IMPORT' : '/xul/server/cat/z3950.xul',
+ 'TEST_HTML' : '/xul/server/main/test.html',
+ 'TEST_XUL' : '/xul/server/main/test.xul',
'CONIFY' : '/conify/' + LOCALE + '/global',
'EG_WEB_BASE' : '/eg',
'XUL_LOCAL_ADMIN_BASE' : '/xul/server/admin',
diff --git a/Open-ILS/xul/staff_client/chrome/content/main/main.js b/Open-ILS/xul/staff_client/chrome/content/main/main.js
index cb992f4bba..27ef91dedd 100644
--- a/Open-ILS/xul/staff_client/chrome/content/main/main.js
+++ b/Open-ILS/xul/staff_client/chrome/content/main/main.js
@@ -6,34 +6,34 @@ var offlineStrings;
var authStrings;
function grant_perms(url) {
- var perms = "UniversalXPConnect UniversalPreferencesWrite UniversalBrowserWrite UniversalPreferencesRead UniversalBrowserRead UniversalFileRead";
- dump('Granting ' + perms + ' to ' + url + '\n');
- if (G.pref) {
- G.pref.setCharPref("capability.principal.codebase.p0.granted", perms);
- G.pref.setCharPref("capability.principal.codebase.p0.id", url);
- G.pref.setCharPref("capability.principal.codebase.p1.granted", perms);
- G.pref.setCharPref("capability.principal.codebase.p1.id", url.replace('http:','https:'));
- G.pref.setBoolPref("dom.disable_open_during_load",false);
- G.pref.setBoolPref("browser.popups.showPopupBlocker",false);
- }
+ var perms = "UniversalXPConnect UniversalPreferencesWrite UniversalBrowserWrite UniversalPreferencesRead UniversalBrowserRead UniversalFileRead";
+ dump('Granting ' + perms + ' to ' + url + '\n');
+ if (G.pref) {
+ G.pref.setCharPref("capability.principal.codebase.p0.granted", perms);
+ G.pref.setCharPref("capability.principal.codebase.p0.id", url);
+ G.pref.setCharPref("capability.principal.codebase.p1.granted", perms);
+ G.pref.setCharPref("capability.principal.codebase.p1.id", url.replace('http:','https:'));
+ G.pref.setBoolPref("dom.disable_open_during_load",false);
+ G.pref.setBoolPref("browser.popups.showPopupBlocker",false);
+ }
}
function clear_the_cache() {
- try {
- var cacheClass = Components.classes["@mozilla.org/network/cache-service;1"];
- var cacheService = cacheClass.getService(Components.interfaces.nsICacheService);
- cacheService.evictEntries(Components.interfaces.nsICache.STORE_ON_DISK);
- cacheService.evictEntries(Components.interfaces.nsICache.STORE_IN_MEMORY);
- } catch(E) {
- dump(E+'\n');alert(E);
- }
+ try {
+ var cacheClass = Components.classes["@mozilla.org/network/cache-service;1"];
+ var cacheService = cacheClass.getService(Components.interfaces.nsICacheService);
+ cacheService.evictEntries(Components.interfaces.nsICache.STORE_ON_DISK);
+ cacheService.evictEntries(Components.interfaces.nsICache.STORE_IN_MEMORY);
+ } catch(E) {
+ dump(E+'\n');alert(E);
+ }
}
function toOpenWindowByType(inType, uri) { /* for Venkman */
try {
- var winopts = "chrome,extrachrome,menubar,resizable,scrollbars,status,toolbar";
- window.open(uri, "_blank", winopts);
+ var winopts = "chrome,extrachrome,menubar,resizable,scrollbars,status,toolbar";
+ window.open(uri, "_blank", winopts);
} catch(E) {
alert(E); throw(E);
}
@@ -72,66 +72,66 @@ function start_js_shell() {
};
function main_init() {
- dump('entering main_init()\n');
- try {
- clear_the_cache();
+ dump('entering main_init()\n');
+ try {
+ clear_the_cache();
- // Now we can safely load the strings without the cache getting wiped
- offlineStrings = document.getElementById('offlineStrings');
- authStrings = document.getElementById('authStrings');
+ // Now we can safely load the strings without the cache getting wiped
+ offlineStrings = document.getElementById('offlineStrings');
+ authStrings = document.getElementById('authStrings');
- if (typeof JSAN == 'undefined') {
- throw(
- offlineStrings.getString('common.jsan.missing')
- );
- }
- /////////////////////////////////////////////////////////////////////////////
+ if (typeof JSAN == 'undefined') {
+ throw(
+ offlineStrings.getString('common.jsan.missing')
+ );
+ }
+ /////////////////////////////////////////////////////////////////////////////
- JSAN.errorLevel = "die"; // none, warn, or die
- JSAN.addRepository('..');
+ JSAN.errorLevel = "die"; // none, warn, or die
+ JSAN.addRepository('..');
- //JSAN.use('test.test'); test.test.hello_world();
+ //JSAN.use('test.test'); test.test.hello_world();
- var mw = self;
- G = {};
+ var mw = self;
+ G = {};
- G.pref = Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefBranch);
+ G.pref = Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefBranch);
- JSAN.use('util.error');
- G.error = new util.error();
- G.error.sdump('D_ERROR', offlineStrings.getString('main.testing'));
+ JSAN.use('util.error');
+ G.error = new util.error();
+ G.error.sdump('D_ERROR', offlineStrings.getString('main.testing'));
- JSAN.use('util.window');
- G.window = new util.window();
+ JSAN.use('util.window');
+ G.window = new util.window();
- JSAN.use('auth.controller');
- G.auth = new auth.controller( { 'window' : mw } );
+ JSAN.use('auth.controller');
+ G.auth = new auth.controller( { 'window' : mw } );
- JSAN.use('OpenILS.data');
- G.data = new OpenILS.data();
- G.data.on_error = G.auth.logoff;
+ JSAN.use('OpenILS.data');
+ G.data = new OpenILS.data();
+ G.data.on_error = G.auth.logoff;
- JSAN.use('util.file');
- G.file = new util.file();
- try {
- G.file.get('ws_info');
- G.ws_info = G.file.get_object(); G.file.close();
- } catch(E) {
- G.ws_info = {};
- }
- G.data.ws_info = G.ws_info; G.data.stash('ws_info');
+ JSAN.use('util.file');
+ G.file = new util.file();
+ try {
+ G.file.get('ws_info');
+ G.ws_info = G.file.get_object(); G.file.close();
+ } catch(E) {
+ G.ws_info = {};
+ }
+ G.data.ws_info = G.ws_info; G.data.stash('ws_info');
- G.auth.on_login = function() {
+ G.auth.on_login = function() {
- var url = G.auth.controller.view.server_prompt.value || urls.remote;
+ var url = G.auth.controller.view.server_prompt.value || urls.remote;
- G.data.server_unadorned = url; G.data.stash('server_unadorned'); G.data.stash_retrieve();
+ G.data.server_unadorned = url; G.data.stash('server_unadorned'); G.data.stash_retrieve();
- if (! url.match( '^http://' ) ) { url = 'http://' + url; }
+ if (! url.match( '^http://' ) ) { url = 'http://' + url; }
- G.data.server = url; G.data.stash('server');
- G.data.session = { 'key' : G.auth.session.key, 'auth' : G.auth.session.authtime }; G.data.stash('session');
- G.data.stash_retrieve();
+ G.data.server = url; G.data.stash('server');
+ G.data.session = { 'key' : G.auth.session.key, 'auth' : G.auth.session.authtime }; G.data.stash('session');
+ G.data.stash_retrieve();
try {
var ios = Components.classes["@mozilla.org/network/io-service;1"].getService(Components.interfaces.nsIIOService);
var cookieUri = ios.newURI("http://" + G.data.server_unadorned, null, null);
@@ -147,199 +147,199 @@ function main_init() {
alert(offlineStrings.getFormattedString(main.session_cookie.error, [E]));
}
- grant_perms(url);
+ grant_perms(url);
- xulG = {
- 'auth' : G.auth,
- 'url' : url,
- 'window' : G.window,
+ xulG = {
+ 'auth' : G.auth,
+ 'url' : url,
+ 'window' : G.window,
'data' : G.data,
- 'pref' : G.pref
- };
-
- if (G.data.ws_info && G.data.ws_info[G.auth.controller.view.server_prompt.value]) {
- JSAN.use('util.widgets');
- var deck = document.getElementById('progress_space');
- util.widgets.remove_children( deck );
- var iframe = document.createElement('iframe'); deck.appendChild(iframe);
- iframe.setAttribute( 'src', url + '/xul/server/main/data.xul' );
- iframe.contentWindow.xulG = xulG;
+ 'pref' : G.pref
+ };
+
+ if (G.data.ws_info && G.data.ws_info[G.auth.controller.view.server_prompt.value]) {
+ JSAN.use('util.widgets');
+ var deck = document.getElementById('progress_space');
+ util.widgets.remove_children( deck );
+ var iframe = document.createElement('iframe'); deck.appendChild(iframe);
+ iframe.setAttribute( 'src', url + '/xul/server/main/data.xul' );
+ iframe.contentWindow.xulG = xulG;
G.data_xul = iframe.contentWindow;
- } else {
- xulG.file = G.file;
- var deck = G.auth.controller.view.ws_deck;
- JSAN.use('util.widgets'); util.widgets.remove_children('ws_deck');
- var iframe = document.createElement('iframe'); deck.appendChild(iframe);
- iframe.setAttribute( 'src', url + '/xul/server/main/ws_info.xul' );
- iframe.contentWindow.xulG = xulG;
- deck.selectedIndex = deck.childNodes.length - 1;
- }
- };
-
- G.auth.on_standalone = function() {
- try {
- G.window.open(urls.XUL_STANDALONE,'Offline','chrome,resizable');
- } catch(E) {
- alert(E);
- }
- };
-
- G.auth.on_standalone_export = function() {
- try {
- JSAN.use('util.file'); var file = new util.file('pending_xacts');
- if (file._file.exists()) {
+ } else {
+ xulG.file = G.file;
+ var deck = G.auth.controller.view.ws_deck;
+ JSAN.use('util.widgets'); util.widgets.remove_children('ws_deck');
+ var iframe = document.createElement('iframe'); deck.appendChild(iframe);
+ iframe.setAttribute( 'src', url + '/xul/server/main/ws_info.xul' );
+ iframe.contentWindow.xulG = xulG;
+ deck.selectedIndex = deck.childNodes.length - 1;
+ }
+ };
+
+ G.auth.on_standalone = function() {
+ try {
+ G.window.open(urls.XUL_STANDALONE,'Offline','chrome,resizable');
+ } catch(E) {
+ alert(E);
+ }
+ };
+
+ G.auth.on_standalone_export = function() {
+ try {
+ JSAN.use('util.file'); var file = new util.file('pending_xacts');
+ if (file._file.exists()) {
var file2 = new util.file('');
- var f = file2.pick_file( { 'mode' : 'save', 'title' : offlineStrings.getString('main.transaction_export.title') } );
- if (f) {
- if (f.exists()) {
- var r = G.error.yns_alert(
- offlineStrings.getFormattedString('main.transaction_export.prompt', [f.leafName]),
- offlineStrings.getString('main.transaction_export.prompt.title'),
- offlineStrings.getString('common.yes'),
- offlineStrings.getString('common.no'),
- null,
- offlineStrings.getString('common.confirm')
- );
- if (r != 0) { file.close(); return; }
- }
- var e_file = new util.file(''); e_file._file = f;
- e_file.write_content( 'truncate', file.get_content() );
- e_file.close();
- var r = G.error.yns_alert(
- offlineStrings.getFormattedString('main.transaction_export.success.prompt', [f.leafName]),
- offlineStrings.getString('main.transaction_export.success.title'),
- offlineStrings.getString('common.yes'),
- offlineStrings.getString('common.no'),
- null,
- offlineStrings.getString('common.confirm')
- );
- if (r == 0) {
- var count = 0;
- var filename = 'pending_xacts_exported_' + new Date().getTime();
- var t_file = new util.file(filename);
- while (t_file._file.exists()) {
- filename = 'pending_xacts_' + new Date().getTime() + '.exported';
- t_file = new util.file(filename);
- if (count++ > 100) {
- throw(offlineStrings.getString('main.transaction_export.filename.error'));
- }
- }
- file._file.moveTo(null,filename);
- } else {
- alert(offlineStrings.getString('main.transaction_export.duplicate.warning'));
- }
- } else {
- alert(offlineStrings.getString('main.transaction_export.no_filename.error'));
- }
- } else {
- alert(offlineStrings.getString('main.transaction_export.no_transactions.error'));
- }
- file.close();
- } catch(E) {
- alert(E);
- }
- };
-
- G.auth.on_standalone_import = function() {
- try {
- JSAN.use('util.file'); var file = new util.file('pending_xacts');
- if (file._file.exists()) {
- alert(offlineStrings.getString('main.transaction_import.outstanding.error'));
- } else {
+ var f = file2.pick_file( { 'mode' : 'save', 'title' : offlineStrings.getString('main.transaction_export.title') } );
+ if (f) {
+ if (f.exists()) {
+ var r = G.error.yns_alert(
+ offlineStrings.getFormattedString('main.transaction_export.prompt', [f.leafName]),
+ offlineStrings.getString('main.transaction_export.prompt.title'),
+ offlineStrings.getString('common.yes'),
+ offlineStrings.getString('common.no'),
+ null,
+ offlineStrings.getString('common.confirm')
+ );
+ if (r != 0) { file.close(); return; }
+ }
+ var e_file = new util.file(''); e_file._file = f;
+ e_file.write_content( 'truncate', file.get_content() );
+ e_file.close();
+ var r = G.error.yns_alert(
+ offlineStrings.getFormattedString('main.transaction_export.success.prompt', [f.leafName]),
+ offlineStrings.getString('main.transaction_export.success.title'),
+ offlineStrings.getString('common.yes'),
+ offlineStrings.getString('common.no'),
+ null,
+ offlineStrings.getString('common.confirm')
+ );
+ if (r == 0) {
+ var count = 0;
+ var filename = 'pending_xacts_exported_' + new Date().getTime();
+ var t_file = new util.file(filename);
+ while (t_file._file.exists()) {
+ filename = 'pending_xacts_' + new Date().getTime() + '.exported';
+ t_file = new util.file(filename);
+ if (count++ > 100) {
+ throw(offlineStrings.getString('main.transaction_export.filename.error'));
+ }
+ }
+ file._file.moveTo(null,filename);
+ } else {
+ alert(offlineStrings.getString('main.transaction_export.duplicate.warning'));
+ }
+ } else {
+ alert(offlineStrings.getString('main.transaction_export.no_filename.error'));
+ }
+ } else {
+ alert(offlineStrings.getString('main.transaction_export.no_transactions.error'));
+ }
+ file.close();
+ } catch(E) {
+ alert(E);
+ }
+ };
+
+ G.auth.on_standalone_import = function() {
+ try {
+ JSAN.use('util.file'); var file = new util.file('pending_xacts');
+ if (file._file.exists()) {
+ alert(offlineStrings.getString('main.transaction_import.outstanding.error'));
+ } else {
var file2 = new util.file('');
- var f = file2.pick_file( { 'mode' : 'open', 'title' : offlineStrings.getString('main.transaction_import.title')} );
- if (f && f.exists()) {
- var i_file = new util.file(''); i_file._file = f;
- file.write_content( 'truncate', i_file.get_content() );
- i_file.close();
- var r = G.error.yns_alert(
- offlineStrings.getFormattedString('main.transaction_import.delete.prompt', [f.leafName]),
- offlineStrings.getString('main.transaction_import.success'),
- offlineStrings.getString('common.yes'),
- offlineStrings.getString('common.no'),
- null,
- offlineStrings.getString('common.confirm')
- );
- if (r == 0) {
- f.remove(false);
- }
- }
- }
- file.close();
- } catch(E) {
- alert(E);
- }
- };
-
- G.auth.on_debug = function(action) {
- switch(action) {
- case 'js_console' :
- G.window.open(urls.XUL_DEBUG_CONSOLE,'testconsole','chrome,resizable');
- break;
- case 'clear_cache' :
- clear_the_cache();
- alert(offlineStrings.getString('main.on_debug.clear_cache'));
- break;
- default:
- alert(offlineStrings.getString('main.on_debug.debug'));
- break;
- }
- };
-
- G.auth.init();
- // XML_HTTP_SERVER will get reset to G.auth.controller.view.server_prompt.value
-
- /////////////////////////////////////////////////////////////////////////////
-
- var version = '/xul/server/'.split(/\//)[2];
- if (version == 'server') {
- version = 'versionless debug build';
- document.getElementById('debug_gb').hidden = false;
- }
+ var f = file2.pick_file( { 'mode' : 'open', 'title' : offlineStrings.getString('main.transaction_import.title')} );
+ if (f && f.exists()) {
+ var i_file = new util.file(''); i_file._file = f;
+ file.write_content( 'truncate', i_file.get_content() );
+ i_file.close();
+ var r = G.error.yns_alert(
+ offlineStrings.getFormattedString('main.transaction_import.delete.prompt', [f.leafName]),
+ offlineStrings.getString('main.transaction_import.success'),
+ offlineStrings.getString('common.yes'),
+ offlineStrings.getString('common.no'),
+ null,
+ offlineStrings.getString('common.confirm')
+ );
+ if (r == 0) {
+ f.remove(false);
+ }
+ }
+ }
+ file.close();
+ } catch(E) {
+ alert(E);
+ }
+ };
+
+ G.auth.on_debug = function(action) {
+ switch(action) {
+ case 'js_console' :
+ G.window.open(urls.XUL_DEBUG_CONSOLE,'testconsole','chrome,resizable');
+ break;
+ case 'clear_cache' :
+ clear_the_cache();
+ alert(offlineStrings.getString('main.on_debug.clear_cache'));
+ break;
+ default:
+ alert(offlineStrings.getString('main.on_debug.debug'));
+ break;
+ }
+ };
+
+ G.auth.init();
+ // XML_HTTP_SERVER will get reset to G.auth.controller.view.server_prompt.value
+
+ /////////////////////////////////////////////////////////////////////////////
+
+ var version = '/xul/server/'.split(/\//)[2];
+ if (version == 'server') {
+ version = 'versionless debug build';
+ document.getElementById('debug_gb').hidden = false;
+ }
if (G.pref && G.pref.getBoolPref('open-ils.debug_options')) {
- document.getElementById('debug_gb').hidden = false;
+ document.getElementById('debug_gb').hidden = false;
}
window.title = authStrings.getFormattedString('staff.auth.titlebar.label', version);
- var x = document.getElementById('about_btn');
- x.addEventListener(
- 'command',
- function() {
- try {
- G.window.open('about.html','about','chrome,resizable,width=800,height=600');
- } catch(E) { alert(E); }
- },
- false
- );
-
- var y = document.getElementById('new_window_btn');
- y.addEventListener(
- 'command',
- function() {
- if (G.data.session) {
- try {
- //G.data_xul.g.open_menu();
+ var x = document.getElementById('about_btn');
+ x.addEventListener(
+ 'command',
+ function() {
+ try {
+ G.window.open('about.html','about','chrome,resizable,width=800,height=600');
+ } catch(E) { alert(E); }
+ },
+ false
+ );
+
+ var y = document.getElementById('new_window_btn');
+ y.addEventListener(
+ 'command',
+ function() {
+ if (G.data.session) {
+ try {
+ //G.data_xul.g.open_menu();
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
var mframe = xulG.window.open(( String(urls.XUL_MENU_FRAME).match(/^chrome:/) ? '' : G.data.server ) + urls.XUL_MENU_FRAME
+ '?server='+window.escape(G.data.server),
'main'+xulG.window.window_name_increment(),'chrome,resizable'
);
mframe.xulG = xulG;
- } catch(E) { alert(E); }
- } else {
- alert ( offlineStrings.getString('main.new_window_btn.login_first_warning') );
- }
- },
- false
- );
-
- JSAN.use('util.mozilla');
- var z = document.getElementById('locale_menupopup');
- if (z) {
- while (z.lastChild) z.removeChild(z.lastChild);
- var locales = util.mozilla.chromeRegistry().getLocalesForPackage( String( location.href ).split(/\//)[2] );
- var current_locale = util.mozilla.prefs().getCharPref('general.useragent.locale');
+ } catch(E) { alert(E); }
+ } else {
+ alert ( offlineStrings.getString('main.new_window_btn.login_first_warning') );
+ }
+ },
+ false
+ );
+
+ JSAN.use('util.mozilla');
+ var z = document.getElementById('locale_menupopup');
+ if (z) {
+ while (z.lastChild) z.removeChild(z.lastChild);
+ var locales = util.mozilla.chromeRegistry().getLocalesForPackage( String( location.href ).split(/\//)[2] );
+ var current_locale = util.mozilla.prefs().getCharPref('general.useragent.locale');
while (locales.hasMore()) {
var locale = locales.getNext();
var parts = locale.split(/-/);
@@ -356,9 +356,9 @@ function main_init() {
} catch(E) {
label = locale;
}
- var mi = document.createElement('menuitem');
- mi.setAttribute('label',label);
- mi.setAttribute('value',locale);
+ var mi = document.createElement('menuitem');
+ mi.setAttribute('label',label);
+ mi.setAttribute('value',locale);
if (locale == current_locale) {
if (z.parentNode.tagName == 'menulist') {
mi.setAttribute('selected','true');
@@ -368,82 +368,82 @@ function main_init() {
}
z.appendChild( mi );
}
- }
- var xx = document.getElementById('apply_locale_btn');
- xx.addEventListener(
- 'command',
- function() {
- util.mozilla.change_locale(z.parentNode.value);
- },
- false
- );
-
- if ( found_ws_info_in_Achrome() && G.pref && G.pref.getBoolPref("open-ils.write_in_user_chrome_directory") ) {
- //var hbox = x.parentNode; var b = document.createElement('button');
- //b.setAttribute('label','Migrate legacy settings'); hbox.appendChild(b);
- //b.addEventListener(
- // 'command',
- // function() {
- // try {
- // handle_migration();
- // } catch(E) { alert(E); }
- // },
- // false
- //);
- if (window.confirm(offlineStrings.getString('main.settings.migrate'))) {
- setTimeout( function() { handle_migration(); }, 0 );
- }
- }
-
- } catch(E) {
- var error = offlineStrings.getFormattedString('common.exception', [E, '']);
- try { G.error.sdump('D_ERROR',error); } catch(E) { dump(error); }
- alert(error);
- }
- dump('exiting main_init()\n');
+ }
+ var xx = document.getElementById('apply_locale_btn');
+ xx.addEventListener(
+ 'command',
+ function() {
+ util.mozilla.change_locale(z.parentNode.value);
+ },
+ false
+ );
+
+ if ( found_ws_info_in_Achrome() && G.pref && G.pref.getBoolPref("open-ils.write_in_user_chrome_directory") ) {
+ //var hbox = x.parentNode; var b = document.createElement('button');
+ //b.setAttribute('label','Migrate legacy settings'); hbox.appendChild(b);
+ //b.addEventListener(
+ // 'command',
+ // function() {
+ // try {
+ // handle_migration();
+ // } catch(E) { alert(E); }
+ // },
+ // false
+ //);
+ if (window.confirm(offlineStrings.getString('main.settings.migrate'))) {
+ setTimeout( function() { handle_migration(); }, 0 );
+ }
+ }
+
+ } catch(E) {
+ var error = offlineStrings.getFormattedString('common.exception', [E, '']);
+ try { G.error.sdump('D_ERROR',error); } catch(E) { dump(error); }
+ alert(error);
+ }
+ dump('exiting main_init()\n');
}
function found_ws_info_in_Achrome() {
- JSAN.use('util.file');
- var f = new util.file();
- var f_in_chrome = f.get('ws_info','chrome');
- var path = f_in_chrome.exists() ? f_in_chrome.path : false;
- f.close();
- return path;
+ JSAN.use('util.file');
+ var f = new util.file();
+ var f_in_chrome = f.get('ws_info','chrome');
+ var path = f_in_chrome.exists() ? f_in_chrome.path : false;
+ f.close();
+ return path;
}
function found_ws_info_in_Uchrome() {
- JSAN.use('util.file');
- var f = new util.file();
- var f_in_uchrome = f.get('ws_info','uchrome');
- var path = f_in_uchrome.exists() ? f_in_uchrome.path : false;
- f.close();
- return path;
+ JSAN.use('util.file');
+ var f = new util.file();
+ var f_in_uchrome = f.get('ws_info','uchrome');
+ var path = f_in_uchrome.exists() ? f_in_uchrome.path : false;
+ f.close();
+ return path;
}
function handle_migration() {
- if ( found_ws_info_in_Uchrome() ) {
- alert(offlineStrings.getFormattedString('main.settings.migrate.failed', [found_ws_info_in_Uchrome(), found_ws_info_in_Achrome()])
- );
- } else {
- var dirService = Components.classes["@mozilla.org/file/directory_service;1"].getService( Components.interfaces.nsIProperties );
- var f_new = dirService.get( "UChrm", Components.interfaces.nsIFile );
- var f_old = dirService.get( "AChrom", Components.interfaces.nsIFile );
- f_old.append(myPackageDir); f_old.append("content"); f_old.append("conf");
- if (window.confirm(offlineStrings.getFormattedString("main.settings.migrate.confirm", [f_old.path, f_new.path]))) {
- var files = f_old.directoryEntries;
- while (files.hasMoreElements()) {
- var file = files.getNext();
- var file2 = file.QueryInterface( Components.interfaces.nsILocalFile );
- try {
- file2.moveTo( f_new, '' );
- } catch(E) {
- alert(offlineStrings.getFormattedString('main.settings.migrate.error', [file2.path, f_new.path]) + '\n');
- }
- }
- location.href = location.href; // huh?
- }
- }
+ if ( found_ws_info_in_Uchrome() ) {
+ alert(offlineStrings.getFormattedString('main.settings.migrate.failed', [found_ws_info_in_Uchrome(), found_ws_info_in_Achrome()])
+ );
+ } else {
+ var dirService = Components.classes["@mozilla.org/file/directory_service;1"].getService( Components.interfaces.nsIProperties );
+ var f_new = dirService.get( "UChrm", Components.interfaces.nsIFile );
+ var f_old = dirService.get( "AChrom", Components.interfaces.nsIFile );
+ f_old.append(myPackageDir); f_old.append("content"); f_old.append("conf");
+ if (window.confirm(offlineStrings.getFormattedString("main.settings.migrate.confirm", [f_old.path, f_new.path]))) {
+ var files = f_old.directoryEntries;
+ while (files.hasMoreElements()) {
+ var file = files.getNext();
+ var file2 = file.QueryInterface( Components.interfaces.nsILocalFile );
+ try {
+ file2.moveTo( f_new, '' );
+ } catch(E) {
+ alert(offlineStrings.getFormattedString('main.settings.migrate.error', [file2.path, f_new.path]) + '\n');
+ }
+ }
+ location.href = location.href; // huh?
+ }
+ }
}
dump('exiting main/main.js\n');
diff --git a/Open-ILS/xul/staff_client/chrome/content/main/main.xul b/Open-ILS/xul/staff_client/chrome/content/main/main.xul
index c7f0ea367d..2e5428154a 100644
--- a/Open-ILS/xul/staff_client/chrome/content/main/main.xul
+++ b/Open-ILS/xul/staff_client/chrome/content/main/main.xul
@@ -19,170 +19,170 @@
-->
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+ onload="try { main_init(); } catch(E) { alert(E); }"
+ onunload="try { G.auth.logoff(); } catch(E) { alert(E); }"
+ title="&staff.auth.title;"
+ width="640" height="480"
+ xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
+
+
+
-
-
+
+
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
-
-
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
+
+
+
+
+
+
@@ -193,10 +193,10 @@
-
+
-
-
+
+
diff --git a/Open-ILS/xul/staff_client/chrome/content/main/menu.js b/Open-ILS/xul/staff_client/chrome/content/main/menu.js
index 4663f32726..d59c3169f5 100644
--- a/Open-ILS/xul/staff_client/chrome/content/main/menu.js
+++ b/Open-ILS/xul/staff_client/chrome/content/main/menu.js
@@ -8,10 +8,10 @@ main.menu = function () {
netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
offlineStrings = document.getElementById('offlineStrings');
- JSAN.use('util.error'); this.error = new util.error();
- JSAN.use('util.window'); this.window = new util.window();
+ JSAN.use('util.error'); this.error = new util.error();
+ JSAN.use('util.window'); this.window = new util.window();
- this.w = window;
+ this.w = window;
var x = document.getElementById('network_progress');
x.setAttribute('count','0');
x.addEventListener(
@@ -27,32 +27,32 @@ main.menu = function () {
false
);
- if (xulG.pref.getBoolPref('open-ils.disable_accesskeys_on_tabs')) {
- var tabs = document.getElementById('main_tabs');
- for (var i = 0; i < tabs.childNodes.length; i++) {
- tabs.childNodes[i].setAttribute('accesskey','');
- }
- }
+ if (xulG.pref.getBoolPref('open-ils.disable_accesskeys_on_tabs')) {
+ var tabs = document.getElementById('main_tabs');
+ for (var i = 0; i < tabs.childNodes.length; i++) {
+ tabs.childNodes[i].setAttribute('accesskey','');
+ }
+ }
}
main.menu.prototype = {
- 'id_incr' : 0,
+ 'id_incr' : 0,
- 'url_prefix' : function(url) {
- if (url.match(/^\//)) url = urls.remote + url;
- if (! url.match(/^(http|chrome):\/\//) && ! url.match(/^data:/) ) url = 'http://' + url;
- dump('url_prefix = ' + url + '\n');
- return url;
- },
+ 'url_prefix' : function(url) {
+ if (url.match(/^\//)) url = urls.remote + url;
+ if (! url.match(/^(http|chrome):\/\//) && ! url.match(/^data:/) ) url = 'http://' + url;
+ dump('url_prefix = ' + url + '\n');
+ return url;
+ },
- 'init' : function( params ) {
+ 'init' : function( params ) {
- urls.remote = params['server'];
+ urls.remote = params['server'];
- var obj = this;
+ var obj = this;
- JSAN.use('OpenILS.data'); obj.data = new OpenILS.data(); obj.data.init({'via':'stash'});
+ JSAN.use('OpenILS.data'); obj.data = new OpenILS.data(); obj.data.init({'via':'stash'});
var button_bar = String( obj.data.hash.aous['ui.general.button_bar'] ) == 'true';
if (button_bar) {
@@ -117,126 +117,126 @@ main.menu.prototype = {
}
- var cmd_map = {
- 'cmd_broken' : [
- ['oncommand'],
- function() { alert(offlineStrings.getString('common.unimplemented')); }
- ],
-
- /* File Menu */
- 'cmd_close_window' : [
- ['oncommand'],
- function() { window.close(); }
- ],
- 'cmd_new_window' : [
- ['oncommand'],
- function() {
- obj.data.stash_retrieve();
- var mframe = obj.window.open(
- obj.url_prefix(urls.XUL_MENU_FRAME)
- + '?server='+window.escape(urls.remote),
- 'main' + obj.window.window_name_increment(),
- 'chrome,resizable');
+ var cmd_map = {
+ 'cmd_broken' : [
+ ['oncommand'],
+ function() { alert(offlineStrings.getString('common.unimplemented')); }
+ ],
+
+ /* File Menu */
+ 'cmd_close_window' : [
+ ['oncommand'],
+ function() { window.close(); }
+ ],
+ 'cmd_new_window' : [
+ ['oncommand'],
+ function() {
+ obj.data.stash_retrieve();
+ var mframe = obj.window.open(
+ obj.url_prefix(urls.XUL_MENU_FRAME)
+ + '?server='+window.escape(urls.remote),
+ 'main' + obj.window.window_name_increment(),
+ 'chrome,resizable');
netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
mframe.xulG = xulG;
- }
- ],
- 'cmd_new_tab' : [
- ['oncommand'],
- function() { obj.new_tab(null,{'focus':true},null); }
- ],
- 'cmd_close_tab' : [
- ['oncommand'],
- function() { obj.close_tab(); }
- ],
- 'cmd_close_all_tabs' : [
- ['oncommand'],
- function() { obj.close_all_tabs(); }
- ],
-
- /* Edit Menu */
- 'cmd_edit_copy_buckets' : [
- ['oncommand'],
- function() {
- obj.data.stash_retrieve();
- obj.set_tab(obj.url_prefix(urls.XUL_COPY_BUCKETS),{'tab_name':offlineStrings.getString('menu.cmd_edit_copy_buckets.tab')},{});
- }
- ],
- 'cmd_edit_volume_buckets' : [
- ['oncommand'],
- function() {
- obj.data.stash_retrieve();
- obj.set_tab(obj.url_prefix(urls.XUL_VOLUME_BUCKETS),{'tab_name':offlineStrings.getString('menu.cmd_edit_volume_buckets.tab')},{});
- }
- ],
- 'cmd_edit_record_buckets' : [
- ['oncommand'],
- function() {
- obj.data.stash_retrieve();
- obj.set_tab(obj.url_prefix(urls.XUL_RECORD_BUCKETS),{'tab_name':offlineStrings.getString('menu.cmd_edit_record_buckets.tab')},{});
- }
- ],
- 'cmd_edit_user_buckets' : [
- ['oncommand'],
- function() {
- obj.data.stash_retrieve();
- obj.set_tab(obj.url_prefix(urls.XUL_USER_BUCKETS),{'tab_name':offlineStrings.getString('menu.cmd_edit_user_buckets.tab')},{});
- }
- ],
-
-
- 'cmd_replace_barcode' : [
- ['oncommand'],
- function() {
- try {
- JSAN.use('util.network');
- var network = new util.network();
-
- var old_bc = window.prompt(offlineStrings.getString('menu.cmd_replace_barcode.prompt'),'',offlineStrings.getString('menu.cmd_replace_barcode.label'));
- if (!old_bc) return;
-
- var copy;
+ }
+ ],
+ 'cmd_new_tab' : [
+ ['oncommand'],
+ function() { obj.new_tab(null,{'focus':true},null); }
+ ],
+ 'cmd_close_tab' : [
+ ['oncommand'],
+ function() { obj.close_tab(); }
+ ],
+ 'cmd_close_all_tabs' : [
+ ['oncommand'],
+ function() { obj.close_all_tabs(); }
+ ],
+
+ /* Edit Menu */
+ 'cmd_edit_copy_buckets' : [
+ ['oncommand'],
+ function() {
+ obj.data.stash_retrieve();
+ obj.set_tab(obj.url_prefix(urls.XUL_COPY_BUCKETS),{'tab_name':offlineStrings.getString('menu.cmd_edit_copy_buckets.tab')},{});
+ }
+ ],
+ 'cmd_edit_volume_buckets' : [
+ ['oncommand'],
+ function() {
+ obj.data.stash_retrieve();
+ obj.set_tab(obj.url_prefix(urls.XUL_VOLUME_BUCKETS),{'tab_name':offlineStrings.getString('menu.cmd_edit_volume_buckets.tab')},{});
+ }
+ ],
+ 'cmd_edit_record_buckets' : [
+ ['oncommand'],
+ function() {
+ obj.data.stash_retrieve();
+ obj.set_tab(obj.url_prefix(urls.XUL_RECORD_BUCKETS),{'tab_name':offlineStrings.getString('menu.cmd_edit_record_buckets.tab')},{});
+ }
+ ],
+ 'cmd_edit_user_buckets' : [
+ ['oncommand'],
+ function() {
+ obj.data.stash_retrieve();
+ obj.set_tab(obj.url_prefix(urls.XUL_USER_BUCKETS),{'tab_name':offlineStrings.getString('menu.cmd_edit_user_buckets.tab')},{});
+ }
+ ],
+
+
+ 'cmd_replace_barcode' : [
+ ['oncommand'],
+ function() {
+ try {
+ JSAN.use('util.network');
+ var network = new util.network();
+
+ var old_bc = window.prompt(offlineStrings.getString('menu.cmd_replace_barcode.prompt'),'',offlineStrings.getString('menu.cmd_replace_barcode.label'));
+ if (!old_bc) return;
+
+ var copy;
try {
copy = network.simple_request('FM_ACP_RETRIEVE_VIA_BARCODE',[ old_bc ]);
- if (typeof copy.ilsevent != 'undefined') throw(copy);
- if (!copy) throw(copy);
+ if (typeof copy.ilsevent != 'undefined') throw(copy);
+ if (!copy) throw(copy);
} catch(E) {
alert(offlineStrings.getFormattedString('menu.cmd_replace_barcode.retrieval.error', [old_bc]) + '\n');
return;
}
-
- // Why did I want to do this twice? Because this copy is more fleshed?
+
+ // Why did I want to do this twice? Because this copy is more fleshed?
try {
- copy = network.simple_request('FM_ACP_RETRIEVE',[ copy.id() ]);
- if (typeof copy.ilsevent != 'undefined') throw(copy);
- if (!copy) throw(copy);
+ copy = network.simple_request('FM_ACP_RETRIEVE',[ copy.id() ]);
+ if (typeof copy.ilsevent != 'undefined') throw(copy);
+ if (!copy) throw(copy);
} catch(E) {
try { alert(offlineStrings.getFormattedString('menu.cmd_replace_barcode.retrieval.error', [old_bc]) + '\n' + (typeof E.ilsevent == 'undefined' ? '' : E.textcode + ' : ' + E.desc)); } catch(F) { alert(E + '\n' + F); }
return;
}
-
- var new_bc = window.prompt(offlineStrings.getString('menu.cmd_replace_barcode.replacement.prompt'),'',offlineStrings.getString('menu.cmd_replace_barcode.replacement.label'));
- new_bc = String( new_bc ).replace(/\s/g,'');
- /* Casting a possibly null input value to a String turns it into "null" */
- if (!new_bc || new_bc == 'null') {
- alert(offlineStrings.getString('menu.cmd_replace_barcode.blank.error'));
- return;
- }
-
- var test = network.simple_request('FM_ACP_RETRIEVE_VIA_BARCODE',[ new_bc ]);
- if (typeof test.ilsevent == 'undefined') {
- alert(offlineStrings.getFormattedString('menu.cmd_replace_barcode.duplicate.error', [new_bc]));
- return;
- } else {
- if (test.ilsevent != 1502 /* ASSET_COPY_NOT_FOUND */) {
- obj.error.standard_unexpected_error_alert(offlineStrings.getFormattedString('menu.cmd_replace_barcode.testing.error', [new_bc]),test);
- return;
- }
- }
-
- copy.barcode(new_bc); copy.ischanged('1');
- var r = network.simple_request('FM_ACP_FLESHED_BATCH_UPDATE', [ ses(), [ copy ] ]);
- if (typeof r.ilsevent != 'undefined') {
+
+ var new_bc = window.prompt(offlineStrings.getString('menu.cmd_replace_barcode.replacement.prompt'),'',offlineStrings.getString('menu.cmd_replace_barcode.replacement.label'));
+ new_bc = String( new_bc ).replace(/\s/g,'');
+ /* Casting a possibly null input value to a String turns it into "null" */
+ if (!new_bc || new_bc == 'null') {
+ alert(offlineStrings.getString('menu.cmd_replace_barcode.blank.error'));
+ return;
+ }
+
+ var test = network.simple_request('FM_ACP_RETRIEVE_VIA_BARCODE',[ new_bc ]);
+ if (typeof test.ilsevent == 'undefined') {
+ alert(offlineStrings.getFormattedString('menu.cmd_replace_barcode.duplicate.error', [new_bc]));
+ return;
+ } else {
+ if (test.ilsevent != 1502 /* ASSET_COPY_NOT_FOUND */) {
+ obj.error.standard_unexpected_error_alert(offlineStrings.getFormattedString('menu.cmd_replace_barcode.testing.error', [new_bc]),test);
+ return;
+ }
+ }
+
+ copy.barcode(new_bc); copy.ischanged('1');
+ var r = network.simple_request('FM_ACP_FLESHED_BATCH_UPDATE', [ ses(), [ copy ] ]);
+ if (typeof r.ilsevent != 'undefined') {
if (r.ilsevent != 0) {
if (r.ilsevent == 5000 /* PERM_FAILURE */) {
alert(offlineStrings.getString('menu.cmd_replace_barcode.permission.error'));
@@ -245,224 +245,224 @@ main.menu.prototype = {
}
}
}
- } catch(E) {
- obj.error.standard_unexpected_error_alert(offlineStrings.getString('menu.cmd_replace_barcode.renaming.failure'),copy);
- }
- }
- ],
-
- /* Search Menu */
- 'cmd_patron_search' : [
- ['oncommand'],
- function() {
+ } catch(E) {
+ obj.error.standard_unexpected_error_alert(offlineStrings.getString('menu.cmd_replace_barcode.renaming.failure'),copy);
+ }
+ }
+ ],
+
+ /* Search Menu */
+ 'cmd_patron_search' : [
+ ['oncommand'],
+ function() {
obj.set_patron_tab();
- }
- ],
- 'cmd_search_opac' : [
- ['oncommand'],
- function() {
- obj.data.stash_retrieve();
- var content_params = { 'session' : ses(), 'authtime' : ses('authtime') };
- obj.set_tab(obj.url_prefix(urls.XUL_OPAC_WRAPPER), {'tab_name':offlineStrings.getString('menu.cmd_search_opac.tab')}, content_params);
- }
- ],
- 'cmd_search_tcn' : [
- ['oncommand'],
- function() {
- var tcn = prompt(offlineStrings.getString('menu.cmd_search_tcn.tab'),'',offlineStrings.getString('menu.cmd_search_tcn.prompt'));
-
- function spawn_tcn(r) {
- for (var i = 0; i < r.count; i++) {
- var id = r.ids[i];
- var opac_url = obj.url_prefix( urls.opac_rdetail ) + '?r=' + id;
- obj.data.stash_retrieve();
- var content_params = {
- 'session' : ses(),
- 'authtime' : ses('authtime'),
- 'opac_url' : opac_url,
- };
- if (i == 0) {
- obj.set_tab(
- obj.url_prefix(urls.XUL_OPAC_WRAPPER),
- {'tab_name':tcn},
- content_params
- );
- } else {
- obj.new_tab(
- obj.url_prefix(urls.XUL_OPAC_WRAPPER),
- {'tab_name':tcn},
- content_params
- );
- }
- }
- }
-
- if (tcn) {
- JSAN.use('util.network');
- var network = new util.network();
- var robj = network.simple_request('FM_BRE_ID_SEARCH_VIA_TCN',[tcn]);
- if (robj.count != robj.ids.length) throw('FIXME -- FM_BRE_ID_SEARCH_VIA_TCN = ' + js2JSON(robj));
- if (robj.count == 0) {
- var robj2 = network.simple_request('FM_BRE_ID_SEARCH_VIA_TCN',[tcn,1]);
- if (robj2.count == 0) {
- alert(offlineStrings.getFormattedString('menu.cmd_search_tcn.not_found.error', [tcn]));
- } else {
- if ( window.confirm(offlineStrings.getFormattedString('menu.cmd_search_tcn.deleted.error', [tcn])) ) {
- spawn_tcn(robj2);
- }
- }
- } else {
- spawn_tcn(robj);
- }
- }
- }
- ],
- 'cmd_search_bib_id' : [
- ['oncommand'],
- function() {
- var bib_id = prompt(offlineStrings.getString('menu.cmd_search_bib_id.tab'),'',offlineStrings.getString('menu.cmd_search_bib_id.prompt'));
+ }
+ ],
+ 'cmd_search_opac' : [
+ ['oncommand'],
+ function() {
+ obj.data.stash_retrieve();
+ var content_params = { 'session' : ses(), 'authtime' : ses('authtime') };
+ obj.set_tab(obj.url_prefix(urls.XUL_OPAC_WRAPPER), {'tab_name':offlineStrings.getString('menu.cmd_search_opac.tab')}, content_params);
+ }
+ ],
+ 'cmd_search_tcn' : [
+ ['oncommand'],
+ function() {
+ var tcn = prompt(offlineStrings.getString('menu.cmd_search_tcn.tab'),'',offlineStrings.getString('menu.cmd_search_tcn.prompt'));
+
+ function spawn_tcn(r) {
+ for (var i = 0; i < r.count; i++) {
+ var id = r.ids[i];
+ var opac_url = obj.url_prefix( urls.opac_rdetail ) + '?r=' + id;
+ obj.data.stash_retrieve();
+ var content_params = {
+ 'session' : ses(),
+ 'authtime' : ses('authtime'),
+ 'opac_url' : opac_url,
+ };
+ if (i == 0) {
+ obj.set_tab(
+ obj.url_prefix(urls.XUL_OPAC_WRAPPER),
+ {'tab_name':tcn},
+ content_params
+ );
+ } else {
+ obj.new_tab(
+ obj.url_prefix(urls.XUL_OPAC_WRAPPER),
+ {'tab_name':tcn},
+ content_params
+ );
+ }
+ }
+ }
+
+ if (tcn) {
+ JSAN.use('util.network');
+ var network = new util.network();
+ var robj = network.simple_request('FM_BRE_ID_SEARCH_VIA_TCN',[tcn]);
+ if (robj.count != robj.ids.length) throw('FIXME -- FM_BRE_ID_SEARCH_VIA_TCN = ' + js2JSON(robj));
+ if (robj.count == 0) {
+ var robj2 = network.simple_request('FM_BRE_ID_SEARCH_VIA_TCN',[tcn,1]);
+ if (robj2.count == 0) {
+ alert(offlineStrings.getFormattedString('menu.cmd_search_tcn.not_found.error', [tcn]));
+ } else {
+ if ( window.confirm(offlineStrings.getFormattedString('menu.cmd_search_tcn.deleted.error', [tcn])) ) {
+ spawn_tcn(robj2);
+ }
+ }
+ } else {
+ spawn_tcn(robj);
+ }
+ }
+ }
+ ],
+ 'cmd_search_bib_id' : [
+ ['oncommand'],
+ function() {
+ var bib_id = prompt(offlineStrings.getString('menu.cmd_search_bib_id.tab'),'',offlineStrings.getString('menu.cmd_search_bib_id.prompt'));
if (!bib_id) return;
- var opac_url = obj.url_prefix( urls.opac_rdetail ) + '?r=' + bib_id;
- var content_params = {
- 'session' : ses(),
- 'authtime' : ses('authtime'),
- 'opac_url' : opac_url,
- };
- obj.set_tab(
- obj.url_prefix(urls.XUL_OPAC_WRAPPER),
- {'tab_name':'#' + bib_id},
- content_params
- );
- }
- ],
- 'cmd_copy_status' : [
- ['oncommand'],
- function() {
- obj.data.stash_retrieve();
- obj.set_tab(obj.url_prefix(urls.XUL_COPY_STATUS),{},{});
- }
- ],
-
- /* Circulation Menu */
- 'cmd_patron_register' : [
- ['oncommand'],
- function() {
- function spawn_editor(p) {
- var url = urls.XUL_PATRON_EDIT;
- var param_count = 0;
- for (var i in p) {
- if (param_count++ == 0) url += '?'; else url += '&';
- url += i + '=' + window.escape(p[i]);
- }
- var loc = obj.url_prefix( urls.XUL_BROWSER ) + '?url=' + window.escape( obj.url_prefix(url) );
- obj.new_tab(
- loc,
- {},
- {
- 'show_print_button' : true ,
- 'tab_name' : offline.getString('menu.cmd_patron_register.related.tab'),
- 'passthru_content_params' : {
- 'spawn_search' : function(s) { obj.spawn_search(s); },
- 'spawn_editor' : spawn_editor,
- }
- }
- );
- }
-
- obj.data.stash_retrieve();
- var loc = obj.url_prefix( urls.XUL_BROWSER )
- + '?url=' + window.escape( obj.url_prefix(urls.XUL_PATRON_EDIT) + '?ses=' + window.escape( ses() ) );
- obj.set_tab(
- loc,
- {},
- {
- 'show_print_button' : true ,
- 'tab_name' : offlineStrings.getString('menu.cmd_patron_register.tab'),
- 'passthru_content_params' : {
- 'spawn_search' : function(s) { obj.spawn_search(s); },
- 'spawn_editor' : spawn_editor,
- }
- }
- );
- }
- ],
- 'cmd_circ_checkin' : [
- ['oncommand'],
- function() {
- obj.data.stash_retrieve();
- obj.set_tab(obj.url_prefix(urls.XUL_CHECKIN),{},{});
- }
- ],
- 'cmd_circ_checkout' : [
- ['oncommand'],
- function() {
- obj.data.stash_retrieve();
- obj.set_tab(obj.url_prefix(urls.XUL_PATRON_BARCODE_ENTRY),{},{});
- }
- ],
- 'cmd_circ_hold_capture' : [
- ['oncommand'],
- function() {
- obj.data.stash_retrieve();
- obj.set_tab(obj.url_prefix(urls.XUL_CHECKIN)+'?hold_capture=1',{},{});
- }
- ],
- 'cmd_browse_holds' : [
- ['oncommand'],
- function() {
- obj.data.stash_retrieve();
- obj.set_tab(obj.url_prefix(urls.XUL_HOLDS_BROWSER),{ 'tab_name' : offlineStrings.getString('menu.cmd_browse_holds.tab') },{});
- }
- ],
- 'cmd_browse_holds_shelf' : [
- ['oncommand'],
- function() {
- obj.data.stash_retrieve();
- obj.set_tab(obj.url_prefix(urls.XUL_HOLDS_BROWSER)+'?shelf=1',{ 'tab_name' : offlineStrings.getString('menu.cmd_browse_holds_shelf.tab') },{});
- }
- ],
- 'cmd_circ_hold_pull_list' : [
- ['oncommand'],
- function() {
- obj.data.stash_retrieve();
- var loc = urls.XUL_BROWSER + '?url=' + window.escape(
- obj.url_prefix(urls.XUL_HOLD_PULL_LIST) + '?ses='+window.escape(ses())
- );
- obj.set_tab( loc, {'tab_name' : offlineStrings.getString('menu.cmd_browse_hold_pull_list.tab')}, { 'show_print_button' : true } );
- }
- ],
-
- 'cmd_in_house_use' : [
- ['oncommand'],
- function() {
- obj.data.stash_retrieve();
- obj.set_tab(obj.url_prefix(urls.XUL_IN_HOUSE_USE),{},{});
- }
- ],
-
- 'cmd_standalone' : [
- ['oncommand'],
- function() {
- obj.set_tab(obj.url_prefix(urls.XUL_STANDALONE),{},{});
- }
- ],
-
- 'cmd_local_admin' : [
- ['oncommand'],
- function() {
- //obj.set_tab(obj.url_prefix(urls.XUL_LOCAL_ADMIN)+'?ses='+window.escape(ses())+'&session='+window.escape(ses()),{},{});
- var loc = urls.XUL_BROWSER + '?url=' + window.escape(
+ var opac_url = obj.url_prefix( urls.opac_rdetail ) + '?r=' + bib_id;
+ var content_params = {
+ 'session' : ses(),
+ 'authtime' : ses('authtime'),
+ 'opac_url' : opac_url,
+ };
+ obj.set_tab(
+ obj.url_prefix(urls.XUL_OPAC_WRAPPER),
+ {'tab_name':'#' + bib_id},
+ content_params
+ );
+ }
+ ],
+ 'cmd_copy_status' : [
+ ['oncommand'],
+ function() {
+ obj.data.stash_retrieve();
+ obj.set_tab(obj.url_prefix(urls.XUL_COPY_STATUS),{},{});
+ }
+ ],
+
+ /* Circulation Menu */
+ 'cmd_patron_register' : [
+ ['oncommand'],
+ function() {
+ function spawn_editor(p) {
+ var url = urls.XUL_PATRON_EDIT;
+ var param_count = 0;
+ for (var i in p) {
+ if (param_count++ == 0) url += '?'; else url += '&';
+ url += i + '=' + window.escape(p[i]);
+ }
+ var loc = obj.url_prefix( urls.XUL_BROWSER ) + '?url=' + window.escape( obj.url_prefix(url) );
+ obj.new_tab(
+ loc,
+ {},
+ {
+ 'show_print_button' : true ,
+ 'tab_name' : offline.getString('menu.cmd_patron_register.related.tab'),
+ 'passthru_content_params' : {
+ 'spawn_search' : function(s) { obj.spawn_search(s); },
+ 'spawn_editor' : spawn_editor,
+ }
+ }
+ );
+ }
+
+ obj.data.stash_retrieve();
+ var loc = obj.url_prefix( urls.XUL_BROWSER )
+ + '?url=' + window.escape( obj.url_prefix(urls.XUL_PATRON_EDIT) + '?ses=' + window.escape( ses() ) );
+ obj.set_tab(
+ loc,
+ {},
+ {
+ 'show_print_button' : true ,
+ 'tab_name' : offlineStrings.getString('menu.cmd_patron_register.tab'),
+ 'passthru_content_params' : {
+ 'spawn_search' : function(s) { obj.spawn_search(s); },
+ 'spawn_editor' : spawn_editor,
+ }
+ }
+ );
+ }
+ ],
+ 'cmd_circ_checkin' : [
+ ['oncommand'],
+ function() {
+ obj.data.stash_retrieve();
+ obj.set_tab(obj.url_prefix(urls.XUL_CHECKIN),{},{});
+ }
+ ],
+ 'cmd_circ_checkout' : [
+ ['oncommand'],
+ function() {
+ obj.data.stash_retrieve();
+ obj.set_tab(obj.url_prefix(urls.XUL_PATRON_BARCODE_ENTRY),{},{});
+ }
+ ],
+ 'cmd_circ_hold_capture' : [
+ ['oncommand'],
+ function() {
+ obj.data.stash_retrieve();
+ obj.set_tab(obj.url_prefix(urls.XUL_CHECKIN)+'?hold_capture=1',{},{});
+ }
+ ],
+ 'cmd_browse_holds' : [
+ ['oncommand'],
+ function() {
+ obj.data.stash_retrieve();
+ obj.set_tab(obj.url_prefix(urls.XUL_HOLDS_BROWSER),{ 'tab_name' : offlineStrings.getString('menu.cmd_browse_holds.tab') },{});
+ }
+ ],
+ 'cmd_browse_holds_shelf' : [
+ ['oncommand'],
+ function() {
+ obj.data.stash_retrieve();
+ obj.set_tab(obj.url_prefix(urls.XUL_HOLDS_BROWSER)+'?shelf=1',{ 'tab_name' : offlineStrings.getString('menu.cmd_browse_holds_shelf.tab') },{});
+ }
+ ],
+ 'cmd_circ_hold_pull_list' : [
+ ['oncommand'],
+ function() {
+ obj.data.stash_retrieve();
+ var loc = urls.XUL_BROWSER + '?url=' + window.escape(
+ obj.url_prefix(urls.XUL_HOLD_PULL_LIST) + '?ses='+window.escape(ses())
+ );
+ obj.set_tab( loc, {'tab_name' : offlineStrings.getString('menu.cmd_browse_hold_pull_list.tab')}, { 'show_print_button' : true } );
+ }
+ ],
+
+ 'cmd_in_house_use' : [
+ ['oncommand'],
+ function() {
+ obj.data.stash_retrieve();
+ obj.set_tab(obj.url_prefix(urls.XUL_IN_HOUSE_USE),{},{});
+ }
+ ],
+
+ 'cmd_standalone' : [
+ ['oncommand'],
+ function() {
+ obj.set_tab(obj.url_prefix(urls.XUL_STANDALONE),{},{});
+ }
+ ],
+
+ 'cmd_local_admin' : [
+ ['oncommand'],
+ function() {
+ //obj.set_tab(obj.url_prefix(urls.XUL_LOCAL_ADMIN)+'?ses='+window.escape(ses())+'&session='+window.escape(ses()),{},{});
+ var loc = urls.XUL_BROWSER + '?url=' + window.escape(
obj.url_prefix( urls.XUL_LOCAL_ADMIN+'?ses='+window.escape(ses())+'&session='+window.escape(ses()) )
- );
- obj.set_tab(
- loc,
- {'tab_name' : offlineStrings.getString('menu.cmd_local_admin.tab'), 'browser' : false },
- { 'no_xulG' : false, 'show_nav_buttons' : true, 'show_print_button' : true }
- );
+ );
+ obj.set_tab(
+ loc,
+ {'tab_name' : offlineStrings.getString('menu.cmd_local_admin.tab'), 'browser' : false },
+ { 'no_xulG' : false, 'show_nav_buttons' : true, 'show_print_button' : true }
+ );
- }
- ],
+ }
+ ],
'cmd_toggle_buttonbar' : [
['oncommand'],
@@ -472,21 +472,21 @@ main.menu.prototype = {
}
],
- 'cmd_local_admin_reports' : [
- ['oncommand'],
- function() {
- var loc = urls.XUL_BROWSER + '?url=' + window.escape( obj.url_prefix(urls.XUL_REPORTS) + '?ses=' + ses());
- obj.set_tab(
- loc,
- {'tab_name' : offlineStrings.getString('menu.cmd_local_admin_reports.tab'), 'browser' : false },
- {'no_xulG' : false, 'show_print_button' : false, show_nav_buttons : true }
- );
- }
- ],
- 'cmd_open_vandelay' : [
- ['oncommand'],
+ 'cmd_local_admin_reports' : [
+ ['oncommand'],
+ function() {
+ var loc = urls.XUL_BROWSER + '?url=' + window.escape( obj.url_prefix(urls.XUL_REPORTS) + '?ses=' + ses());
+ obj.set_tab(
+ loc,
+ {'tab_name' : offlineStrings.getString('menu.cmd_local_admin_reports.tab'), 'browser' : false },
+ {'no_xulG' : false, 'show_print_button' : false, show_nav_buttons : true }
+ );
+ }
+ ],
+ 'cmd_open_vandelay' : [
+ ['oncommand'],
function() { open_eg_web_page('vandelay/vandelay'); }
- ],
+ ],
'cmd_local_admin_transit_list' : [
['oncommand'],
function() { open_admin_page('transit_list.xul', 'menu.cmd_local_admin_transit_list.tab'); }
@@ -589,526 +589,526 @@ main.menu.prototype = {
['oncommand'],
function() { open_eg_web_page('conify/global/config/circ_modifier'); }
],
- 'cmd_acq_view_picklist' : [
- ['oncommand'],
- function() { open_eg_web_page('acq/picklist/list', 'menu.cmd_acq_view_picklist.tab'); }
- ],
- 'cmd_acq_view_po' : [
- ['oncommand'],
- function() { open_eg_web_page('acq/po/search', 'menu.cmd_acq_view_po.tab'); }
- ],
- 'cmd_acq_upload' : [
- ['oncommand'],
- function() { open_eg_web_page('acq/picklist/upload', 'menu.cmd_acq_upload.tab'); }
- ],
- 'cmd_acq_bib_search' : [
- ['oncommand'],
- function() { open_eg_web_page('acq/picklist/bib_search', 'menu.cmd_acq_bib_search.tab'); }
- ],
- 'cmd_acq_new_brief_record' : [
- ['oncommand'],
- function() { open_eg_web_page('acq/picklist/brief_record', 'menu.cmd_acq_new_brief_record.tab'); }
- ],
+ 'cmd_acq_view_picklist' : [
+ ['oncommand'],
+ function() { open_eg_web_page('acq/picklist/list', 'menu.cmd_acq_view_picklist.tab'); }
+ ],
+ 'cmd_acq_view_po' : [
+ ['oncommand'],
+ function() { open_eg_web_page('acq/po/search', 'menu.cmd_acq_view_po.tab'); }
+ ],
+ 'cmd_acq_upload' : [
+ ['oncommand'],
+ function() { open_eg_web_page('acq/picklist/upload', 'menu.cmd_acq_upload.tab'); }
+ ],
+ 'cmd_acq_bib_search' : [
+ ['oncommand'],
+ function() { open_eg_web_page('acq/picklist/bib_search', 'menu.cmd_acq_bib_search.tab'); }
+ ],
+ 'cmd_acq_new_brief_record' : [
+ ['oncommand'],
+ function() { open_eg_web_page('acq/picklist/brief_record', 'menu.cmd_acq_new_brief_record.tab'); }
+ ],
'cmd_acq_view_fund' : [
- ['oncommand'],
- function() { open_eg_web_page('acq/fund/list', 'menu.cmd_acq_view_fund.tab'); }
- ],
+ ['oncommand'],
+ function() { open_eg_web_page('acq/fund/list', 'menu.cmd_acq_view_fund.tab'); }
+ ],
'cmd_acq_view_funding_source' : [
- ['oncommand'],
- function() { open_eg_web_page('acq/funding_source/list', 'menu.cmd_acq_view_funding_source.tab'); }
- ],
+ ['oncommand'],
+ function() { open_eg_web_page('acq/funding_source/list', 'menu.cmd_acq_view_funding_source.tab'); }
+ ],
'cmd_acq_view_provider' : [
- ['oncommand'],
- function() { open_eg_web_page('conify/global/acq/provider', 'menu.cmd_acq_view_provider.tab'); }
- ],
+ ['oncommand'],
+ function() { open_eg_web_page('conify/global/acq/provider', 'menu.cmd_acq_view_provider.tab'); }
+ ],
'cmd_acq_view_currency_type' : [
- ['oncommand'],
- function() { open_eg_web_page('acq/currency_type/list', 'menu.cmd_acq_view_currency_type.tab'); }
- ],
+ ['oncommand'],
+ function() { open_eg_web_page('acq/currency_type/list', 'menu.cmd_acq_view_currency_type.tab'); }
+ ],
'cmd_acq_view_exchange_rate' : [
- ['oncommand'],
- function() { open_eg_web_page('conify/global/acq/exchange_rate', 'menu.cmd_acq_view_exchange_rate.tab'); }
- ],
+ ['oncommand'],
+ function() { open_eg_web_page('conify/global/acq/exchange_rate', 'menu.cmd_acq_view_exchange_rate.tab'); }
+ ],
'cmd_acq_view_distrib_formula' : [
- ['oncommand'],
- function() { open_eg_web_page('conify/global/acq/distribution_formula', 'menu.cmd_acq_view_distrib_formula.tab'); }
- ],
-
- 'cmd_reprint' : [
- ['oncommand'],
- function() {
- try {
- JSAN.use('util.print'); var print = new util.print();
- print.reprint_last();
- } catch(E) {
- alert(E);
- }
- }
- ],
-
- 'cmd_retrieve_last_patron' : [
- ['oncommand'],
- function() {
- obj.data.stash_retrieve();
- if (!obj.data.last_patron) {
- alert(offlineStrings.getString('menu.cmd_retrieve_last_patron.session.error'));
- return;
- }
+ ['oncommand'],
+ function() { open_eg_web_page('conify/global/acq/distribution_formula', 'menu.cmd_acq_view_distrib_formula.tab'); }
+ ],
+
+ 'cmd_reprint' : [
+ ['oncommand'],
+ function() {
+ try {
+ JSAN.use('util.print'); var print = new util.print();
+ print.reprint_last();
+ } catch(E) {
+ alert(E);
+ }
+ }
+ ],
+
+ 'cmd_retrieve_last_patron' : [
+ ['oncommand'],
+ function() {
+ obj.data.stash_retrieve();
+ if (!obj.data.last_patron) {
+ alert(offlineStrings.getString('menu.cmd_retrieve_last_patron.session.error'));
+ return;
+ }
var horizontal_interface = String( obj.data.hash.aous['ui.circ.patron_summary.horizontal'] ) == 'true';
var url = obj.url_prefix( horizontal_interface ? urls.XUL_PATRON_HORIZ_DISPLAY : urls.XUL_PATRON_DISPLAY );
- obj.set_tab( url, {}, { 'id' : obj.data.last_patron } );
- }
- ],
-
- 'cmd_retrieve_last_record' : [
- ['oncommand'],
- function() {
- obj.data.stash_retrieve();
- if (!obj.data.last_record) {
- alert(offlineStrings.getString('menu.cmd_retrieve_last_record.session.error'));
- return;
- }
- var opac_url = obj.url_prefix( urls.opac_rdetail ) + '?r=' + obj.data.last_record;
- var content_params = {
- 'session' : ses(),
- 'authtime' : ses('authtime'),
- 'opac_url' : opac_url,
- };
- obj.set_tab(
- obj.url_prefix(urls.XUL_OPAC_WRAPPER),
- {'tab_name' : offlineStrings.getString('menu.cmd_retrieve_last_record.status')},
- content_params
- );
- }
- ],
+ obj.set_tab( url, {}, { 'id' : obj.data.last_patron } );
+ }
+ ],
+
+ 'cmd_retrieve_last_record' : [
+ ['oncommand'],
+ function() {
+ obj.data.stash_retrieve();
+ if (!obj.data.last_record) {
+ alert(offlineStrings.getString('menu.cmd_retrieve_last_record.session.error'));
+ return;
+ }
+ var opac_url = obj.url_prefix( urls.opac_rdetail ) + '?r=' + obj.data.last_record;
+ var content_params = {
+ 'session' : ses(),
+ 'authtime' : ses('authtime'),
+ 'opac_url' : opac_url,
+ };
+ obj.set_tab(
+ obj.url_prefix(urls.XUL_OPAC_WRAPPER),
+ {'tab_name' : offlineStrings.getString('menu.cmd_retrieve_last_record.status')},
+ content_params
+ );
+ }
+ ],
'cmd_verify_credentials' : [
['oncommand'],
function() {
- obj.set_tab(
- obj.url_prefix(urls.XUL_VERIFY_CREDENTIALS),
- { 'tab_name' : offlineStrings.getString('menu.cmd_verify_credentials.tabname') },
- {}
- );
+ obj.set_tab(
+ obj.url_prefix(urls.XUL_VERIFY_CREDENTIALS),
+ { 'tab_name' : offlineStrings.getString('menu.cmd_verify_credentials.tabname') },
+ {}
+ );
+ }
+ ],
+
+ /* Cataloging Menu */
+ 'cmd_z39_50_import' : [
+ ['oncommand'],
+ function() {
+ obj.data.stash_retrieve();
+ obj.set_tab(obj.url_prefix(urls.XUL_Z3950_IMPORT),{},{});
+ }
+ ],
+ 'cmd_create_marc' : [
+ ['oncommand'],
+ function() {
+ obj.data.stash_retrieve();
+ obj.set_tab(obj.url_prefix(urls.XUL_MARC_NEW),{},{});
}
],
- /* Cataloging Menu */
- 'cmd_z39_50_import' : [
- ['oncommand'],
- function() {
- obj.data.stash_retrieve();
- obj.set_tab(obj.url_prefix(urls.XUL_Z3950_IMPORT),{},{});
- }
- ],
- 'cmd_create_marc' : [
- ['oncommand'],
- function() {
- obj.data.stash_retrieve();
- obj.set_tab(obj.url_prefix(urls.XUL_MARC_NEW),{},{});
- }
- ],
-
- /* Admin menu */
- 'cmd_change_session' : [
- ['oncommand'],
- function() {
- try {
- obj.data.stash_retrieve();
- JSAN.use('util.network'); var network = new util.network();
- var x = document.getElementById('oc_menuitem');
- var x_label = x.getAttribute('label_orig');
- var temp_au = js2JSON( obj.data.list.au[0] );
- var temp_ses = js2JSON( obj.data.session );
- if (obj.data.list.au.length > 1) {
- obj.data.list.au = [ obj.data.list.au[1] ];
- obj.data.stash('list');
- network.reset_titlebars( obj.data );
- x.setAttribute('label', x_label );
- network.simple_request('AUTH_DELETE', [ obj.data.session.key ] );
- obj.data.session = obj.data.previous_session;
- obj.data.stash('session');
- try {
+ /* Admin menu */
+ 'cmd_change_session' : [
+ ['oncommand'],
+ function() {
+ try {
+ obj.data.stash_retrieve();
+ JSAN.use('util.network'); var network = new util.network();
+ var x = document.getElementById('oc_menuitem');
+ var x_label = x.getAttribute('label_orig');
+ var temp_au = js2JSON( obj.data.list.au[0] );
+ var temp_ses = js2JSON( obj.data.session );
+ if (obj.data.list.au.length > 1) {
+ obj.data.list.au = [ obj.data.list.au[1] ];
+ obj.data.stash('list');
+ network.reset_titlebars( obj.data );
+ x.setAttribute('label', x_label );
+ network.simple_request('AUTH_DELETE', [ obj.data.session.key ] );
+ obj.data.session = obj.data.previous_session;
+ obj.data.stash('session');
+ try {
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
- var ios = Components.classes["@mozilla.org/network/io-service;1"].getService(Components.interfaces.nsIIOService);
- var cookieUri = ios.newURI("http://" + obj.data.server_unadorned, null, null);
- var cookieUriSSL = ios.newURI("https://" + obj.data.server_unadorned, null, null);
- var cookieSvc = Components.classes["@mozilla.org/cookieService;1"].getService(Components.interfaces.nsICookieService);
-
- cookieSvc.setCookieString(cookieUri, null, "ses="+obj.data.session.key, null);
- cookieSvc.setCookieString(cookieUriSSL, null, "ses="+obj.data.session.key, null);
-
- } catch(E) {
- alert(offlineStrings.getFormattedString(main.session_cookie.error, [E]));
- }
-
- removeCSSClass(document.getElementById('main_tabbox'),'operator_change');
- } else {
- if (network.get_new_session(offlineStrings.getString('menu.cmd_chg_session.label'),{'url_prefix':obj.url_prefix})) {
- obj.data.stash_retrieve();
- obj.data.list.au[1] = JSON2js( temp_au );
- obj.data.stash('list');
- obj.data.previous_session = JSON2js( temp_ses );
- obj.data.stash('previous_session');
- x.setAttribute('label', offlineStrings.getFormattedString('menu.cmd_chg_session.operator.label', [obj.data.list.au[1].usrname()]) );
- addCSSClass(document.getElementById('main_tabbox'),'operator_change');
- }
- }
- } catch(E) {
- obj.error.standard_unexpected_error_alert('cmd_change_session',E);
- }
- }
- ],
- 'cmd_manage_offline_xacts' : [
- ['oncommand'],
- function() {
- obj.set_tab(obj.url_prefix(urls.XUL_OFFLINE_MANAGE_XACTS), {'tab_name' : offlineStrings.getString('menu.cmd_manage_offline_xacts.tab')}, {});
- }
- ],
- 'cmd_download_patrons' : [
- ['oncommand'],
- function() {
- try {
- netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
- var x = new XMLHttpRequest();
- var url = 'http://' + XML_HTTP_SERVER + '/standalone/list.txt';
- x.open("GET",url,false);
- x.send(null);
- if (x.status == 200) {
- JSAN.use('util.file'); var file = new util.file('offline_patron_list');
- file.write_content('truncate',x.responseText);
- file.close();
- file = new util.file('offline_patron_list.date');
- file.write_content('truncate',new Date());
- file.close();
- alert(offlineStrings.getString('menu.cmd_download_patrons.complete.status'));
- } else {
- alert(offlineStrings.getFormattedString('menu.cmd_download_patrons.error', [x.status, x.statusText]));
- }
- } catch(E) {
- obj.error.standard_unexpected_error_alert('cmd_download_patrons',E);
- }
- }
- ],
- 'cmd_adv_user_edit' : [
- ['oncommand'],
- function() {
- obj.data.stash_retrieve();
- obj.set_tab(obj.url_prefix(urls.XUL_PATRON_BARCODE_ENTRY), {}, { 'perm_editor' : true });
- }
- ],
- 'cmd_print_list_template_edit' : [
- ['oncommand'],
- function() {
- obj.data.stash_retrieve();
- obj.set_tab(obj.url_prefix(urls.XUL_PRINT_LIST_TEMPLATE_EDITOR), {}, {});
- }
- ],
- 'cmd_stat_cat_edit' : [
- ['oncommand'],
- function() {
- obj.data.stash_retrieve();
- obj.set_tab(obj.url_prefix(urls.XUL_STAT_CAT_EDIT) + '?ses='+window.escape(ses()), {'tab_name' : offlineStrings.getString('menu.cmd_stat_cat_edit.tab')},{});
- }
- ],
- 'cmd_non_cat_type_edit' : [
- ['oncommand'],
- function() {
- obj.data.stash_retrieve();
- obj.set_tab(obj.url_prefix(urls.XUL_NON_CAT_LABEL_EDIT) + '?ses='+window.escape(ses()), {'tab_name' : offlineStrings.getString('menu.cmd_non_cat_type_edit.tab')},{});
- }
- ],
- 'cmd_copy_location_edit' : [
- ['oncommand'],
- function() {
- obj.data.stash_retrieve();
- obj.set_tab(obj.url_prefix(urls.XUL_COPY_LOCATION_EDIT) + '?ses='+window.escape(ses()),{'tab_name' : offlineStrings.getString('menu.cmd_copy_location_edit.tab')},{});
- }
- ],
- 'cmd_test' : [
- ['oncommand'],
- function() {
- obj.data.stash_retrieve();
- var content_params = { 'session' : ses(), 'authtime' : ses('authtime') };
- obj.set_tab(obj.url_prefix(urls.XUL_OPAC_WRAPPER), {}, content_params);
- }
- ],
- 'cmd_test_html' : [
- ['oncommand'],
- function() {
- obj.data.stash_retrieve();
- obj.set_tab(obj.url_prefix(urls.TEST_HTML) + '?ses='+window.escape(ses()),{ 'browser' : true },{});
- }
- ],
- 'cmd_test_xul' : [
- ['oncommand'],
- function() {
- obj.data.stash_retrieve();
- obj.set_tab(obj.url_prefix(urls.TEST_XUL) + '?ses='+window.escape(ses()),{ 'browser' : false },{});
- }
- ],
- 'cmd_console' : [
- ['oncommand'],
- function() {
- obj.set_tab(obj.url_prefix(urls.XUL_DEBUG_CONSOLE),{'tab_name' : offlineStrings.getString('menu.cmd_console.tab')},{});
- }
- ],
- 'cmd_shell' : [
- ['oncommand'],
- function() {
- obj.set_tab(obj.url_prefix(urls.XUL_DEBUG_SHELL),{'tab_name' : offlineStrings.getString('menu.cmd_shell.tab')},{});
- }
- ],
- 'cmd_xuleditor' : [
- ['oncommand'],
- function() {
- obj.set_tab(obj.url_prefix(urls.XUL_DEBUG_XULEDITOR),{'tab_name' : offlineStrings.getString('menu.cmd_xuleditor.tab')},{});
- }
- ],
- 'cmd_fieldmapper' : [
- ['oncommand'],
- function() {
- obj.set_tab(obj.url_prefix(urls.XUL_DEBUG_FIELDMAPPER),{'tab_name' : offlineStrings.getString('menu.cmd_fieldmapper.tab')},{});
- }
- ],
- 'cmd_survey_wizard' : [
- ['oncommand'],
- function() {
- obj.data.stash_retrieve();
- xulG.window.open(obj.url_prefix(urls.XUL_SURVEY_WIZARD),'survey_wizard','chrome');
- }
- ],
- 'cmd_public_opac' : [
- ['oncommand'],
- function() {
- var loc = urls.XUL_BROWSER + '?url=' + window.escape(
- obj.url_prefix(urls.remote)
- );
- obj.set_tab(
- loc,
- {'tab_name' : offlineStrings.getString('menu.cmd_public_opac.tab'), 'browser' : false},
- { 'no_xulG' : true, 'show_nav_buttons' : true, 'show_print_button' : true }
- );
- }
- ],
- 'cmd_clear_cache' : [
- ['oncommand'],
- function clear_the_cache() {
- try {
+ var ios = Components.classes["@mozilla.org/network/io-service;1"].getService(Components.interfaces.nsIIOService);
+ var cookieUri = ios.newURI("http://" + obj.data.server_unadorned, null, null);
+ var cookieUriSSL = ios.newURI("https://" + obj.data.server_unadorned, null, null);
+ var cookieSvc = Components.classes["@mozilla.org/cookieService;1"].getService(Components.interfaces.nsICookieService);
+
+ cookieSvc.setCookieString(cookieUri, null, "ses="+obj.data.session.key, null);
+ cookieSvc.setCookieString(cookieUriSSL, null, "ses="+obj.data.session.key, null);
+
+ } catch(E) {
+ alert(offlineStrings.getFormattedString(main.session_cookie.error, [E]));
+ }
+
+ removeCSSClass(document.getElementById('main_tabbox'),'operator_change');
+ } else {
+ if (network.get_new_session(offlineStrings.getString('menu.cmd_chg_session.label'),{'url_prefix':obj.url_prefix})) {
+ obj.data.stash_retrieve();
+ obj.data.list.au[1] = JSON2js( temp_au );
+ obj.data.stash('list');
+ obj.data.previous_session = JSON2js( temp_ses );
+ obj.data.stash('previous_session');
+ x.setAttribute('label', offlineStrings.getFormattedString('menu.cmd_chg_session.operator.label', [obj.data.list.au[1].usrname()]) );
+ addCSSClass(document.getElementById('main_tabbox'),'operator_change');
+ }
+ }
+ } catch(E) {
+ obj.error.standard_unexpected_error_alert('cmd_change_session',E);
+ }
+ }
+ ],
+ 'cmd_manage_offline_xacts' : [
+ ['oncommand'],
+ function() {
+ obj.set_tab(obj.url_prefix(urls.XUL_OFFLINE_MANAGE_XACTS), {'tab_name' : offlineStrings.getString('menu.cmd_manage_offline_xacts.tab')}, {});
+ }
+ ],
+ 'cmd_download_patrons' : [
+ ['oncommand'],
+ function() {
+ try {
+ netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
+ var x = new XMLHttpRequest();
+ var url = 'http://' + XML_HTTP_SERVER + '/standalone/list.txt';
+ x.open("GET",url,false);
+ x.send(null);
+ if (x.status == 200) {
+ JSAN.use('util.file'); var file = new util.file('offline_patron_list');
+ file.write_content('truncate',x.responseText);
+ file.close();
+ file = new util.file('offline_patron_list.date');
+ file.write_content('truncate',new Date());
+ file.close();
+ alert(offlineStrings.getString('menu.cmd_download_patrons.complete.status'));
+ } else {
+ alert(offlineStrings.getFormattedString('menu.cmd_download_patrons.error', [x.status, x.statusText]));
+ }
+ } catch(E) {
+ obj.error.standard_unexpected_error_alert('cmd_download_patrons',E);
+ }
+ }
+ ],
+ 'cmd_adv_user_edit' : [
+ ['oncommand'],
+ function() {
+ obj.data.stash_retrieve();
+ obj.set_tab(obj.url_prefix(urls.XUL_PATRON_BARCODE_ENTRY), {}, { 'perm_editor' : true });
+ }
+ ],
+ 'cmd_print_list_template_edit' : [
+ ['oncommand'],
+ function() {
+ obj.data.stash_retrieve();
+ obj.set_tab(obj.url_prefix(urls.XUL_PRINT_LIST_TEMPLATE_EDITOR), {}, {});
+ }
+ ],
+ 'cmd_stat_cat_edit' : [
+ ['oncommand'],
+ function() {
+ obj.data.stash_retrieve();
+ obj.set_tab(obj.url_prefix(urls.XUL_STAT_CAT_EDIT) + '?ses='+window.escape(ses()), {'tab_name' : offlineStrings.getString('menu.cmd_stat_cat_edit.tab')},{});
+ }
+ ],
+ 'cmd_non_cat_type_edit' : [
+ ['oncommand'],
+ function() {
+ obj.data.stash_retrieve();
+ obj.set_tab(obj.url_prefix(urls.XUL_NON_CAT_LABEL_EDIT) + '?ses='+window.escape(ses()), {'tab_name' : offlineStrings.getString('menu.cmd_non_cat_type_edit.tab')},{});
+ }
+ ],
+ 'cmd_copy_location_edit' : [
+ ['oncommand'],
+ function() {
+ obj.data.stash_retrieve();
+ obj.set_tab(obj.url_prefix(urls.XUL_COPY_LOCATION_EDIT) + '?ses='+window.escape(ses()),{'tab_name' : offlineStrings.getString('menu.cmd_copy_location_edit.tab')},{});
+ }
+ ],
+ 'cmd_test' : [
+ ['oncommand'],
+ function() {
+ obj.data.stash_retrieve();
+ var content_params = { 'session' : ses(), 'authtime' : ses('authtime') };
+ obj.set_tab(obj.url_prefix(urls.XUL_OPAC_WRAPPER), {}, content_params);
+ }
+ ],
+ 'cmd_test_html' : [
+ ['oncommand'],
+ function() {
+ obj.data.stash_retrieve();
+ obj.set_tab(obj.url_prefix(urls.TEST_HTML) + '?ses='+window.escape(ses()),{ 'browser' : true },{});
+ }
+ ],
+ 'cmd_test_xul' : [
+ ['oncommand'],
+ function() {
+ obj.data.stash_retrieve();
+ obj.set_tab(obj.url_prefix(urls.TEST_XUL) + '?ses='+window.escape(ses()),{ 'browser' : false },{});
+ }
+ ],
+ 'cmd_console' : [
+ ['oncommand'],
+ function() {
+ obj.set_tab(obj.url_prefix(urls.XUL_DEBUG_CONSOLE),{'tab_name' : offlineStrings.getString('menu.cmd_console.tab')},{});
+ }
+ ],
+ 'cmd_shell' : [
+ ['oncommand'],
+ function() {
+ obj.set_tab(obj.url_prefix(urls.XUL_DEBUG_SHELL),{'tab_name' : offlineStrings.getString('menu.cmd_shell.tab')},{});
+ }
+ ],
+ 'cmd_xuleditor' : [
+ ['oncommand'],
+ function() {
+ obj.set_tab(obj.url_prefix(urls.XUL_DEBUG_XULEDITOR),{'tab_name' : offlineStrings.getString('menu.cmd_xuleditor.tab')},{});
+ }
+ ],
+ 'cmd_fieldmapper' : [
+ ['oncommand'],
+ function() {
+ obj.set_tab(obj.url_prefix(urls.XUL_DEBUG_FIELDMAPPER),{'tab_name' : offlineStrings.getString('menu.cmd_fieldmapper.tab')},{});
+ }
+ ],
+ 'cmd_survey_wizard' : [
+ ['oncommand'],
+ function() {
+ obj.data.stash_retrieve();
+ xulG.window.open(obj.url_prefix(urls.XUL_SURVEY_WIZARD),'survey_wizard','chrome');
+ }
+ ],
+ 'cmd_public_opac' : [
+ ['oncommand'],
+ function() {
+ var loc = urls.XUL_BROWSER + '?url=' + window.escape(
+ obj.url_prefix(urls.remote)
+ );
+ obj.set_tab(
+ loc,
+ {'tab_name' : offlineStrings.getString('menu.cmd_public_opac.tab'), 'browser' : false},
+ { 'no_xulG' : true, 'show_nav_buttons' : true, 'show_print_button' : true }
+ );
+ }
+ ],
+ 'cmd_clear_cache' : [
+ ['oncommand'],
+ function clear_the_cache() {
+ try {
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
- var cacheClass = Components.classes["@mozilla.org/network/cache-service;1"];
- var cacheService = cacheClass.getService(Components.interfaces.nsICacheService);
- cacheService.evictEntries(Components.interfaces.nsICache.STORE_ON_DISK);
- cacheService.evictEntries(Components.interfaces.nsICache.STORE_IN_MEMORY);
- } catch(E) {
- dump(E+'\n');alert(E);
- }
- }
- ],
- 'cmd_restore_all_tabs' : [
- ['oncommand'],
- function() {
- var tabs = obj.controller.view.tabs;
- for (var i = 0; i < tabs.childNodes.length; i++) {
- tabs.childNodes[i].hidden = false;
- }
- }
- ],
- 'cmd_extension_manager' : [
- ['oncommand'],
- function() {
- obj.set_tab('chrome://mozapps/content/extensions/extensions.xul?type=extensions',{'tab_name' : offlineStrings.getString('menu.cmd_extension_manager.tab')},{});
- }
- ],
- 'cmd_theme_manager' : [
- ['oncommand'],
- function() {
- obj.set_tab('chrome://mozapps/content/extensions/extensions.xul?type=themes',{'tab_name' : offlineStrings.getString('menu.cmd_theme_manager.tab')},{});
- }
- ],
- 'cmd_about_config' : [
- ['oncommand'],
- function() {
- obj.set_tab('chrome://global/content/config.xul',{'tab_name' : 'about:config'},{});
- }
- ],
- 'cmd_shutdown' : [
- ['oncommand'],
- function() {
- if (window.confirm(offlineStrings.getString('menu.cmd_shutdown.prompt'))) {
+ var cacheClass = Components.classes["@mozilla.org/network/cache-service;1"];
+ var cacheService = cacheClass.getService(Components.interfaces.nsICacheService);
+ cacheService.evictEntries(Components.interfaces.nsICache.STORE_ON_DISK);
+ cacheService.evictEntries(Components.interfaces.nsICache.STORE_IN_MEMORY);
+ } catch(E) {
+ dump(E+'\n');alert(E);
+ }
+ }
+ ],
+ 'cmd_restore_all_tabs' : [
+ ['oncommand'],
+ function() {
+ var tabs = obj.controller.view.tabs;
+ for (var i = 0; i < tabs.childNodes.length; i++) {
+ tabs.childNodes[i].hidden = false;
+ }
+ }
+ ],
+ 'cmd_extension_manager' : [
+ ['oncommand'],
+ function() {
+ obj.set_tab('chrome://mozapps/content/extensions/extensions.xul?type=extensions',{'tab_name' : offlineStrings.getString('menu.cmd_extension_manager.tab')},{});
+ }
+ ],
+ 'cmd_theme_manager' : [
+ ['oncommand'],
+ function() {
+ obj.set_tab('chrome://mozapps/content/extensions/extensions.xul?type=themes',{'tab_name' : offlineStrings.getString('menu.cmd_theme_manager.tab')},{});
+ }
+ ],
+ 'cmd_about_config' : [
+ ['oncommand'],
+ function() {
+ obj.set_tab('chrome://global/content/config.xul',{'tab_name' : 'about:config'},{});
+ }
+ ],
+ 'cmd_shutdown' : [
+ ['oncommand'],
+ function() {
+ if (window.confirm(offlineStrings.getString('menu.cmd_shutdown.prompt'))) {
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
- var windowManager = Components.classes["@mozilla.org/appshell/window-mediator;1"].getService();
- var windowManagerInterface = windowManager.QueryInterface(Components.interfaces.nsIWindowMediator);
- var enumerator = windowManagerInterface.getEnumerator(null);
- var w; // close all other windows
- while ( w = enumerator.getNext() ) {
- if (w != window) w.close();
- }
- window.close();
- }
- }
- ],
-
- };
-
- JSAN.use('util.controller');
- var cmd;
- obj.controller = new util.controller();
- obj.controller.init( { 'window_knows_me_by' : 'g.menu.controller', 'control_map' : cmd_map } );
-
- obj.controller.view.tabbox = window.document.getElementById('main_tabbox');
- obj.controller.view.tabs = obj.controller.view.tabbox.firstChild;
- obj.controller.view.panels = obj.controller.view.tabbox.lastChild;
-
- obj.new_tab(null,{'focus':true},null);
-
- obj.init_tab_focus_handlers();
- },
-
- 'spawn_search' : function(s) {
- var obj = this;
- obj.error.sdump('D_TRACE', offlineStrings.getFormattedString('menu.spawn_search.msg', [js2JSON(s)]) );
- obj.data.stash_retrieve();
- var loc = obj.url_prefix(urls.XUL_PATRON_DISPLAY);
- loc += '?doit=1&query=' + window.escape(js2JSON(s));
- obj.new_tab( loc, {}, {} );
- },
-
- 'init_tab_focus_handlers' : function() {
- var obj = this;
- for (var i = 0; i < obj.controller.view.tabs.childNodes.length; i++) {
- var tab = obj.controller.view.tabs.childNodes[i];
- var panel = obj.controller.view.panels.childNodes[i];
- tab.addEventListener(
- 'command',
- function(p) {
- return function() {
- try {
- netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
- if (p
- && p.firstChild
- && ( p.firstChild.nodeName == 'iframe' || p.firstChild.nodeName == 'browser' )
- && p.firstChild.contentWindow
- ) {
- if (typeof p.firstChild.contentWindow.default_focus == 'function') {
- p.firstChild.contentWindow.default_focus();
- } else {
- //p.firstChild.contentWindow.firstChild.focus();
- }
- }
- } catch(E) {
- obj.error.sdump('D_ERROR','init_tab_focus_handler: ' + js2JSON(E));
- }
- }
- }(panel),
- false
- );
- }
- },
-
- 'close_all_tabs' : function() {
- var obj = this;
- try {
- var count = obj.controller.view.tabs.childNodes.length;
- for (var i = 0; i < count; i++) obj.close_tab();
- setTimeout( function(){ obj.controller.view.tabs.firstChild.focus(); }, 0);
- } catch(E) {
- obj.error.standard_unexpected_error_alert(offlineStrings.getString('menu.close_all_tabs.error'),E);
- }
- },
-
- 'close_tab' : function () {
- var idx = this.controller.view.tabs.selectedIndex;
- var tab = this.controller.view.tabs.childNodes[idx];
- var panel = this.controller.view.panels.childNodes[ idx ];
- while ( panel.lastChild ) panel.removeChild( panel.lastChild );
- if (idx == 0) {
- try {
- this.controller.view.tabs.advanceSelectedTab(+1);
- } catch(E) {
- this.error.sdump('D_TAB','failed tabs.advanceSelectedTab(+1):'+js2JSON(E) + '\n');
- try {
- this.controller.view.tabs.advanceSelectedTab(-1);
- } catch(E) {
- this.error.sdump('D_TAB','failed again tabs.advanceSelectedTab(-1):'+
- js2JSON(E) + '\n');
- }
- }
- } else {
- try {
- this.controller.view.tabs.advanceSelectedTab(-1);
- } catch(E) {
- this.error.sdump('D_TAB','failed tabs.advanceSelectedTab(-1):'+js2JSON(E) + '\n');
- try {
- this.controller.view.tabs.advanceSelectedTab(+1);
- } catch(E) {
- this.error.sdump('D_TAB','failed again tabs.advanceSelectedTab(+1):'+
- js2JSON(E) + '\n');
- }
- }
-
- }
-
- this.error.sdump('D_TAB','\tnew tabbox.selectedIndex = ' + this.controller.view.tabbox.selectedIndex + '\n');
-
- this.controller.view.tabs.childNodes[ idx ].hidden = true;
- this.error.sdump('D_TAB','tabs.childNodes[ ' + idx + ' ].hidden = true;\n');
-
- // Make sure we keep at least one tab open.
- var tab_flag = true;
- for (var i = 0; i < this.controller.view.tabs.childNodes.length; i++) {
- var tab = this.controller.view.tabs.childNodes[i];
- if (!tab.hidden)
- tab_flag = false;
- }
- if (tab_flag) {
- this.controller.view.tabs.selectedIndex = 0;
- this.new_tab();
- }
- },
-
- 'find_free_tab' : function() {
- var last_not_hidden = -1;
- for (var i = 0; i
+ onload="try { my_init(); font_helper(); persist_helper(); } catch(E) { alert(E); }"
+ orient="vertical" width="800" height="500"
+ sizemode="maximized" oils_persist="width height" title="&staff.main.menu.title;"
+ xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
-
-
+
+
-
-
-
-
+ } catch(E) {
+ var err_msg = document.getElementById("offlineStrings").getFormattedString("common.exception", ["menu_frame.xul", E]);
+ try { g.error.sdump('D_ERROR',err_msg); } catch(E) { dump(err_msg); }
+ alert(err_msg);
+ }
+ }
+ ]]>
+
-
+
-
+
-
+
-
+
-
-
+
+
-
+
diff --git a/Open-ILS/xul/staff_client/chrome/content/main/menu_frame_menus.xul b/Open-ILS/xul/staff_client/chrome/content/main/menu_frame_menus.xul
index f5682a36e2..c1a356da5f 100644
--- a/Open-ILS/xul/staff_client/chrome/content/main/menu_frame_menus.xul
+++ b/Open-ILS/xul/staff_client/chrome/content/main/menu_frame_menus.xul
@@ -1,84 +1,84 @@
+ xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
-
-
-
-
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
+
+
+
+
+
-
-
-
+
+
+
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
-
-
-
+
+
+
-
-
-
-
-
+
+
+
+
+
@@ -122,166 +122,166 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+