From: Dan Scott Date: Tue, 14 Feb 2012 16:12:19 +0000 (-0500) Subject: Fix up 3-day courtesy notice with better title / author too X-Git-Tag: sprint4-merge-nov22~4597 X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=7388c413944a7a7586b75caa5c863920ef377158;p=working%2FEvergreen.git Fix up 3-day courtesy notice with better title / author too Use the helper function to get better quality title/author out of the target copy for pre-due notices. Signed-off-by: Dan Scott --- diff --git a/Open-ILS/src/sql/Pg/950.data.seed-values.sql b/Open-ILS/src/sql/Pg/950.data.seed-values.sql index 703b0f768d..2e1da72c12 100644 --- a/Open-ILS/src/sql/Pg/950.data.seed-values.sql +++ b/Open-ILS/src/sql/Pg/950.data.seed-values.sql @@ -6341,6 +6341,7 @@ The following items are 90 days overdue and have been marked LOST. Item Cost: [% helpers.get_copy_price(circ.target_copy) %] Total Owed For Transaction: [% circ.billable_transaction.summary.balance_owed %] Library: [% circ.circ_lib.name %] + [% END %] $$); @@ -7431,18 +7432,21 @@ Dear [% user.family_name %], [% user.first_given_name %] As a reminder, the following items are due in 3 days. [% FOR circ IN target %] - Title: [% circ.target_copy.call_number.record.simple_record.title %] + [%- copy_details = helpers.get_copy_bib_basics(circ.target_copy.id) -%] + Title: [% copy_details.title %] + Author: [% copy_details.author %] Barcode: [% circ.target_copy.barcode %] Due: [% date.format(helpers.format_date(circ.due_date), '%Y-%m-%d') %] Item Cost: [% helpers.get_copy_price(circ.target_copy) %] Library: [% circ.circ_lib.name %] Library Phone: [% circ.circ_lib.phone %] + [% END %] $$); INSERT INTO action_trigger.environment (event_def, path) VALUES - (6, 'target_copy.call_number.record.simple_record'), + (6, 'target_copy.call_number'), (6, 'usr'), (6, 'circ_lib.billing_address');