From 6ab64bf3c5f7a4726649c4c443b665d47cf247e9 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Tue, 16 Apr 2019 18:02:00 -0400 Subject: [PATCH] server-driven print templates AngJS continued Signed-off-by: Bill Erickson --- Open-ILS/web/js/ui/default/staff/services/print.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Open-ILS/web/js/ui/default/staff/services/print.js b/Open-ILS/web/js/ui/default/staff/services/print.js index ebe9faa651..95c3a07ee4 100644 --- a/Open-ILS/web/js/ui/default/staff/services/print.js +++ b/Open-ILS/web/js/ui/default/staff/services/print.js @@ -196,7 +196,12 @@ function($q , $window , $timeout , $http , egHatch , egAuth , egIDL , egOrg , eg }).then(function(content) { // Ingest the content into the page DOM. - return service.ingest_print_content(type, content, printScope); + if (args.server_hosted) { + // Server hosted print templates arrive fully formed. + return service.ingest_print_content(type, null, null, content); + } else { + return service.ingest_print_content(type, content, printScope); + } }).then(function(html) { -- 2.11.0