From 0e58c1db48f0860322364334d62d5c46c2ef9495 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Wed, 23 Aug 2017 15:22:28 -0400 Subject: [PATCH] LP#1708485: (follow-up) improve dest_courier_code support This patch ensures that dest_courier_code is added to the printer context; it also displays the courier code (if set) on the transit modal and mentions dest_courier_code in the inline documentation for transit and hold slips. Signed-off-by: Galen Charlton Signed-off-by: Kathy Lussier --- Open-ILS/src/templates/staff/circ/share/t_transit_dialog.tt2 | 3 +++ .../staff/share/print_templates/t_hold_transit_slip.tt2 | 1 + .../templates/staff/share/print_templates/t_transit_slip.tt2 | 1 + Open-ILS/web/js/ui/default/staff/circ/services/circ.js | 1 + 4 files changed, 6 insertions(+) diff --git a/Open-ILS/src/templates/staff/circ/share/t_transit_dialog.tt2 b/Open-ILS/src/templates/staff/circ/share/t_transit_dialog.tt2 index 5eba16e48f..c04a6064ff 100644 --- a/Open-ILS/src/templates/staff/circ/share/t_transit_dialog.tt2 +++ b/Open-ILS/src/templates/staff/circ/share/t_transit_dialog.tt2 @@ -10,6 +10,9 @@ [% l('Destination') %] {{dest_location.shortname}} +
+ {{dest_courier_code}} +

diff --git a/Open-ILS/src/templates/staff/share/print_templates/t_hold_transit_slip.tt2 b/Open-ILS/src/templates/staff/share/print_templates/t_hold_transit_slip.tt2 index 511881ce03..8aecd85802 100644 --- a/Open-ILS/src/templates/staff/share/print_templates/t_hold_transit_slip.tt2 +++ b/Open-ILS/src/templates/staff/share/print_templates/t_hold_transit_slip.tt2 @@ -8,6 +8,7 @@ Template for printing hold transit slips. Fields include: * dest_address.city * dest_address.state * dest_address.post_code +* dest_courier_code - from lib.courier_code library setting * hold.behind_desk * copy.barcode * title diff --git a/Open-ILS/src/templates/staff/share/print_templates/t_transit_slip.tt2 b/Open-ILS/src/templates/staff/share/print_templates/t_transit_slip.tt2 index a9b7124bbd..bee4573857 100644 --- a/Open-ILS/src/templates/staff/share/print_templates/t_transit_slip.tt2 +++ b/Open-ILS/src/templates/staff/share/print_templates/t_transit_slip.tt2 @@ -8,6 +8,7 @@ Template for printing a transit slip. Fields include: * dest_address.city * dest_address.state * dest_address.post_code +* dest_courier_code - from lib.courier_code library setting * copy.barcode * title * author diff --git a/Open-ILS/web/js/ui/default/staff/circ/services/circ.js b/Open-ILS/web/js/ui/default/staff/circ/services/circ.js index 7e7333e633..27755fe3b5 100644 --- a/Open-ILS/web/js/ui/default/staff/circ/services/circ.js +++ b/Open-ILS/web/js/ui/default/staff/circ/services/circ.js @@ -1474,6 +1474,7 @@ function($uibModal , $q , egCore , egAlertDialog , egConfirmDialog, // route_dialog includes the "route to holds shelf" // dialog, which has no transit print_context.transit = egCore.idl.toHash(data.transit); + print_context.dest_courier_code = data.dest_courier_code; if (data.address) { print_context.dest_address = egCore.idl.toHash(data.address); } -- 2.43.2