From ef25453cd7e1f6b46728f8cfee17ba44a1b9955f Mon Sep 17 00:00:00 2001 From: Remington Steed Date: Fri, 23 Mar 2018 10:46:32 -0400 Subject: [PATCH] LP#1693036: Simplify template, cleanup preview data This commit corrects a few minor problems, and also attempts to simplify and cleanup the template. The changes include: - Adding the missing "ident_type2" field to the template and JS - Adding missing sample data for "county" - Moving "postal code" closer to the standard location (at the end of the address) - Fixing typos, and making "Claims..." labels more consistent - Minor cleanup of the sample data - Removing template comments that list available variables, because this template is simpler than most, intended to print everything Signed-off-by: Remington Steed Signed-off-by: Dan Wells --- .../share/print_templates/t_patron_data.tt2 | 26 +++++-------------- .../ui/default/staff/admin/workstation/app.js | 16 +++++++----- 2 files changed, 15 insertions(+), 27 deletions(-) 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 6c84270e69..48d6152174 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,9 +1,5 @@
=-=-=-=
@@ -21,6 +17,7 @@ Template for printing a patron's data, including addesses and statistical catego
Juvenile: {{patron.juvenile}}
Primary Identification Type: {{patron.ident_type.name()}}
Primary Identification: {{patron.ident_value}}
+
Secondary Identification Type: {{patron.ident_type2.name()}}
Secondary Identification: {{patron.ident_value2}}
Email Address: {{patron.email}}
Daytime Phone: {{patron.day_phone}}
@@ -33,36 +30,25 @@ Template for printing a patron's data, including addesses and statistical catego
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}}
County: {{address.county}}
State: {{address.state}}
-
Contry: {{address.country}}
+
Postal Code: {{address.post_code}}
+
Country: {{address.country}}
Valid Address?: {{address.valid}}
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 ecafa85e0e..012eab08bd 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 @@ -356,8 +356,8 @@ function($scope , $q , egCore , ngToast) { // NOTE: A lot of this data can be shared across templates. var seed_user = { prefix : 'Mr', - first_given_name : 'Slow', - second_given_name : 'Joe', + first_given_name : 'Joseph', + second_given_name : 'Martin', family_name : 'Jones', suffix : 'III', card : { @@ -369,17 +369,16 @@ function($scope , $q , egCore , ngToast) { total_paid : '1.00' }, expire_date : '2020-12-31', - alias : 'the dude', + alias : 'Joey J.', has_email : true, has_phone : false, - dob : '1984-11-07T00:00:00-8:00', + dob : '1980-01-01T00:00:00-8:00', juvenile : 'f', usrname : '30393830393', day_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'}}, @@ -388,9 +387,11 @@ function($scope , $q , egCore , ngToast) { master_account : 'f', claims_returned_count : '0', claims_never_checked_out_count : '0', - alert_message : 'Very slow', - ident_type: {name: function() {return 'Other'}}, + alert_message : 'Coat is in the lost-and-found behind the circ desk', + ident_type: {name: function() {return 'Drivers License'}}, ident_value: '11332445', + ident_type2: {name: function() {return 'Other'}}, + ident_value2 : '55442211', addresses : [], stat_cat_entries : [ { @@ -408,6 +409,7 @@ function($scope , $q , egCore , ngToast) { street1 : '123 Apple Rd', street2 : 'Suite B', city : 'Anywhere', + county : 'Great County', state : 'XX', country : 'US', post_code : '12345', -- 2.43.2