]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/templates/staff/share/print_templates/t_hold_shelf_list.tt2
LP 1772053: Add Missing Fields to Print Templates
[Evergreen.git] / Open-ILS / src / templates / staff / share / print_templates / t_hold_shelf_list.tt2
1 <!--
2 Template for printing a list of items on the hold shelf. Fields include:
3
4 * holds - list of hold requests, including
5
6   * call_number.label
7   * call
8   * patron_alias
9   * patron_last
10   * patron_first
11   * hold.hold_type
12   * title
13   * author
14   * volume.label
15   * copy.barcode
16   * status_string
17   * hold.shelf_expire_time
18
19 -->
20 <table id='shelf-list-template-table'>
21   <style>
22     #pull-list-template-table td,
23     #pull-list-template-table th {
24       padding: 5px;
25       border: 1px solid #000;
26     }
27   </style>
28   <thead>
29     <tr>
30       <th>[% l('Patron') %]</th>
31       <th>[% l('Type') %]</th>
32       <th>[% l('Title') %]</th>
33       <th>[% l('Author') %]</th>
34       <th>[% l('Call Number') %]</th>
35       <th>[% l('Barcode/Part') %]</th>
36       <th>[% l('Status') %]</th>
37       <th>[% l('Shelf Expire Time') %]</th>
38     </tr>
39   </thead>
40   <tbody>
41     <tr ng-repeat="hold_data in holds">
42       <td>
43         <span ng-if="hold_data.patron_alias">{{hold_data.patron_alias}}</span>
44         <span ng-if="!hold_data.patron_alias">
45           [% l('[_1], [_2]',
46             '{{hold_data.patron_last}}',
47             '{{hold_data.patron_first}}') %]
48         </span>
49       </td>
50       </td>
51       <td>{{hold_data.hold.hold_type}}</td>
52       <td>{{hold_data.title}}</td>
53       <td>{{hold_data.author}}</td>
54       <td>{{hold_data.volume.label}}</td>
55       <td>{{hold_data.copy.barcode}} {{hold_data.part.label}}</td>
56       <td>{{hold_data.status_string}}</td>
57       <td>{{hold_data.hold.shelf_expire_time | date:'yyyy-MM-dd HH:mm:ss'}}</td>
58     </tr>
59   </tbody>
60 </table>