From f9c78d4295e6da3ea532d6c155d94a31b8e59e1c Mon Sep 17 00:00:00 2001 From: Dan Pearl Date: Wed, 3 Apr 2019 15:51:00 -0400 Subject: [PATCH] LP various: Make more fields available in print receipts Useful fields were not available in print receipts for several reasons. a) the documentation was incorrect; b) the value wasn't defined for the preview mechanism; c) the data wasn't accessible when rendering the receipt for printing. Fixes: LP 1820741 LP 1821047 LP 1821399 LP 1822836 LP 1822869 LP 1823071 LP 1823197 Signed-off-by: Dan Pearl --- .../src/templates/staff/share/print_templates/t_hold_transit_slip.tt2 | 1 + Open-ILS/src/templates/staff/share/print_templates/t_transit_slip.tt2 | 1 + Open-ILS/web/js/ui/default/staff/admin/workstation/app.js | 3 +++ 3 files changed, 5 insertions(+) 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 8aecd85802..02284a933d 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 @@ -11,6 +11,7 @@ Template for printing hold transit slips. Fields include: * dest_courier_code - from lib.courier_code library setting * hold.behind_desk * copy.barcode +* copy.status.name - Transit copy status * title * patron.family_name * patron.first_given_name 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 bee4573857..84dc41369b 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 @@ -10,6 +10,7 @@ Template for printing a transit slip. Fields include: * dest_address.post_code * dest_courier_code - from lib.courier_code library setting * copy.barcode +* copy.status.name - Transit copy status * title * author --> diff --git a/Open-ILS/web/js/ui/default/staff/admin/workstation/app.js b/Open-ILS/web/js/ui/default/staff/admin/workstation/app.js index cb5ab625c2..ba00d4a910 100644 --- a/Open-ILS/web/js/ui/default/staff/admin/workstation/app.js +++ b/Open-ILS/web/js/ui/default/staff/admin/workstation/app.js @@ -430,6 +430,9 @@ function($scope , $q , egCore , ngToast) { var seed_copy = { barcode : '33434322323', + status : { + name : 'In transit' + }; call_number : { label : '636.8 JON', record : { -- 2.11.0