From 244bf7117553f1876e1f1edbd682c51df739646f Mon Sep 17 00:00:00 2001 From: phasefx Date: Wed, 13 Jan 2010 22:16:24 +0000 Subject: [PATCH] partial backport of changeset 15315 for %courier_code% transit slip template macro and lib.courier_code org unit setting git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_6@15317 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/web/opac/locale/en-US/lang.dtd | 2 ++ Open-ILS/xul/staff_client/chrome/content/main/constants.js | 1 + Open-ILS/xul/staff_client/server/admin/org_unit_settings.xhtml | 4 ++++ Open-ILS/xul/staff_client/server/circ/util.js | 5 +++++ 4 files changed, 12 insertions(+) diff --git a/Open-ILS/web/opac/locale/en-US/lang.dtd b/Open-ILS/web/opac/locale/en-US/lang.dtd index 05bbbac9a1..33f83d329f 100644 --- a/Open-ILS/web/opac/locale/en-US/lang.dtd +++ b/Open-ILS/web/opac/locale/en-US/lang.dtd @@ -1678,6 +1678,8 @@ + + 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 aa4f2252c2..e10a3c75e8 100644 --- a/Open-ILS/xul/staff_client/chrome/content/main/constants.js +++ b/Open-ILS/xul/staff_client/chrome/content/main/constants.js @@ -122,6 +122,7 @@ const api = { '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_AOUS_SPECIFIC_RETRIEVE' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.ou_setting.ancestor_default' }, '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 }, diff --git a/Open-ILS/xul/staff_client/server/admin/org_unit_settings.xhtml b/Open-ILS/xul/staff_client/server/admin/org_unit_settings.xhtml index fa528ca053..60c6633d2e 100644 --- a/Open-ILS/xul/staff_client/server/admin/org_unit_settings.xhtml +++ b/Open-ILS/xul/staff_client/server/admin/org_unit_settings.xhtml @@ -209,6 +209,10 @@ 'ui.circ.patron_display_timeout_interval' : { label : '&staff.server.admin.org_settings.ui.circ.patron_display_timeout_interval;', desc : '&staff.server.admin.org_settings.ui.circ.patron_display_timeout_interval.desc;', + }, + 'lib.courier_code' : { + label : '&staff.server.admin.org_settings.lib.courier_code;', + desc : '&staff.server.admin.org_settings.lib.courier_code.desc;', } }; diff --git a/Open-ILS/xul/staff_client/server/circ/util.js b/Open-ILS/xul/staff_client/server/circ/util.js index da2c5498c5..dca7717a60 100644 --- a/Open-ILS/xul/staff_client/server/circ/util.js +++ b/Open-ILS/xul/staff_client/server/circ/util.js @@ -2029,6 +2029,7 @@ circ.util.checkin_via_barcode2 = function(session,params,backdate,auto_print,che 'route_to' : '', 'route_to_msg' : '', 'route_to_org_fullname' : '', + 'courier_code' : '', 'street1' : '', 'street2' : '', 'city_state_zip' : '', @@ -2289,6 +2290,10 @@ circ.util.checkin_via_barcode2 = function(session,params,backdate,auto_print,che print_data.route_to_org = lib; print_data.route_to_msg = document.getElementById('circStrings').getFormattedString('staff.circ.utils.route_to.destination', [check.route_to]); print_data.route_to_org_fullname = lib.name(); + var aous_req = network.simple_request('FM_AOUS_SPECIFIC_RETRIEVE',[ lib.id(), 'lib.courier_code', ses() ]); + if (aous_req) { + print_data.courier_code = aous_req.value || ''; + } msg += print_data.route_to_msg; msg += '\n\n'; msg += lib.name(); -- 2.11.0