]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/templates/staff/share/print_templates/t_items_out.tt2
LP1830387 Add access to juvenile flag in 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   * juvenile - boolean value (t/f) to show/hide elements on the receipt
21
22 * circulations - list of current loans, including for each checkout
23
24   * checkout.title
25   * checkout.author
26   * checkout.circ.due_date
27   * checkout.circ.renewal_remaining
28   * checkout.copy.barcode
29   * checkout.copy.circ_modifier.name
30   * checkout.copy.call_number.label
31   * checkout.copy.call_number.owning_lib.name
32   * checkout.copy.call_number.owning_lib.shortname
33   * checkout.copy.location.name - Shelving location
34
35 -->
36 <div>
37   <div>[% l('Welcome to [_1]', '{{current_location.name}}') %]</div>
38   <div>[% l('You have the following items:') %]</div>
39   <hr/>
40   <ol>
41     <li ng-repeat="checkout in circulations">
42       <div>{{checkout.title}}</div>
43       <div>[% l('Barcode: [_1] Due: [_2]', 
44         '{{checkout.copy.barcode}}',
45         '{{checkout.circ.due_date | egDueDate:$root.egDateAndTimeFormat:checkout.circ.circ_lib:checkout.circ.duration}}') %]</div>
46     </li>
47   </ol>
48   <hr/>
49   <div>{{current_location.shortname}} {{today | date:$root.egDateAndTimeFormat}}</div>
50   <div>[% l('You were helped by [_1]', '{{staff.first_given_name}}') %]</div>
51 <br/>
52