From: Bill Erickson Date: Tue, 16 Apr 2019 22:02:00 +0000 (-0400) Subject: server-driven print templates AngJS continued X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=6ab64bf3c5f7a4726649c4c443b665d47cf247e9;p=working%2FEvergreen.git server-driven print templates AngJS continued Signed-off-by: Bill Erickson --- 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) {