]> git.evergreen-ils.org Git - Evergreen.git/commit
LP#1646166 Hatch printing multi root-node templates
authorBill Erickson <berickxx@gmail.com>
Thu, 16 Feb 2017 17:17:55 +0000 (12:17 -0500)
committerKathy Lussier <klussier@masslnc.org>
Thu, 16 Feb 2017 20:21:36 +0000 (15:21 -0500)
commit500b7273183d62a1de67bbac6f0eafa8582bcb59
tree5a03d0851267e0b94befeab17f838f17a08cc31d
parent590f351e8399510384440f3baf351ef898a07f12
LP#1646166 Hatch printing multi root-node templates

Print templates with no root element or root elements that contained
necessary attributes (id, style, etc.) failed to print correctly in
some casese with Hatch HTML printing because the root node was dropped
after compilation.  This commit changes how we extract the compiled HTML
from the page, using the more reliable method of pulling it directly
from the print element div instead of inspecting the compiled nodes.

Commit also wraps all content in <html/><body/> for good measure.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Open-ILS/web/js/ui/default/staff/services/print.js