From cb54628520a3edbd6aef18beccfaa43010f80516 Mon Sep 17 00:00:00 2001 From: Terran McCanna Date: Tue, 21 Sep 2021 16:18:51 -0400 Subject: [PATCH] LP1830387 Add access to juvenile flag in print templates Adds juvenile t/f flag to print templates for checkout and items out. Signed-off-by: Terran McCanna Signed-off-by: Jennifer Weston Signed-off-by: Galen Charlton --- .../src/templates/staff/share/print_templates/t_checkout.tt2 | 1 + .../src/templates/staff/share/print_templates/t_items_out.tt2 | 1 + Open-ILS/web/js/ui/default/staff/circ/patron/checkout.js | 3 ++- Open-ILS/web/js/ui/default/staff/circ/patron/items_out.js | 3 ++- 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Open-ILS/src/templates/staff/share/print_templates/t_checkout.tt2 b/Open-ILS/src/templates/staff/share/print_templates/t_checkout.tt2 index 5b85c56d33..069ec4af02 100644 --- a/Open-ILS/src/templates/staff/share/print_templates/t_checkout.tt2 +++ b/Open-ILS/src/templates/staff/share/print_templates/t_checkout.tt2 @@ -21,6 +21,7 @@ Template for printing checkout receipts; fields available include: * alias - aka Holds Alias * has_email - boolean value to show/hide elements on the receipt * has_phone - same as has_email + * juvenile - boolean value (t/f) to show/hide elements on the receipt * circulations - list of loans made during this session. Each checkout includes: diff --git a/Open-ILS/src/templates/staff/share/print_templates/t_items_out.tt2 b/Open-ILS/src/templates/staff/share/print_templates/t_items_out.tt2 index 2661c24237..fc28a8b3da 100644 --- a/Open-ILS/src/templates/staff/share/print_templates/t_items_out.tt2 +++ b/Open-ILS/src/templates/staff/share/print_templates/t_items_out.tt2 @@ -17,6 +17,7 @@ Fields include: * alias - aka Holds Alias * has_email - boolean value to show/hide elements on the receipt * has_phone - same as has_email + * juvenile - boolean value (t/f) to show/hide elements on the receipt * circulations - list of current loans, including for each checkout diff --git a/Open-ILS/web/js/ui/default/staff/circ/patron/checkout.js b/Open-ILS/web/js/ui/default/staff/circ/patron/checkout.js index 6715dd6473..a812a5c2ee 100644 --- a/Open-ILS/web/js/ui/default/staff/circ/patron/checkout.js +++ b/Open-ILS/web/js/ui/default/staff/circ/patron/checkout.js @@ -348,7 +348,8 @@ function($scope , $q , $routeParams , egCore , egUser , patronSvc , expire_date : cusr.expire_date(), alias : cusr.alias(), has_email : Boolean($scope.has_email_address()), - has_phone : Boolean(cusr.day_phone() || cusr.evening_phone() || cusr.other_phone()) + has_phone : Boolean(cusr.day_phone() || cusr.evening_phone() || cusr.other_phone()), + juvenile : cusr.juvenile() }; return egCore.print.print({ diff --git a/Open-ILS/web/js/ui/default/staff/circ/patron/items_out.js b/Open-ILS/web/js/ui/default/staff/circ/patron/items_out.js index db0489d8e0..d559c41118 100644 --- a/Open-ILS/web/js/ui/default/staff/circ/patron/items_out.js +++ b/Open-ILS/web/js/ui/default/staff/circ/patron/items_out.js @@ -416,7 +416,8 @@ function($scope , $q , $routeParams , $timeout , egCore , egUser , patronSvc , expire_date : cusr.expire_date(), alias : cusr.alias(), has_email : Boolean(patronSvc.current.email() && patronSvc.current.email().match(/.*@.*/)), - has_phone : Boolean(cusr.day_phone() || cusr.evening_phone() || cusr.other_phone()) + has_phone : Boolean(cusr.day_phone() || cusr.evening_phone() || cusr.other_phone()), + juvenile : cusr.juvenile() }; return egCore.print.print({ -- 2.43.2