]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/templates/staff/circ/patron/t_items_out.tt2
LP2045292 Color contrast for AngularJS patron bills
[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   row-class="colorizeItemsOutList">
54
55   <eg-grid-action handler="print_receipt"
56     label="[% l('Print Item Receipt') %]"></eg-grid-action>
57   <eg-grid-action handler="edit_due_date"
58     label="[% l('Edit Due Date') %]"></eg-grid-action>
59   <eg-grid-action handler="mark_damaged"
60     label="[% l('Mark Damaged') %]"></eg-grid-action>
61   <eg-grid-action handler="mark_lost"
62     label="[% l('Mark Lost (By Patron)') %]"></eg-grid-action>
63   <eg-grid-action handler="mark_claims_returned"
64     label="[% l('Mark Claims Returned') %]"></eg-grid-action>
65   <eg-grid-action handler="mark_claims_never_checked_out"
66     label="[% l('Mark Claims Never Checked Out') %]"></eg-grid-action>
67   <eg-grid-action handler="renew" label="[% l('Renew') %]"></eg-grid-action>
68   <eg-grid-action handler="renew_all" label="[% l('Renew All') %]"></eg-grid-action>
69   <eg-grid-action handler="renew_with_date" 
70     label="[% l('Renew With Specific Due Date') %]"></eg-grid-action>
71   <eg-grid-action handler="checkin" 
72     label="[% l('Check In') %]"></eg-grid-action>
73   <eg-grid-action handler="add_billing" 
74     label="[% l('Add Billing') %]"></eg-grid-action>
75   <eg-grid-action handler="show_recent_circs" 
76     label="[% l('Show Last Few Circulations') %]"></eg-grid-action>
77   <eg-grid-action handler="show_triggered_events" 
78     label="[% l('Show Triggered Events') %]"></eg-grid-action>
79
80   <eg-grid-field label="[% l('Circ ID') %]" path='id'></eg-grid-field>
81   <eg-grid-field label="[% l('Barcode') %]" path='target_copy.barcode'>
82     <a href="./cat/item/{{item.target_copy().id()}}" target="_self">
83       {{item.target_copy().barcode()}}
84     </a>
85   </eg-grid-field>
86   <eg-grid-field label="[% l('Due Date') %]" path='due_date' datefilter="egDueDate" dateonlyinterval="duration" datecontext="circ_lib" datatype="timestamp" required></eg-grid-field>
87   <eg-grid-field label="[% l('Workstation') %]" path='workstation.name'></eg-grid-field>
88   <eg-grid-field label="[% l('Checkin Workstation') %]" path='checkin_workstation.name'></eg-grid-field>
89   <eg-grid-field label="[% l('Checkout / Renewal Library') %]" path='circ_lib.shortname'></eg-grid-field>
90   <eg-grid-field label="[% l('Circulation Library') %]" path='target_copy.circ_lib.shortname' hidden></eg-grid-field>
91   <eg-grid-field label="[% l('Age-based Hold Protection') %]" path='target_copy.age_protect.name' hidden></eg-grid-field>
92   <eg-grid-field label="[% l('Floating Group') %]" path='target_copy.floating.name' hidden></eg-grid-field>
93   <eg-grid-field label="[% l('Shelving Location') %]" path='target_copy.location.name' hidden></eg-grid-field>
94   <eg-grid-field label="[% l('Owning Library') %]" path='target_copy.call_number.owning_lib.shortname' hidden></eg-grid-field>
95   <eg-grid-field label="[% l('Renewals Remaining') %]" path='renewal_remaining'></eg-grid-field>
96   <eg-grid-field label="[% l('Fines Stopped') %]" path='stop_fines'></eg-grid-field>
97   <eg-grid-field label="[% l('Title') %]" path="target_copy.call_number.record.wide_display_entry.title" name="title">
98     <a href="/eg2/staff/catalog/record/{{item.target_copy().call_number().record().id()}}">
99       {{item.target_copy().call_number().record().wide_display_entry().title()}}
100     </a>
101   </eg-grid-field>
102   <eg-grid-field path="*" hidden></eg-grid-field>
103   <eg-grid-field path="target_copy.holds_count.count" hidden></eg-grid-field>
104   <eg-grid-field label="[% l('Item Status') %]" path="target_copy.status.name" hidden></eg-grid-field>
105   <eg-grid-field path="target_copy.circ_modifier" hidden></eg-grid-field>
106   <eg-grid-field path="target_copy.*" hidden></eg-grid-field>
107   <eg-grid-field path="target_copy.call_number.*" hidden></eg-grid-field>
108   <eg-grid-field path="target_copy.call_number.prefix.label" label="[% l('CN Prefix') %]" hidden></eg-grid-field>
109   <eg-grid-field path="target_copy.call_number.suffix.label" label="[% l('CN Suffix') %]" hidden></eg-grid-field>
110   <eg-grid-field path="target_copy.call_number.record.*" hidden></eg-grid-field>
111   <eg-grid-field path="target_copy.call_number.record.wide_display_entry.*" hidden></eg-grid-field>
112   <eg-grid-field path="_parts" label="[% l('Monograph Part') %]" hidden></eg-grid-field>
113   <eg-grid-field label="[% l('Total Notices') %]" path='action_trigger_event_count'></eg-grid-field>
114   <eg-grid-field label="[% l('Last Notice') %]" path='action_trigger_latest_event_date' dateformat="short" datatype="timestamp"></eg-grid-field>
115 </eg-grid>
116 </div>
117
118   </div>
119 </div>