From cbeaec4b531f92a7a8daac082a02cc71e27e27c4 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 --- .../staff/circ/share/t_transit_dialog.tt2 | 3 +++ .../share/print_templates/t_hold_transit_slip.tt2 | 24 ++++++++++++++++++++++ .../staff/share/print_templates/t_transit_slip.tt2 | 15 ++++++++++++++ .../web/js/ui/default/staff/circ/services/circ.js | 1 + 4 files changed, 43 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 2562e6afc8..d2f4c99e0e 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 e8370bc8c5..98af0417d6 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 @@ -1,3 +1,27 @@ +
{{dest_courier_code}}
{{dest_location.shortname}}

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 a16662a1e4..e29f8148d7 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 @@ -1,3 +1,18 @@ +
{{dest_courier_code}}
{{dest_location.shortname}}

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 e28007cef8..c0b0f4811f 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 @@ -1423,6 +1423,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.11.0