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