From: Bill Erickson Date: Fri, 12 Jul 2019 14:15:17 +0000 (-0400) Subject: LPLP1825851 recover address label template X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=7454755591edc2bd5e8da58adf174f7a34883336;p=working%2FEvergreen.git LPLP1825851 recover address label template Signed-off-by: Bill Erickson --- diff --git a/Open-ILS/src/templates/staff/share/print_templates/t_patron_address.tt2 b/Open-ILS/src/templates/staff/share/print_templates/t_patron_address.tt2 new file mode 100644 index 0000000000..55996b2758 --- /dev/null +++ b/Open-ILS/src/templates/staff/share/print_templates/t_patron_address.tt2 @@ -0,0 +1,25 @@ + +
+
+ {{patron.first_given_name}} + {{patron.second_given_name}} + {{patron.family_name}} +
+
{{address.street1}}
+
{{address.street2}}
+
+ {{address.city}}, {{address.state}} {{address.post_code}} +
+
diff --git a/docs/RELEASE_NOTES_NEXT/Administration/server-print-templates.adoc b/docs/RELEASE_NOTES_NEXT/Administration/server-print-templates.adoc index a08b94ecca..bb093c95dc 100644 --- a/docs/RELEASE_NOTES_NEXT/Administration/server-print-templates.adoc +++ b/docs/RELEASE_NOTES_NEXT/Administration/server-print-templates.adoc @@ -49,7 +49,7 @@ use OpenILS::WWW::PrintTemplate ('/openils/conf/opensrf_core.xml', 0); New Perl Dependency +++++++++++++++++++ -A new Perl module `HTML::Defang` is required for cleansing generate HTML +A new Perl module `HTML::Defang` is required for cleansing generated HTML of executable code for security purposes. The dependency is added to the Makefile.install process for new builds. Existing Evergreen instances will need the dependency manually installed. @@ -60,23 +60,3 @@ Installing on (for example) Ubuntu: --------------------------------------------------------------------------- sudo apt-get install libhtml-defang-perl --------------------------------------------------------------------------- - -Migrating To A Server Template -++++++++++++++++++++++++++++++ - -Once a template is added to the database and the admin has configured the -template as desired, the server-managed template will be used instead of -the traditional TT2 templates in the AngularJS client. - -Using the new 'Address Label' template for example. - -1. Modify, test, and activate the server template labeled 'Address Label' -2. Remove any the workstation setting which stores user-saved versions - of the template by deleting the workstation type. -[source,sql] ---------------------------------------------------------------------------- -DELETE FROM config.workstation_setting_type - WHERE name = 'eg.print.template.patron_address'; ---------------------------------------------------------------------------- -3. Navigate to patron search, search for a patron, then 'Print' the address. -