LP1825851 Server managed/processed print templates
authorBill Erickson <berickxx@gmail.com>
Mon, 15 Apr 2019 22:11:46 +0000 (18:11 -0400)
committerBill Erickson <berickxx@gmail.com>
Mon, 22 Apr 2019 15:57:32 +0000 (08:57 -0700)
commit7fda87e2c511eb1fbe3e5f6b70768dca66ddd5d4
tree9b2ed73f0966e2752b3163e3cd312aee9a9ab758
parent7f08fdb4988ec1edf06ebbbf0fb1b32178292155
LP1825851 Server managed/processed print templates

Adds a new database table config.print_template (and IDL class) for
storing configurable, org-specific print templates.

Adds a web service which accepts POSTed print data and generates a
print-ready document.  Includes example Apache configs.

Teaches the AngJS and Angular apps to use the new web service for
generting output.

Adds and Angular print template administration interface.

Example setup using HTML::Restrict for scrubbing unwanted HTML elements
and attributes from print documents for security.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
25 files changed:
Open-ILS/examples/apache_24/eg_startup.in
Open-ILS/examples/apache_24/eg_vhost.conf.in
Open-ILS/examples/fm_IDL.xml
Open-ILS/src/eg2/src/app/core/idl.service.ts
Open-ILS/src/eg2/src/app/share/fm-editor/fm-editor.component.html
Open-ILS/src/eg2/src/app/share/fm-editor/fm-editor.component.ts
Open-ILS/src/eg2/src/app/share/print/print.component.ts
Open-ILS/src/eg2/src/app/share/print/print.service.ts
Open-ILS/src/eg2/src/app/share/util/sample-data.service.ts [new file with mode: 0644]
Open-ILS/src/eg2/src/app/staff/admin/server/admin-server-splash.component.html
Open-ILS/src/eg2/src/app/staff/admin/server/admin-server.module.ts
Open-ILS/src/eg2/src/app/staff/admin/server/print-template.component.html [new file with mode: 0644]
Open-ILS/src/eg2/src/app/staff/admin/server/print-template.component.ts [new file with mode: 0644]
Open-ILS/src/eg2/src/app/staff/admin/server/routing.module.ts
Open-ILS/src/eg2/src/app/staff/sandbox/sandbox.component.html
Open-ILS/src/eg2/src/app/staff/sandbox/sandbox.component.ts
Open-ILS/src/eg2/src/app/staff/sandbox/sandbox.module.ts
Open-ILS/src/eg2/src/app/staff/share/admin-page/admin-page.component.html
Open-ILS/src/eg2/src/app/staff/share/admin-page/admin-page.component.ts
Open-ILS/src/perlmods/lib/OpenILS/WWW/PrintTemplate.pm [new file with mode: 0644]
Open-ILS/src/sql/Pg/upgrade/XXXX.schema.server-print-templates.sql [new file with mode: 0644]
Open-ILS/src/templates/staff/share/print_templates/t_patron_address.tt2 [deleted file]
Open-ILS/web/js/ui/default/staff/admin/workstation/app.js
Open-ILS/web/js/ui/default/staff/circ/patron/app.js
Open-ILS/web/js/ui/default/staff/services/print.js