]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/examples/templates/predue_1day.example
8aaf154f6bb2954729509b57e4aab92944b2907e
[Evergreen.git] / Open-ILS / examples / templates / predue_1day.example
1 [%- USE date -%]
2 [%- SET user = circ_list.0.usr -%]
3 [%- SET lib = circ_list.0.circ_lib -%]
4 To: [% user.email %]
5 From: [% smtp_sender %]
6 Reply-To: [% smtp_reply %]
7 Subject: Courtesy Notice
8
9 Dear [% user.first_given_name %] [% user.family_name %],
10
11 Our records indicate these items are due tomorrow:
12 [% FOREACH circ = circ_list %]
13     [% get_bib_attr(circ, 'title') %], by [% get_bib_attr(circ, 'author') %] 
14     Call Number: [% circ.target_copy.call_number.label %]
15     [%- SET due_date = parse_due_date(circ) %]
16     Due Date: [% date.format(due_date, '%Y-%m-%d') %]
17     Barcode: [% circ.target_copy.barcode %]
18 [% END %]
19
20
21 Please return the above items by tomorrow to avoid additional fines.  Please do not
22 respond to this email.  
23
24 Contact your library for more information:
25
26 [% lib.name %]
27 [%- SET addr = lib.mailing_address -%]
28 [%- IF !addr -%] [%- SET addr = lib.billing_address -%] [%- END %]
29 [% lib.mailing_address.street1 %] [% lib.mailing_address.street2 %]
30 [% lib.mailing_address.city %], [% lib.mailing_address.state %]
31 [% lib.mailing_address.post_code %]
32 [% lib.phone %]