From 058c331b02586612ed8efb78772de91e042e3a91 Mon Sep 17 00:00:00 2001 From: Dan Pearl Date: Fri, 7 Sep 2018 13:18:56 -0400 Subject: [PATCH] LP 1772053: Add Missing Fields to Print Templates Almost complete implementation for LP1772053. To be done: items relating to call numbers, prefixes and suffixes for Hold Pull Lists and Transit Slips. Signed-off-by: Daniel Pearl Signed-off-by: Terran McCanna Signed-off-by: Chris Sharp --- .../share/print_templates/t_bills_current.tt2 | 22 ++++++++++- .../print_templates/t_bills_historical.tt2 | 37 ++++++++++--------- .../share/print_templates/t_checkout.tt2 | 15 +++++--- .../print_templates/t_hold_pull_list.tt2 | 14 +++---- .../print_templates/t_hold_shelf_list.tt2 | 2 + .../print_templates/t_hold_shelf_slip.tt2 | 4 +- .../print_templates/t_hold_transit_slip.tt2 | 1 + .../share/print_templates/t_items_out.tt2 | 17 ++++++--- .../staff/share/print_templates/t_renew.tt2 | 15 ++++++-- .../share/print_templates/t_transit_slip.tt2 | 7 ++-- .../ui/default/staff/admin/workstation/app.js | 37 +++++++++++++++++-- .../js/ui/default/staff/circ/patron/bills.js | 25 +++++++++++-- .../ui/default/staff/circ/patron/checkout.js | 10 +++-- .../web/js/ui/default/staff/circ/renew/app.js | 5 +++ .../js/ui/default/staff/circ/services/circ.js | 2 +- 15 files changed, 159 insertions(+), 54 deletions(-) diff --git a/Open-ILS/src/templates/staff/share/print_templates/t_bills_current.tt2 b/Open-ILS/src/templates/staff/share/print_templates/t_bills_current.tt2 index cf6df6624a..af7dd0cba8 100644 --- a/Open-ILS/src/templates/staff/share/print_templates/t_bills_current.tt2 +++ b/Open-ILS/src/templates/staff/share/print_templates/t_bills_current.tt2 @@ -20,9 +20,27 @@ to this template includes: pref_ versions of all name fields (e.g. pref_family_name); * transasctions - a list of transactions, each of which contains: + xact.id - Bill unique id + xact.title - Copy title + xact.copy_barcode - Copy barcode + xact.xact_finish - Billing finish date and time + xact.xact_start - Billing start date and time xact.summary - information about the transaction - xact.title - Item title - xact.copy_barcode - Item barcode + xact.summary.balance_owed - Balance owed + xact.summary.last_billing_note - Last billing note + xact.summary.last_billing_type - Last billing type + xact.summary.last_payment_note - Last payment note + xact.summary.last_payment_ts - Last payment date and time + xact.summary.last_payment_type - Last payment type + xact.summary.total_owed - Total billed + xact.summary.total_paid - Total paid + xact.summary.xact_type - Billing type + xact.call_number - Information about the copy + xact.call_number.label - Copy call number + xact.call_number.prefix - Copy call number prefix + xact.call_number.suffix - Copy call number suffix + xact.call_number.owning_lib.name - The owning library's name + xact.call_number.owning_lib.shortname - The owning library's shortname --> Welcome to {{current_location.name}}!
You have the following bills: diff --git a/Open-ILS/src/templates/staff/share/print_templates/t_bills_historical.tt2 b/Open-ILS/src/templates/staff/share/print_templates/t_bills_historical.tt2 index 9c66cc9aa8..ab0da69a12 100644 --- a/Open-ILS/src/templates/staff/share/print_templates/t_bills_historical.tt2 +++ b/Open-ILS/src/templates/staff/share/print_templates/t_bills_historical.tt2 @@ -19,24 +19,27 @@ to this template includes: patron.has_phone - Whether or not the patron has a phone number pref_ versions of all name fields (e.g. pref_family_name); * transasctions - a list of transactions, each of which contains: - xact.id - Bill unique id - xact.copy_barcode - Item barcode - xact.xact_finish - Billing finish date and time - xact.xact_start - Billing start date and time - xact.summary - Information about the transaction - xact.summary.balance_owed - Balance owed - xact.summary.last_billing_note - Last billing note - xact.summary.last_billing_type - Last billing type - xact.summary.last_payment_note - Last payment note - xact.summary.last_payment_ts - Last payment date and time - xact.summary.last_payment_type - Last payment type - xact.summary.total_owed - Total billed - xact.summary.total_paid - Total paid - xact.summary.xact_type - Billing type - xact.title - Item title + xact.id - Bill unique id + xact.title - Copy title + xact.copy_barcode - Copy barcode + xact.xact_finish - Billing finish date and time + xact.xact_start - Billing start date and time xact.summary - information about the transaction - xact.title - Item title - xact.copy_barcode - Item barcode + xact.summary.balance_owed - Balance owed + xact.summary.last_billing_note - Last billing note + xact.summary.last_billing_type - Last billing type + xact.summary.last_payment_note - Last payment note + xact.summary.last_payment_ts - Last payment date and time + xact.summary.last_payment_type - Last payment type + xact.summary.total_owed - Total billed + xact.summary.total_paid - Total paid + xact.summary.xact_type - Billing type + xact.call_number - Information about the copy + xact.call_number.label - Copy call number + xact.call_number.prefix - Copy call number prefix + xact.call_number.suffix - Copy call number suffix + xact.call_number.owning_lib.name - The owning library's name + xact.call_number.owning_lib.shortname - The owning library's shortname --> Welcome to {{current_location.name}}!
diff --git a/Open-ILS/src/templates/staff/share/print_templates/t_checkout.tt2 b/Open-ILS/src/templates/staff/share/print_templates/t_checkout.tt2 index 646c383c16..c0fffbb019 100644 --- a/Open-ILS/src/templates/staff/share/print_templates/t_checkout.tt2 +++ b/Open-ILS/src/templates/staff/share/print_templates/t_checkout.tt2 @@ -23,12 +23,17 @@ Template for printing checkout receipts; fields available include: * has_phone - same as has_email * circulations - list of loans made during this session. Each - includes: + checkout includes: - * title - * author - * copy.barcode - * circ.due_date + * checkout.title + * checkout.author + * checkout.circ.due_date + * checkout.circ.renewal_remaining + * checkout.copy.barcode + * checkout.copy.circ_modifier + * checkout.copy.call_number.label + * checkout.copy.call_number.owning_lib.name + * checkout.copy.call_number.owning_lib.shortname -->
diff --git a/Open-ILS/src/templates/staff/share/print_templates/t_hold_pull_list.tt2 b/Open-ILS/src/templates/staff/share/print_templates/t_hold_pull_list.tt2 index bd0586f704..292f60cb67 100644 --- a/Open-ILS/src/templates/staff/share/print_templates/t_hold_pull_list.tt2 +++ b/Open-ILS/src/templates/staff/share/print_templates/t_hold_pull_list.tt2 @@ -1,14 +1,14 @@