server-driven print templates AngJS continued
authorBill Erickson <berickxx@gmail.com>
Tue, 16 Apr 2019 22:02:00 +0000 (18:02 -0400)
committerBill Erickson <berickxx@gmail.com>
Fri, 19 Apr 2019 17:31:22 +0000 (13:31 -0400)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/web/js/ui/default/staff/services/print.js

index ebe9faa..95c3a07 100644 (file)
@@ -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) {