From: Galen Charlton Date: Wed, 23 Aug 2017 19:22:28 +0000 (-0400) Subject: LP#1708485: (follow-up) improve dest_courier_code support X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=refs%2Fheads%2Fuser%2Fgmcharlt%2Flp1708485_signoff;p=working%2FEvergreen.git 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 --- 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 fe87db6302..d0f515a4db 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 @@ -1455,6 +1455,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); }