lp1693036 Patron Editor Print Data
authorKyle Huckins <khuckins@catalyte.io>
Thu, 15 Feb 2018 23:03:20 +0000 (23:03 +0000)
committerChris Sharp <csharp@georgialibraries.org>
Wed, 30 Jan 2019 14:17:54 +0000 (09:17 -0500)
- Add Print button to Patron Editor.
- Add Patron Data print template.
- Add additional print template dummy data needed for Patron
Data template.
- Implement print functionality for Patron registration/edit
data.

Signed-off-by: Kyle Huckins <khuckins@catalyte.io>
 Changes to be committed:
modified:   Open-ILS/src/templates/staff/admin/workstation/t_print_templates.tt2
modified:   Open-ILS/src/templates/staff/circ/patron/reg_actions.tt2
new file:   Open-ILS/src/templates/staff/share/print_templates/t_patron_data.tt2
modified:   Open-ILS/web/js/ui/default/staff/admin/workstation/app.js
modified:   Open-ILS/web/js/ui/default/staff/circ/patron/regctl.js

Open-ILS/src/templates/staff/share/print_templates/t_patron_data.tt2
Open-ILS/web/js/ui/default/staff/admin/workstation/app.js

index 48d6152..ff8ec8c 100644 (file)
@@ -1,5 +1,9 @@
 <!--
-Template for printing a patron's data, including addresses and statistical categories.
+Template for printing a patron's data, including addesses and statistical categories. Fields include:
+
+* patron.first_given_name
+* patron.second_given_name
+* patron.family_name
 -->
 <div>
   <div>=-=-=-=</div>
@@ -30,14 +34,22 @@ Template for printing a patron's data, including addresses and statistical categ
   <div>Active: {{patron.active}}</div>
   <div>Barred: {{patron.barred}}</div>
   <div>Is Group Lead Account: {{patron.master_account}}</div>
-  <div>Claims-Returned Count: {{patron.claims_returned_count}}</div>
-  <div>Claims-Never-Checked-Out Count: {{patron.claims_never_checked_out_count}}</div>
+  <div>Claims-returned Count: {{patron.claims_returned_count}}</div>
+  <div>Claims Never Checked Out Count: {{patron.claims_never_checked_out_count}}</div>
   <div>Alert Message: {{patron.alert_message}}</div>
 
   <div>
+    <!--
+    * address.street1
+    * address.street2
+    * address.city
+    * address.state
+    * address.post_code
+    -->
     <div ng-repeat="address in patron.addresses">
       <div>-------</div>
       <div>Type: {{address.address_type}}</div>
+      <div>Postal Code: {{address.post_code}}</div>
       <div>Street (1): {{address.street1}}</div>
       <div>Street (2): {{address.street2}}</div>
       <div>City: {{address.city}}</div>
@@ -49,6 +61,10 @@ Template for printing a patron's data, including addresses and statistical categ
       <div>Within City Limits?: {{address.within_city_limits}}</div>
     </div>
     <div>-------</div>
+    <!-- Stat Cats
+    *  entry.stat_cat_entry
+    *  entry.stat_cat.name
+    -->
     <div ng-repeat="entry in patron.stat_cat_entries">{{entry.stat_cat.name}} : {{entry.stat_cat_entry}}</div>
     <div>=-=-=-=</div>
   </div>
index d863844..6eb6a0e 100644 (file)
@@ -372,16 +372,17 @@ function($scope , $q , egCore , ngToast) {
             total_paid : '1.00'
         },
         expire_date : '2020-12-31',
-        alias : 'Joey J.',
+        alias : 'the dude',
         has_email : true,
         has_phone : false,
-        dob : '1980-01-01T00:00:00-8:00',
+        dob : '1984-11-07T00:00:00-8:00',
         juvenile : 'f',
         usrname : '30393830393',
-        day_phone : '111-222-3333',
+        daytime_phone : '111-222-3333',
         evening_phone : '222-333-1111',
         other_phone : '333-111-2222',
         email : 'user@example.com',
+        ident_value2 : 'Carol',
         home_ou : {name: function() {return 'BR1'}},
         profile : {name: function() {return 'Patrons'}},
         net_access_level : {name: function() {return 'Filtered'}},
@@ -390,11 +391,9 @@ function($scope , $q , egCore , ngToast) {
         master_account : 'f',
         claims_returned_count : '0',
         claims_never_checked_out_count : '0',
-        alert_message : 'Coat is in the lost-and-found behind the circ desk',
-        ident_type: {name: function() {return 'Drivers License'}},
+        alert_message : 'Very slow',
+        ident_type: {name: function() {return 'Other'}},
         ident_value: '11332445',
-        ident_type2: {name: function() {return 'Other'}},
-        ident_value2 : '55442211',
         addresses : [],
         stat_cat_entries : [
             {