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