From: Kyle Huckins Date: Thu, 15 Feb 2018 23:03:20 +0000 (+0000) Subject: lp1693036 Patron Editor Print Data X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=b609c4b898a8f8ff41bfb73d6936d8666155ae67;p=evergreen%2Fpines.git lp1693036 Patron Editor Print Data - 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 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 --- diff --git a/Open-ILS/src/templates/staff/share/print_templates/t_patron_data.tt2 b/Open-ILS/src/templates/staff/share/print_templates/t_patron_data.tt2 index 48d6152174..ff8ec8c148 100644 --- a/Open-ILS/src/templates/staff/share/print_templates/t_patron_data.tt2 +++ b/Open-ILS/src/templates/staff/share/print_templates/t_patron_data.tt2 @@ -1,5 +1,9 @@
=-=-=-=
@@ -30,14 +34,22 @@ Template for printing a patron's data, including addresses and statistical categ
Active: {{patron.active}}
Barred: {{patron.barred}}
Is Group Lead Account: {{patron.master_account}}
-
Claims-Returned Count: {{patron.claims_returned_count}}
-
Claims-Never-Checked-Out Count: {{patron.claims_never_checked_out_count}}
+
Claims-returned Count: {{patron.claims_returned_count}}
+
Claims Never Checked Out Count: {{patron.claims_never_checked_out_count}}
Alert Message: {{patron.alert_message}}
+
-------
Type: {{address.address_type}}
+
Postal Code: {{address.post_code}}
Street (1): {{address.street1}}
Street (2): {{address.street2}}
City: {{address.city}}
@@ -49,6 +61,10 @@ Template for printing a patron's data, including addresses and statistical categ
Within City Limits?: {{address.within_city_limits}}
-------
+
{{entry.stat_cat.name}} : {{entry.stat_cat_entry}}
=-=-=-=
diff --git a/Open-ILS/web/js/ui/default/staff/admin/workstation/app.js b/Open-ILS/web/js/ui/default/staff/admin/workstation/app.js index d863844e3d..6eb6a0e9bd 100644 --- a/Open-ILS/web/js/ui/default/staff/admin/workstation/app.js +++ b/Open-ILS/web/js/ui/default/staff/admin/workstation/app.js @@ -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 : [ {