LPLP1825851 recover address label template
authorBill Erickson <berickxx@gmail.com>
Fri, 12 Jul 2019 14:15:17 +0000 (10:15 -0400)
committerBill Erickson <berickxx@gmail.com>
Fri, 12 Jul 2019 14:15:17 +0000 (10:15 -0400)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/templates/staff/share/print_templates/t_patron_address.tt2 [new file with mode: 0644]
docs/RELEASE_NOTES_NEXT/Administration/server-print-templates.adoc

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 (file)
index 0000000..55996b2
--- /dev/null
@@ -0,0 +1,25 @@
+<!--
+Template for printing a patron address. Fields include:
+
+* first_given_name
+* second_given_name
+* family_name
+* address.street1
+* address.street2
+* address.city
+* address.state
+* address.post_code
+
+-->
+<div>
+  <div>
+    {{patron.first_given_name}} 
+    {{patron.second_given_name}} 
+    {{patron.family_name}}
+  </div>
+  <div>{{address.street1}}</div>
+  <div ng-if="address.street2">{{address.street2}}</div>
+  <div>
+    {{address.city}}, {{address.state}} {{address.post_code}}
+  </div>
+</div>
index a08b94e..bb093c9 100644 (file)
@@ -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.
-