LP#1746566: Enable 500, 1K, and all rows in more patron grids
[working/Evergreen.git] / Open-ILS / src / templates / staff / circ / patron / t_items_out.tt2
1 <!-- items out list -->
2
3 <div>
4   <!-- only show the main vs. alt circ list tabs if the alt
5       circ list is meant to display -->
6   <ul class="nav nav-tabs">
7     <li ng-class="{active : items_out_display == 'main'}">
8       <a href ng-click="show_main_list(items_out_display=='alt')">
9         [% l('Items Checked Out') %] ({{main_list.length}})
10       </a>
11     </li>
12     <li ng-if="show_alt_circs" ng-class="{active : items_out_display == 'alt'}">
13       <a href ng-click="show_alt_list(items_out_display=='main')">
14         [% l('Other/Special Circulations') %] ({{alt_list.length}})
15       </a>
16     </li>
17     <li ng-class="{active : items_out_display == 'noncat'}">
18       <a href ng-click="show_noncat_list()">
19         [% l('Non-Cataloged Circulations') %] ({{noncat_list.length}})
20       </a>
21     </li>
22   </ul>
23 </div>
24
25 <div class="tab-content">
26   <div class="tab-pane active">
27
28 <eg-grid
29   ng-if="items_out_display == 'noncat'"
30   idl-class="ancc"
31   id-field="id"
32   features="clientsort,allowAll"
33   items-provider="gridDataProvider"
34   persist-key="circ.patron.items_out.noncat"
35   dateformat="{{$root.egDateAndTimeFormat}}">
36
37   <eg-grid-field label="[% l('Circ ID') %]" path='id'></eg-grid-field>
38   <eg-grid-field label="[% l('Item Type') %]" path='item_type.name'></eg-grid-field>
39   <eg-grid-field label="[% l('Checkout Library') %]" path='circ_lib.shortname'></eg-grid-field>
40   <eg-grid-field label="[% l('Checkout Date') %]" path='circ_time' datatype="timestamp"></eg-grid-field>
41   <eg-grid-field label="[% l('Due Date') %]" path='duedate' dateformat="shortDate" datatype="timestamp"></eg-grid-field>
42   <eg-grid-field label="[% l('Checkout Staff') %]" path='staff.usrname'></eg-grid-field>
43 </eg-grid>
44
45 <eg-grid
46   ng-if="items_out_display != 'noncat'"
47   idl-class="circ"
48   id-field="id"
49   features="clientsort,allowAll"
50   items-provider="gridDataProvider"
51   persist-key="circ.patron.items_out"
52   dateformat="{{$root.egDateAndTimeFormat}}">
53
54   <eg-grid-action handler="print_receipt"
55     label="[% l('Print Item Receipt') %]"></eg-grid-action>
56   <eg-grid-action handler="edit_due_date"
57     label="[% l('Edit Due Date') %]"></eg-grid-action>
58   <eg-grid-action handler="mark_lost"
59     label="[% l('Mark Lost (By Patron)') %]"></eg-grid-action>
60   <eg-grid-action handler="mark_claims_returned"
61     label="[% l('Mark Claims Returned') %]"></eg-grid-action>
62   <eg-grid-action handler="mark_claims_never_checked_out"
63     label="[% l('Mark Claims Never Checked Out') %]"></eg-grid-action>
64   <eg-grid-action handler="renew" label="[% l('Renew') %]"></eg-grid-action>
65   <eg-grid-action handler="renew_all" label="[% l('Renew All') %]"></eg-grid-action>
66   <eg-grid-action handler="renew_with_date" 
67     label="[% l('Renew With Specific Due Date') %]"></eg-grid-action>
68   <eg-grid-action handler="checkin" 
69     label="[% l('Check In') %]"></eg-grid-action>
70   <eg-grid-action handler="add_billing" 
71     label="[% l('Add Billing') %]"></eg-grid-action>
72   <eg-grid-action handler="show_recent_circs" 
73     label="[% l('Show Last Few Circulations') %]"></eg-grid-action>
74   <eg-grid-action handler="show_triggered_events" 
75     label="[% l('Show Triggered Events') %]"></eg-grid-action>
76
77   <eg-grid-field label="[% l('Circ ID') %]" path='id'></eg-grid-field>
78   <eg-grid-field label="[% l('Barcode') %]" path='target_copy.barcode'>
79     <a href="./cat/item/{{item.target_copy().id()}}" target="_self">
80       {{item.target_copy().barcode()}}
81     </a>
82   </eg-grid-field>
83   <eg-grid-field label="[% l('Due Date') %]" path='due_date' datefilter="egDueDate" dateonlyinterval="duration" datecontext="circ_lib" datatype="timestamp"></eg-grid-field>
84   <eg-grid-field label="[% l('Workstation') %]" path='workstation.name'></eg-grid-field>
85   <eg-grid-field label="[% l('Checkin Workstation') %]" path='checkin_workstation.name'></eg-grid-field>
86   <eg-grid-field label="[% l('Checkout / Renewal Library') %]" path='circ_lib.shortname'></eg-grid-field>
87   <eg-grid-field label="[% l('Circulation Library') %]" path='target_copy.circ_lib.shortname' hidden></eg-grid-field>
88   <eg-grid-field label="[% l('Owning Library') %]" path='target_copy.call_number.owning_lib.shortname' hidden></eg-grid-field>
89   <eg-grid-field label="[% l('Renewals Remaining') %]" path='renewal_remaining'></eg-grid-field>
90   <eg-grid-field label="[% l('Fines Stopped') %]" path='stop_fines'></eg-grid-field>
91   <eg-grid-field label="[% l('Title') %]" path="target_copy.call_number.record.simple_record.title" name="title">
92     <a target="_self" href="[% ctx.base_path %]/staff/cat/catalog/record/{{item.target_copy().call_number().record().id()}}">
93       {{item.target_copy().call_number().record().wide_display_entry().title()}}
94     </a>
95   </eg-grid-field>
96   <eg-grid-field path="*" hidden></eg-grid-field>
97   <eg-grid-field path="target_copy.holds_count.count" hidden></eg-grid-field>
98   <eg-grid-field label="[% l('Copy Status') %]" path="target_copy.status.name" hidden></eg-grid-field>
99   <eg-grid-field path="target_copy.circ_modifier" hidden></eg-grid-field>
100   <eg-grid-field path="target_copy.*" hidden></eg-grid-field>
101   <eg-grid-field path="target_copy.call_number.*" hidden></eg-grid-field>
102   <eg-grid-field path="target_copy.call_number.prefix.label" label="[% l('CN Prefix') %]" hidden></eg-grid-field>
103   <eg-grid-field path="target_copy.call_number.suffix.label" label="[% l('CN Suffix') %]" hidden></eg-grid-field>
104   <eg-grid-field path="target_copy.call_number.record.*" hidden></eg-grid-field>
105   <eg-grid-field path="target_copy.call_number.record.wide_display_entry.*" hidden></eg-grid-field>
106   <eg-grid-field label="[% l('Total Notices') %]" path='action_trigger_event_count'></eg-grid-field>
107   <eg-grid-field label="[% l('Last Notice') %]" path='action_trigger_latest_event_date' dateformat="short" datatype="timestamp"></eg-grid-field>
108 </eg-grid>
109 </div>
110
111   </div>
112 </div>