]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/templates/staff/share/print_templates/t_checkout.tt2
LP1830387 Add access to juvenile flag in print templates
[Evergreen.git] / Open-ILS / src / templates / staff / share / print_templates / t_checkout.tt2
1 <!--
2 Template for printing checkout receipts; fields available include:
3
4 * patron - has several fields from the patron object, including a financial summary
5
6   * prefix
7   * first_given_name
8   * second_given_name
9   * family_name
10   * suffix
11   * pref_prefix
12   * pref_first_given_name
13   * pref_second_given_name
14   * pref_family_name
15   * pref_suffix
16   * card.barcode
17   * money_summary.balance_owed - current balance
18   * money_summary.total_paid - payments made on outstanding fines/fees
19   * money_summary.total_owed - total of outstanding fines/fees
20   * expire_date
21   * alias - aka Holds Alias
22   * has_email - boolean value to show/hide elements on the receipt
23   * has_phone - same as has_email
24   * juvenile - boolean value (t/f) to show/hide elements on the receipt
25
26 * circulations - list of loans made during this session. Each
27   checkout includes:
28
29   * checkout.title
30   * checkout.author
31   * checkout.circ.due_date
32   * checkout.circ.renewal_remaining
33   * checkout.copy.barcode
34   * checkout.copy.circ_modifier.name
35   * checkout.call_number.label
36   * checkout.call_number.owning_lib.name
37   * checkout.call_number.owning_lib.shortname
38
39 -->
40 <div>
41   <div>[% l('Welcome to [_1]', '{{current_location.name}}') %]</div>
42   <div>[% l('You checked out the following items:') %]</div>
43   <hr/>
44   <ol>
45     <li ng-repeat="checkout in circulations">
46       <div>{{checkout.title}}</div>
47       <div>[% l('Barcode: [_1] Due: [_2]', 
48         '{{checkout.copy.barcode}}',
49         '{{checkout.circ.due_date | egDueDate:$root.egDateAndTimeFormat:checkout.circ.circ_lib:checkout.circ.duration}}') %]</div>
50     </li>
51   </ol>
52   <hr/>
53   <div>{{current_location.shortname}} {{today | date:$root.egDateAndTimeFormat}}</div>
54   <div>[% l('You were helped by [_1]', '{{staff.first_given_name}}') %]</div>
55 <br/>
56